Skip to content Skip to sidebar Skip to footer

Need To Learn How To Set Appropriate Permissions On Sql Server Database To Allow Synchronisation Through Sync Framework 2.1

SQL Server is not my strong point and I start to get lost when going past the basic Create Table, Select from Table etc. I am attempting to set up a database synchronisation scenar

Solution 1:

there are two types of database providers in Sync Framework, the offline provider (SqlCeClientSyncProvider/DbServerSyncProvider) which is used by the Local Database Cache project item and the collaboration/peer-to-peer provider (SqlSyncProvider/SqlCeSyncProvider).

the offline providers dont use the scope_xxx tables as such you wont find it.

assuming you used the default SQL Server Change Tracking when you configured the sync via the wizard, try granting VIEW CHANGE TRACKING permission to the account you're using to connect to the database.

Solution 2:

I'm not sure if it will help, but I found this:

Try to set UploadOnly on the SyncTable object instead. When you set it on the SyncAdapterBuidler, the select incremental commands are not generated by the builder. These commands are used to get the table schema from the database. Since these are missing you are getting the schema error.

Also, maybe this blog entry will help.

Solution 3:

As JuneT Mentioned, you should turn on Change Tracking

ALTER DATABASE YourDataBaseName  
SET CHANGE_TRACKING = ON  
(CHANGE_RETENTION = 2 DAYS, AUTO_CLEANUP = ON)  

Post a Comment for "Need To Learn How To Set Appropriate Permissions On Sql Server Database To Allow Synchronisation Through Sync Framework 2.1"