|
-
May 20th, 2005, 10:04 AM
#3
Fanatic Member
Re: @@identity not returning any value
If you're using SQL Server 2000 try returning:
Code:
SELECT SCOPE_IDENTITY()
instead as @@IDENTITY is global and will not necessarily return you the ID of the table you just inserted into (especially if you have triggers on that table that insert into another table!)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|