Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cretate duplicate table
Message
 
To
01/12/2001 16:26:14
Joel Hokanson
Services Integration Group
Bellaire, Texas, United States
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00588434
Message ID:
00588455
Views:
19
>What is syntax to create an empty copy of an existing table.
>
>In Foxpro I just use "copy stru to"
>
>What do I do in SQL?????
>
>I am goingto use SQLEXEC() in Foxpro to actually run it

If you just want to create a new table based on another existing one, you can use this:
SELECT TOP 0 *
INTO NewTableName
FROM ExistingTable
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform