Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
YAQ on BIZ and DA tiers
Message
From
29/08/2009 23:56:49
 
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01419401
Message ID:
01421714
Views:
61
---Also, at one point I thought this was going to come up, but it didn't, still I'll mention it anyway....starting in 2005, in an UPDATE or INSERT statement, you can OUTPUT data from the INSERTED/DELETED tables (that were previously available only in triggers). So one can insert or update, and output columns from INSERTED/DELETED (which might include new identity PKs generated) without needing another SELECT statement or another call back to the database.

That's pretty slick.
Thanks, Kevin. I didn't know about OUTPUT - I'll be using it!
Anyone who does not go overboard- deserves to.
Malcolm Forbes, Sr.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform