I want to get a backup of a single table with its data from a database in SQL Server using a script.
How can I do that?
Try using the following query which will create Respective table in same or other DB ("DataBase").
SELECT * INTO DataBase.dbo.BackUpTable FROM SourceDataBase.dbo.SourceTable