문제

Ive got a localDB in VS2013, and I need to copy/clone the structure of a table and make a duplicate of it. How do I do this?

My Google skills are failing me.

P.s. The existing table is called manufaturers and I want the cloned version to be called manufacPt2.

Thanks.

도움이 되었습니까?

해결책

Assuming you want to duplicate/clone the table.

select * into DestinationTable
    from SourceTable
    where 1 = 2

From this website: Copy a table into new table with/without data - SQL Server

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top