Groups | Blog | Home
all groups > sql server programming > october 2006 >

sql server programming : Cannot Update Identity Column while doing Select statement


thomson
10/1/2006 11:45:21 PM
Hi All,
i do have stored procedure

in which there select id,name from tablename


id i primary key and Identity seed is there for this column


When i directly query this statement it " select id,name from
tablename" , it shows the results


But when i call the same thing via stored procedure , it says Cannot
update identity colum


exec usp_getvalues , it gives the error


Thanks in Advance


Thomson
Hari Prasad
10/2/2006 12:00:00 AM
Hi,

I feel that there is some update statement inside the procedure which
updates the Identity column. Can you execute the below command
and paste us the result.

sp_helptext usp_getvalues

Thanks
Hari


[quoted text, click to view]

ML
10/2/2006 1:23:01 AM
Can we see the procedure or do we have to guess? A popular guess is: gremlins.


ML

---
AddThis Social Bookmark Button