0

当我尝试更新我的 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

我在网上搜索了这个错误,但找不到任何答案。请帮助我解决这个问题。

谢谢穆拉利

4

1 回答 1

0

我自己已经弄清楚了这个问题。问题是主键 ID 未设置为您尝试更新的条目。但我不明白为什么 VistaDB 不能指出我这是参照完整性错误。

于 2015-02-12T15:18:17.590 回答