Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6540257
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:57:24+00:00 2026-05-25T10:57:24+00:00

I am new to Sync Framework. This is using version 2.1 My project involves

  • 0

I am new to Sync Framework. This is using version 2.1

My project involves syncing a SQL CE to SQL Azure (soon to be SQL Server 2008)

Right now I am working with a very simple synchronization plan. I want to upload all data in records from Claims and related table Inventory to SQL Azure where the Claims.Status = ‘Closed’. That’s all I want for now and I’ve seen it work, but then it won’t work. I see no error messages and I don’t know what it’s doing. I’ve tried the tracing tool and the results are in Greek and as far as I can tell it doesn’t mention anything about the data

Here is an excerpt of the code in a Windows Console App:

//For Provisioning...
myScope.Tables.Add(Claims);  
myScope.Tables.Add(Inventory); 

SqlSyncScopeProvisioning sqlAzureProv = new SqlSyncScopeProvisioning(sqlAzureConn, myScope);

sqlAzureProv.Tables["Claims"].AddFilterColumn("Status");
sqlAzureProv.Tables["Claims"].FilterClause = "[side].[Status] = 'Closed'";
sqlAzureProv.Apply();

//For the client...
DbSyncScopeDescription clientSqlCeDesc = SqlSyncDescriptionBuilder.GetDescriptionForScope(myScope.ScopeName, null, "dbo", sqlAzureConn);
SqlCeSyncScopeProvisioning sqlCeProv = new SqlCeSyncScopeProvisioning(sqlCeConn, clientSqlCeDesc);
sqlCeProv.Apply();

//For Syncing:
SqlCeConnection sqlCeConn = new SqlCeConnection(sqlCeConnectionString);
SqlConnection sqlAzureConn = new SqlConnection(sqlazureConnectionString);
SyncOrchestrator orch = new SyncOrchestrator
{
     RemoteProvider = new SqlSyncProvider(scopeName, sqlAzureConn),
     LocalProvider = new SqlCeSyncProvider(scopeName, sqlCeConn),
     Direction = SyncDirectionOrder.Upload
};
Console.WriteLine("ScopeName={0} ", scopeName.ToUpper());
Console.WriteLine("Starting Sync " + DateTime.Now);
ShowStatistics(orch.Synchronize());

As for the data on the local and remote dbs, there is one more ‘Closed’ record on the Local db than there is on the Remote db. I de-provisioned and provisioned to refresh it. Then when I sync, the results shows 38 changes and I don’t know what data changes but I do know that the one record that should be updated as ‘Closed’ is still open.

I’ve seen this work where I updated two records to be closed on the CE, ran the sync and it syncs. I tried it again with another record and this is what happened. I just want to see consistent results. What am I missing?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T10:57:24+00:00Added an answer on May 25, 2026 at 10:57 am

    I apologize to anyone who spent time looking at this post. It was a misunderstanding that I had about how Sync Framework worked. I learned today that static-filters will not propagate changes to existing/tracked records, they will only Insert new records. Sync Framework is far more smooth and much more complicated than I have been giving it credit. I just needed to do more reading and researching.

    Special thanks to JuneT, not only for your responses but for the wealth of info that I found on other sites that you have been involved with. Also thanks to anyone else who spent time looking at this post.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Sync Framework in SL App to sync Sql Server and local
The regular code snippet of syncing data with sync framework is this: LocalDBSyncAgent syncAgent
I have a SQL Server 2008 database that contains DateTimeOffset objects. As per this
New to javascript/jquery and having a hard time with using this or $(this) to
I have a desktop client that is using the sync framework to synchronise the
I'm using Entity Framework 4 Code First in my .net MVC 2.0 project and
I'm new to MS Sync Framework and get confused by the two packages to
I'm new to Python and Django. I'm configuring a Django project using a PostgreSQL
I am using the Microsoft Sync Framework and C# to develop the following function
Being new to test based development, this question has been bugging me. How much

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.