New Transact SQL Video Tutorial: Why You Use SCOPE_IDENTITY() Instead of @@IDENTITY
Why You Use SCOPE_IDENTITY() Instead of @@IDENTITY - view details
If your queries and stored procedures use @@IDENTITY (perhaps you have legacy code updated from SQL Server 7.0 or earlier), you'll likely get good value from watching this video on replacing @@IDENTITY calls with the T-SQL function SCOPE_IDENTITY(). This video shows very plainly the negative possiblities of using @@IDENTITY today (triggers are a real problem) and, after you watch this tutorial, you'll never want to use @@IDENTITY again!
- Category: Table Design - Datatypes, Constraints, IDENTITY Columns, Normalization, and More
- Skill Level: 300 (Intermediate)
- Length: 12:17 (9.10MB)
- Applies to Versions: SQL Server - All Versions
- Full Details
To download this video, log in, then visit the video's detail page and click "download". This is a subscriber-only video so a subscription is required
Note: You must have the TSCC codec installed to view this video

0 Comments:
Post a Comment
<< Home