简体   繁体   中英

sqlexception was unhandled

"Invalid object name 'TableName_Tombstone'" reads the rest of the exception message. I'm trying to sync sqlce with sql server 2008 and although I've attributed the TombstoneTableName a name with the following code:

TableNameBuilder.TbombstoneTableName = TableName.TableName + "_Tombstone" 

It appears not to find it on the server db although I did activate change tracking.

more details: i've also tried to access the tombstone table with the following code, but pointless:

TombstoneTableName = "Sales." + tableName + "_Tombstone",

any clues?

You can run SQL Server Management Studio. Open the Object Explorer (File > Connect Object Explorer...) and connect to the target SQL Server server. In the Object Explorer tree view, navigate to Databases > {your database name} > Tables. Look at the list of tables to see if the table may have been created with a different name.

By the way, what are the values in TableName.TableName and tableName in your C# code?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM