Backup a single table with its data from a database in sql server 2008

后端 未结 10 1695
青春惊慌失措
青春惊慌失措 2020-12-02 07:18

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?

10条回答
  •  暖寄归人
    2020-12-02 07:40

    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
    

提交回复
热议问题