- IDENT_CURRENT returns the last identity value generated for a specific table in any session and any scope.
- @@IDENTITY returns the last identity value generated for any table in the current session, across all scopes.
- SCOPE_IDENTITY returns the last identity value generated for any table in the current session and the current scope.
Tech Controls is a site aimed at web developers and designers offering tutorials and articles on technologies, skills and techniques to improve how you design and build websites and provide the solution of problems. We cover ASP.NET, MVC 3, C#.NET, HTML, CSS, JavaScript, SQLServer 2005/2008/2012 and Interview Questions and Answers on .Net.
Thursday, 23 July 2015
Difference between IDENT_CURRENT, @@IDENTITY, SCOPE_IDENTITY in sqlserver ?
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Thanks for comments.