Note that there are some explanatory texts on larger screens.

plurals
  1. PODB Sync with MS Sync Framework 2.1 (DB2 as Server to MSSQLServer as client)
    primarykey
    data
    text
    <p>Attempting '<strong>DownloadOnly</strong>' Sync from DB2 Server to SQLServer as Client</p> <p>Below is my Configuration</p> <p>DB2 Server Provider</p> <pre><code>DbServerSyncProvider serverSyncProvider = new DbServerSyncProvider(); </code></pre> <p>SQL Server Provider (Custom Provider extending ClientSyncProvider)</p> <pre><code>public class SqlClientSyncProvider : ClientSyncProvider </code></pre> <p>Sync Agent</p> <pre><code> SyncTable tableProducts = new SyncTable("PRODUCT_TEST"); tableProducts.CreationOption = TableCreationOption.UseExistingTableOrFail; tableProducts.SyncDirection = SyncDirection.DownloadOnly; </code></pre> <p>"Selecting inserts from Server"</p> <pre><code> DB2Command incInsPrdsCmd = new DB2Command(); incInsPrdsCmd.CommandType = CommandType.Text; incInsPrdsCmd.CommandText = "SELECT Inserts()"; adapterProducts.SelectIncrementalUpdatesCommand = incInsPrdsCmd; serverSyncProvider.SyncAdapters.Add(adapterProducts); </code></pre> <p>"Trying to apply at the client"</p> <pre><code> SqlCommand insPrdscmd = new SqlCommand(); insPrdscmd.CommandType = CommandType.StoredProcedure; insPrdscmd.CommandText = "Apply_Inserts"; adapterProducts.UpdateCommand = insPrdscmd; clientSyncProvider.SyncAdapters.Add(adapterProducts); </code></pre> <p>Trying to "Synchronize()"</p> <p>Result :</p> <blockquote> <p>sync start time :8/26/2012 5:15:58 PM</p> <p><strong>Total changes downloaded :1</strong></p> <p><strong>Downloaded changes applied :0</strong></p> <p>Sync complete time :8/26/2012 5:15:59 PM</p> </blockquote> <p>I never get the <strong>"downloaded changes applied > 0 "</strong> even with a hard coded "Insert into XXX" command.</p> <p>Kindly help if I am missing anything.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload