dbTalk Databases Forums  

Duplicate table

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss Duplicate table in the comp.databases.ms-sqlserver forum.



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

Default Duplicate table - 06-11-2007 , 11:16 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   
Omar Abid
 
Posts: n/a

Default Re: Duplicate table - 06-11-2007 , 03:09 PM






On 11 juin, 18:54, "Chris.Cheney" <Chris.CheneyXXNOSPA... (AT) tesco (DOT) net>
wrote:
Quote:
Omar Abid <omar.abid2... (AT) gmail (DOT) com> wrote in news:1181578579.728121.204320
@g4g2000hsf.googlegroups.com:

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

SELECT * INTO NewTable FROM OldTable
Hi
Thx for your reply I'll try your code and submit the result to you
Omar Abid



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.