dbTalk Databases Forums  

Copy table Query

microsoft.public.sqlserver.tools microsoft.public.sqlserver.tools


Discuss Copy table Query in the microsoft.public.sqlserver.tools forum.



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

Default Copy table Query - 08-21-2003 , 01:37 PM






Me again.
Is there a query to copy the data in a table in a database
on one server, into a table on another server?
I know I can just do "Import", but we need to know how to
do the same process via a query.
Thanks!


Reply With Quote
  #2  
Old   
Tom Moreau
 
Posts: n/a

Default Re: Copy table Query - 08-21-2003 , 01:45 PM






Assuming you have created a linked server called OtherServer:

insert OtherServer.OtherDB.dbo.OtherTable
select
*
from
MyTable


--
Tom
--------------------------------------------
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
SQL Server MVP
Columnist, SQL Server Professional
Toronto, ON Canada
www.pinnaclepublishing.com.sql
..

"Kyra" <kfelisky (AT) hotmail (DOT) com> wrote

Me again.
Is there a query to copy the data in a table in a database
on one server, into a table on another server?
I know I can just do "Import", but we need to know how to
do the same process via a query.
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.