Groups | Blog | Home
all groups > sql server programming > december 2005 >

sql server programming : Create Table


Aaron Bertrand [SQL Server MVP]
12/22/2005 2:57:56 PM
SELECT *
INTO newTable
FROM oldTable
WHERE 1 = 0;

Better yet, store your CREATE TABLE scripts in source control instead of
relying on this. Because you will not get any indexes, constraints, keys,
identity properties, statistics, extended properties, etc.

A


[quoted text, click to view]

TAHA
12/22/2005 9:43:58 PM
Hi All
how can I Create Table (COPY STRUCTURE TO TableName Only ) From Another
Table In The Same Database
Thanks


TAHA
12/22/2005 10:06:11 PM
Thank you Aaron

[quoted text, click to view]

AddThis Social Bookmark Button