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)
 Meanings of Error

Author  Topic 

massspectrometry
Yak Posting Veteran

50 Posts

Posted - 2007-07-20 : 03:56:21
Can u guys tell me what is this error means?

An explicit value for the identity column in table 'VerifySMS' can only be specified when a column list is used and IDENTITY_INSERT is ON.

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2007-07-20 : 04:32:41
you're trying to insert a value into an identtiy column which is self populating.
the only way to insert into this column is to SET IDENTITY_INSERT ON.
however you'll have to check for duplicates when doing it this way.

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
Go to Top of Page

massspectrometry
Yak Posting Veteran

50 Posts

Posted - 2007-07-20 : 05:37:26
how to set identity_insert on? :(
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2007-07-20 : 10:56:00
Run 'SET IDENTITY_INSERT ON' as said above.
Go to Top of Page
   

- Advertisement -