SELECT INTO
12. 9. 2022
Backup the entire table into a new table: SELECT * INTO [dbo].[NewTable] FROM [dbo].[ExistingTable] Select only particular columns into the new table or rename existing columns to new names: SELECT [Col1], [Col2] AS [NewCol2Name] INTO [dbo].[NewTable] FROM [dbo].[ExistingTable] Limit and filter the number of rows in the new table using…