Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 problem to delete a record from SQL 2K

Author  Topic 

hong_ma
Starting Member

37 Posts

Posted - 2006-03-13 : 15:22:34
when I wanted to delete a record from the database , I got a error message
"key column information is insufficiant or incorrect, Too many rows were affected by update".
waht's that mean? Thanks.

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2006-03-13 : 15:24:11
It means you don't have a primary key or unique constraint on your table and that you are trying to delete data without using DELETE comamnd. So are you using Enterprise Manager to do this?

Tara Kizer
aka tduggan
Go to Top of Page

hong_ma
Starting Member

37 Posts

Posted - 2006-03-13 : 15:30:41
yes,no primary key or unique constraint on my table. I was using Enterprise manager to do this. because there are duplicate record in the database
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2006-03-13 : 15:34:57
Well you need to either perform the delete in Query Analyzer using DELETE command or you'll need to add a primary key or unique constraint.

Tara Kizer
aka tduggan
Go to Top of Page

hong_ma
Starting Member

37 Posts

Posted - 2006-03-13 : 15:39:56
got it, Thanks.
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-03-14 : 02:07:11
Never do DMLs using EM. Use Query Analyser only

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -