请教用delphi 4.0编写ms sqlserver6.5 应用时出现'table does not support this operation because it is not uniquely indexed '

whh 2000-03-27 05:40:00
我在sql server 中定义了表inputdv 其中以inputdv.xuhao(identity,not null属性) 为unique index,index的名字为xh ,在delphi中以一database控件连接sql server database,以一表控件table连接表inputdv ,table 的属性
active=true;
tablename=inputdv;
indexfieldname=xuhao;
indexdefs自动变为sql server 中的index--xh;
但在用程序执行sql server的存储过程插入记录到inputdv中时,出现EDBEngine错误
'table does not support this operation because it is not uniquely indexed '
...全文
100 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
bpc 2000-03-27
  • 打赏
  • 举报
回复
若你执行存储过程是用的STORPROC 部件
应该不会有问题的。用QUERY和TABLE部件
就不能执行存储过程。
clacklin 2000-03-27
  • 打赏
  • 举报
回复
是否你的存储过程有问题?

5,379

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧