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 6896479
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:02:57+00:00 2026-05-27T07:02:57+00:00

I have a local SQL CE database and I am trying to sync to

  • 0

I have a local SQL CE database and I am trying to sync to a remote SQL Server database using the Microsoft Sync Framework. I have provisioned both the CE and the Server databases, but when I try to Sync, using SyncOrchestrator, I get an error The stored procedure '[tablename_selectchanges]' doesn't exist..

When provisioning the local and remote databases, I first enable tracking on the appropriate tables, then do the following:

CE:

    var localScopeDescription = new DbSyncScopeDescription(scopeName);
    foreach (var table in tables) {
        localScopeDescription.Tables.Add(SqlSyncDescriptionBuilder.GetDescriptionForTable(table, remoteConnection));
    }

    var localDatabaseConfiguration = new SqlCeSyncScopeProvisioning(localConnection, localScopeDescription);
    if (!localDatabaseConfiguration.ScopeExists(scopeName)) {
        localDatabaseConfiguration.ObjectPrefix = "Sync";
        localDatabaseConfiguration.SetCreateTableDefault(DbSyncCreationOption.Skip);
        localDatabaseConfiguration.Apply();
    }

Server:

    var remoteScopeDescription = new DbSyncScopeDescription(scopeName);
    foreach (var table in tables) {
        remoteScopeDescription.Tables.Add(SqlCeSyncDescriptionBuilder.GetDescriptionForTable(table, localConnection));
    }

    var remoteDatabaseConfiguration = new SqlSyncScopeProvisioning(remoteConnection, remoteScopeDescription);
    if (!remoteDatabaseConfiguration.ScopeExists(scopeName)) {
        remoteDatabaseConfiguration.ObjectPrefix = "Sync";
        remoteDatabaseConfiguration.SetCreateTableDefault(DbSyncCreationOption.Skip);
        remoteDatabaseConfiguration.SetCreateTrackingTableDefault(DbSyncCreationOption.Create);
        remoteDatabaseConfiguration.SetCreateTriggersDefault(DbSyncCreationOption.Create);
        remoteDatabaseConfiguration.SetCreateProceduresDefault(DbSyncCreationOption.Skip);

        remoteDatabaseConfiguration.SetPopulateTrackingTableDefault(DbSyncCreationOption.Create);
        remoteDatabaseConfiguration.SetUseBulkProceduresDefault(true);
        remoteDatabaseConfiguration.Apply();
    }

If I remove the SetCreateProceduresDefault(DbSyncCreationOption.Skip) line, which seems to prevent the creation of this procedure, I get the following error:

Invalid column name ‘__sysChangeTxBsn’.

Invalid column name ‘__sysInsertTxBsn’.

Invalid column name ‘__sysTrackingContext’.

Am I setting up my provisioning wrong, and if so, how can I fix this? Or could these errors be caused by something else?

  • 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-27T07:02:57+00:00Added an answer on May 27, 2026 at 7:02 am

    The question was answered here by JuneT, hopefully this helps someone else who encounters this problem.

    My problem was caused by tracking my changes before I added table descriptions to the server, causing the invalid column names.

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

Sidebar

Related Questions

I have a database working in my local sql server 2005 express edition. I
Assume that you have a running SQL Server Express instance named (local)\SQLEXPRESS. Its database
we have a local staging server running sql server 2000 and a remote public
We have a 2K3 server we're using as both a database server AND a
I was trying to create a backup for my SQL Server Database using SQL
I have been experimenting with writing applications that use a local SQL Database to
I have a web service that stores data in a local SQL Server 2008
When connecting to sql server, I have the hardcoded string (local). Is this a
I have a VB script which connects to a local SQL database to retrieve
First a little introduction. We have an SQL Server Express 2008 database, which schema

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.