dbTalk Databases Forums  

Returning the id of an inserted record

microsoft.public.sqlserver.clients microsoft.public.sqlserver.clients


Discuss Returning the id of an inserted record in the microsoft.public.sqlserver.clients forum.



Reply
 
Thread Tools Display Modes
  #31  
Old   
Mike C#
 
Posts: n/a

Default Re: Returning the id of an inserted record - 02-29-2008 , 08:18 PM






"Andrew J. Kelly" <sqlmvpnooospam (AT) shadhawk (DOT) com> wrote

Quote:
I wasn't aware that @@Identity was also in Access so you may want to post
this question in an ACCESS news group not a SQL Server one. And for future
reference you should not use @@IDENTITY in SQL Server, you should use
SCOPE_IDENTITY() instead for this type of situation.

Access supports it only through the Jet OLEDB 4.0 provider:
http://support.microsoft.com/kb/815629

You're right though, he'll probably more authoritative answers from the
Access newsgroup.




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.