create table using select sql server code example
Example 1: sqlserver create table from select
Select * into new_table from old_table
Example 2: into sql
#The SELECT INTO statement selects data from one table and inserts it into a different table.
#The SELECT INTO statement is most often used to create backup copies of tables.
syntax->SELECT *
INTO new_table_name [IN externaldatabase]
FROM old_tablename
///example///
SELECT *
INTO Persons_Backup
FROM Persons