dbTalk Databases Forums  

Duplicate table

microsoft.public.sqlserver.clients microsoft.public.sqlserver.clients


Discuss Duplicate table in the microsoft.public.sqlserver.clients forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Omar Abid
 
Posts: n/a

Default Duplicate table - 06-11-2007 , 11:20 AM






Hi,
In my program i need to duplicate a table in a current data base.
I'm thinkin' of reading the data base columns and then rows and so i
create another table
Is there any other easy and fast method with SQL Server 2005, because
my idea is so slow
I'm using VB 2005 Express with SQL Server 2005 Express
Thanks


Reply With Quote
  #2  
Old   
Andrew J. Kelly
 
Posts: n/a

Default Re: Duplicate table - 06-11-2007 , 02:46 PM






SELECT * INTO NewTable FROM OldTable


--
Andrew J. Kelly SQL MVP

"Omar Abid" <omar.abid2006 (AT) gmail (DOT) com> wrote

Quote:
Hi,
In my program i need to duplicate a table in a current data base.
I'm thinkin' of reading the data base columns and then rows and so i
create another table
Is there any other easy and fast method with SQL Server 2005, because
my idea is so slow
I'm using VB 2005 Express with SQL Server 2005 Express
Thanks




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.