[英]How to insert new row in client database using Microsoft Sync Framework
I followed the tutorial "Tutorial: Synchronizing SQL Server and SQL Server Compact" ( http://msdn.microsoft.com/en-us/library/ff928494.aspx ) everything worked fine. 我遵循了教程“教程:同步SQL Server和SQL Server Compact”( http://msdn.microsoft.com/en-us/library/ff928494.aspx ),一切正常。
After the last step, when I want to add an new row in the client database (dbf database file) I receive the following error "The number of columns in the query and the table must match. [ Number of columns in query = 3, Number of columns in table = 6]" 在最后一步之后,当我想在客户端数据库(dbf数据库文件)中添加新行时,出现以下错误“查询和表中的列数必须匹配。[查询中的列数= 3,表中的列数= 6]“
I know that the synk framework has inserted Sync columns at the end of the tables I want to edit on the client device, but do I have to manage these columns ? 我知道synk框架在要在客户端设备上编辑的表的末尾插入了Sync列,但是我是否必须管理这些列? And if yes, what must I exactely fill in these cols ?
如果是,我必须完全填写这些列吗?
Thank you in advance for your answer 预先感谢您的回答
JD Gasser JD加瑟
this has been answered in your other post in the MSDN forums ( link ) and the issue has nothing to do with Sync Fx (you will get the same error whether you use Sync fx or not) 这个问题已经在您在MSDN论坛上的其他帖子( 链接 )中得到了回答,并且此问题与Sync Fx无关(无论是否使用Sync fx,您都会收到相同的错误)
as advised, please make sure to specify the columns in your Insert statement (eg, insert into tablex(col1, col2, col3) values (col1value, col2value, col3value) 根据建议,请确保在您的Insert语句中指定列(例如,插入到tablex(col1,col2,col3)值(col1value,col2value,col3value)中
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.