Question

Locked

sql server

By raovv06 ·
how to make copy of structure of table to another which is new one

This conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

Here's 2 ways

by Tony Hopkinson In reply to sql server

Select Top 0 * Into MyNewTable
From MyOldTable

Will copy the Table structure, take out Top 0 if you want all the data.

Note no Primary key, index's or any other constraint will be copied.

If you want those, script the table to a file, rename as required and then execute.

Back to Networks Forum
2 total posts (Page 1 of 1)  

Related Discussions

Related Forums