我正试图通过OleDB连接到Server数据库。所以,直到我用数据填充DataSet的那一刻,一切都还好,我在那里得到了数据,但是当涉及到更新时,我得到了一个错误:
解析查询时出错。令牌行号、令牌行偏移、令牌错误、
没有数字显示在哪里,我也搞不清到底是怎么回事。
有人能帮忙吗?
OleDbConnection conn= new OleDbConnection(connString); //no problem here
OleDbDataAdapter adapter = new OleDbDataAdapter("select * from table", conn); //this query it doesn't like, but it syas that when it comes to update
OleDbCommandBuilder cb = new OleDbCommandBuilder(adapter);
adapter.Update(dataSet, tableName); // here it has problems发布于 2015-08-15 09:18:12
不支持将.NET,您应该使用ADO.NET提供程序(System.Data.SqlServerCe) --为什么要使用OLEDB提供程序?
https://stackoverflow.com/questions/32022909
复制相似问题