|
-
Feb 8th, 2012, 06:27 AM
#2
Re: scripts to create table
You didn't mention what database you are using. For SQL 2005 you can:
Select * into NewCategory from Category.
If you don't want to rename it you'll need to do something like:
Select * into #TempCategory
Drop table category
select * into Category from ##TempCategory
It would help to know what you are trying to achieve.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|