Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in ASP .NET only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Member List
Calendar
Today's Posts
Home
Forum
Topic
ASP .NET
sql command to get ID (primary key number) of last record inserted
sql command to get ID (primary key number) of last record inserted
Collapse
This topic is closed.
X
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
Jim in Arizona
#1
sql command to get ID (primary key number) of last record inserted
Oct 20 '08, 11:45 PM
I forgot what the SQL command was to return the key of the last inserted
record. Does anyone happen to know what it is?
Thanks,
Jim
--
Jeff Dillon
#2
Oct 21 '08, 12:25 AM
Re: sql command to get ID (primary key number) of last record inserted
"Jim in Arizona" <tiltowait@hotm ail.comwrote in message
news:OkZ2vywMJH A.1304@TK2MSFTN GP02.phx.gbl...
>I forgot what the SQL command was to return the key of the last inserted
>record. Does anyone happen to know what it is?
Scope_Identity
http://msdn.microsoft.com/en-us/library/ms190315.aspx
Jeff
Comment
Post
Cancel
Jim in Arizona
#3
Oct 23 '08, 08:45 PM
[RESOLVED] Re: sql command to get ID (primary key number) of last record inserted
Scope_Identity
>
http://msdn.microsoft.com/en-us/library/ms190315.aspx
>
Jeff
Thanks Jeff!
Jim
Comment
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
👍
👎
☕
Comment