Monday, September 15, 2008

SCOPE_IDENTITY

Returns the last identity value inserted into an identity column in the same scope. A scope is a module: a stored procedure, trigger, function, or batch. Therefore, two statements are in the same scope if they are in the same stored procedure, function, or batch.

SCOPE_IDENTITY()

Returns numeric value.eg:- RETURN SCOPE_IDENTITY()

2 comments:

Anonymous said...

Visit http://www.foosms.com for sending free sms.. :)

Anonymous said...

I was suggested this blog by my cousin. I'm not sure whether
this post is written by him as no one else know such detailed
about my problem. You're amazing! Thanks!

Also visit my blog ... Reviews on Panic Away (blogspot.com)