Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to use @@IDENTITY??? 1

Status
Not open for further replies.

babe1898

Programmer
Nov 26, 2003
29
CA
Hello everyone...


I'm using sql queries(insert)..but i don't know how to use the @@identity? Let's say, I JUST INSERTED A NEW ROW...THEN to get the the ID of that row is the follwing...

SELECT @@IDENTITY

IS THIS RIGHT?
THANKS
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top