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

后端 未结 10 1713
青春惊慌失措
青春惊慌失措 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:37

    select * into mytable_backup from mytable
    

    Makes a copy of table mytable, and every row in it, called mytable_backup.

提交回复
热议问题