dbTalk Databases Forums  

Hi copy a table form one database to another database

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Hi copy a table form one database to another database in the microsoft.public.sqlserver.dts forum.



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

Default Hi copy a table form one database to another database - 05-10-2006 , 08:31 AM






Hi is their any way around to copy a table from one database to another
database on same server using store procedure not DTS thanks

Reply With Quote
  #2  
Old   
Carl Henthorn
 
Posts: n/a

Default RE: Hi copy a table form one database to another database - 05-10-2006 , 12:44 PM






try this:

use <destination db>
go
select * into < new table name> from <source db>.<owner>.<table name>
this will copy the data only. you will have to re-create any triggers,
indexes, etc manually after the data copy.

"amjad" wrote:

Quote:
Hi is their any way around to copy a table from one database to another
database on same server using store procedure not DTS 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.