Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
babucxi
Starting Member
2 Posts |
Posted - 2008-12-03 : 09:18:41
|
| Hi Friends,How to create a table from existing table with only structure but not the data---Babu |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2008-12-03 : 09:20:54
|
| One of these1 SELECT * into newtable FROM oldtable WHERE 1=02 Generate Script of oldtable;change name to newtable;run the scriptMadhivananFailing to plan is Planning to fail |
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-12-03 : 09:22:25
|
| [code]SELECT TOP 0 * into newtable FROM oldtable [/code] |
 |
|
|
babucxi
Starting Member
2 Posts |
Posted - 2008-12-03 : 09:38:01
|
| Hi Madhivanan/visahk16Many Thanks--Babu |
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-12-03 : 09:39:39
|
Cheers |
 |
|
|
|
|
|