Duplicating a TABLE using Microsoft SQL Server Management

前端 未结 4 1904
耶瑟儿~
耶瑟儿~ 2021-02-02 07:35

Need to duplicate a TABLE using Microsoft SQL Management Studio 2008

The TABLE needs to duplicate all table row (Primary Key) ID as well.

4条回答
  •  生来不讨喜
    2021-02-02 08:09

    I prefere the copy / paste solution as it is documented here. It works for Management Studio 2005 upwards. You just have to select all columns in the design then Edit -> Copy. Create a new table and the Edit -> Paste. This, at least, copies default values but of course doesn't copy the actual data.

提交回复
热议问题