当我试图更新vistadb中的一个表时,我会得到以下错误。
VistaDB.Diagnostic.VistaDBSQLException was caught
HResult=1011
Message=
Error 1011 (Provider v. 5.0.4.1289): Connection property must be assigned Error #1011
Line #: 19; Column #: 5
Source=VistaDB.5.NET40
ErrorCode=1011
ErrorId=1011
LevelMessage=Error 1011 (Provider v. 5.0.4.1289): Connection property must be assigned Error #1011
Line #: 19; Column #: 5
ColumnNo=5
LineNo=19
StackTrace:
at VistaDB.Engine.SQL.BatchStatement.CheckBatchExceptions()
at VistaDB.Engine.SQL.BatchStatement.NextResult(VistaDBPipe pipe)
at VistaDB.Provider.VistaDBDataReader.ExecQuery(Int64& affectedRows)
at VistaDB.Provider.VistaDBCommand.ExecQuery(Int64& affectedRows)
at VistaDB.Provider.VistaDBCommand.ExecuteNonQuery()
at Motorola.Ardvarc.Data.Bases.Operations.BaseDBOperations我在网上搜索了这个错误,但是找不到this.Please的任何答案,请帮助我了解您对此的想法。
谢谢Murali
发布于 2015-02-12 15:18:17
我自己解决了这个问题。问题是,主键ID没有设置为要更新的条目。但我不明白为什么VistaDB不能指出这是引用完整性错误。
https://stackoverflow.com/questions/28146000
复制相似问题