Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Database/JDBC/SQL/JDO/Hibernate  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 SQL Server2000数据库查询分析器可以用,而企业管理器却不能插入数据???
enthusiasm





发贴: 74
积分: 0
于 2006-05-23 17:19 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
SQL Server2000数据库查询分析器可以插入数据,更改数据,可是在

企业管理器里却不行,跳出一个对话框“键值信息不足或不正确。更新

影响到过多的行”。我这个表什么关联也没有,没有主键,没有外键。

也没约束呀。这是为什么呀??并且我的表字段都是char型的。



作者 Re:SQL Server2000数据库查询分析器可以用,而企业管理器却不能插入数据??? [Re:enthusiasm]
why

問題兒童

总版主


发贴: 4629
积分: 388
于 2006-05-23 20:42 user profilesend a private message to usersend email to whysearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
Please show us the table definition and the insertion statement.


作者 Re:SQL Server2000数据库查询分析器可以用,而企业管理器却不能插入数据??? [Re:enthusiasm]
enthusiasm





发贴: 74
积分: 0
于 2006-05-24 09:01 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list




作者 Re:SQL Server2000数据库查询分析器可以用,而企业管理器却不能插入数据??? [Re:enthusiasm]
enthusiasm





发贴: 74
积分: 0
于 2006-05-24 09:02 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list




作者 Re:SQL Server2000数据库查询分析器可以用,而企业管理器却不能插入数据??? [Re:enthusiasm]
enthusiasm





发贴: 74
积分: 0
于 2006-05-24 09:07 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
那个表是我之前建立的,里边有些字段为int型,后来我全改成char也不行。

并且我插入的全是数字也是出现错误。

可是在查询分析器里用语句写,却没问题。



作者 Re:SQL Server2000数据库查询分析器可以用,而企业管理器却不能插入数据??? [Re:enthusiasm]
enthusiasm





发贴: 74
积分: 0
于 2006-05-24 23:23 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
http://community.csdn.net/Expert/topic/4454/4454975.xml?temp=.8593561

我这个问题解决了,在这个论坛看见一个与我问题一样的帖子。

大概是我这个表没有主键的缘故。

mssql里的表应该有主键,如果没有主键,很容易出错的。



作者 Re:SQL Server2000数据库查询分析器可以用,而企业管理器却不能插入数据??? [Re:enthusiasm]
why

問題兒童

总版主


发贴: 4629
积分: 388
于 2006-05-25 22:28 user profilesend a private message to usersend email to whysearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
I don't think this has anything to do with 主键.

What is your insertion statement?




flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923