Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2012 Forums
 SQL Server Administration (2012)
 Insert statement and column names

Author  Topic 

imransi17
Starting Member

12 Posts

Posted - 2014-06-02 : 10:40:10
Hello,

Can an INSERT statement also return all columns inserted as a result set? If so what clause of the INSERT statement does this?

Thanks,

gbritton
Master Smack Fu Yak Hacker

2780 Posts

Posted - 2014-06-02 : 11:19:57
the Output clause.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2014-06-06 : 08:58:48
see
http://www.tech-recipes.com/rx/47032/a-beginners-guide-to-the-output-clause-in-sql-server/[/]

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
   

- Advertisement -