Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Inserting and selecting at the same time
Message
From
23/09/2013 10:13:46
 
 
To
23/09/2013 10:10:09
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2008
Application:
Desktop
Miscellaneous
Thread ID:
01583879
Message ID:
01583880
Views:
47
Starting in SQL 2005, they added an OUTPUT statement that you can add to the end of an INSERT statement.

it allows you immediately "get at" the values you inserted, even identity columns.

I'll type out an example in a second.
Previous
Reply
Map
View

Click here to load this message in the networking platform