SQL Server SELECT INTO

Posted by Derek Dieter on SQL Server Planet See other posts from SQL Server Planet or by Derek Dieter
Published on Sat, 12 Jun 2010 08:53:54 +0000 Indexed on 2010/06/12 8:54 UTC
Read the original article Hit count: 480

Filed under:
The most efficient method of copying a result set into a new table is to use the SELECT INTO method. This method also follows a very simple syntax. [/sql] SELECT * INTO dbo.NewTableName FROM dbo.ExistingTable [sql] Once the query above is executed, all the columns and data in the table ExistingTable (along with their datatypes) will be copied into a [...]

© SQL Server Planet or respective owner

Related posts about sql