dbTalk Databases Forums  

How To Copy Tables Across Servers?

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


Discuss How To Copy Tables Across Servers? in the microsoft.public.sqlserver.dts forum.



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

Default How To Copy Tables Across Servers? - 03-07-2006 , 02:47 PM






Hi,

We got a production database that gets
tables added to it daily.
So, every single day we transfer those new
tables via DTS to five (5) other servers (Each having the same database
name).

I found no way to use the 'select' stmt across servers.
Can we accomplish this daily transfer by using a
'Select' statement?

I'm not conversant with TSQL (yet!) and
would very much appreciate any help you can
give me.

Thank you very much


Mike

*** Sent via Developersdex http://www.developersdex.com ***

Reply With Quote
  #2  
Old   
David Portas
 
Posts: n/a

Default Re: How To Copy Tables Across Servers? - 03-07-2006 , 03:10 PM






mike wrote:
Quote:
Hi,

We got a production database that gets
tables added to it daily.
So, every single day we transfer those new
tables via DTS to five (5) other servers (Each having the same database
name).

I found no way to use the 'select' stmt across servers.
Can we accomplish this daily transfer by using a
'Select' statement?

I'm not conversant with TSQL (yet!) and
would very much appreciate any help you can
give me.

Thank you very much


Mike

*** Sent via Developersdex http://www.developersdex.com ***
Replied in microsoft.public.sqlserver.server

Please do not multi-post.

--
David Portas, SQL Server MVP

Whenever possible please post enough code to reproduce your problem.
Including CREATE TABLE and INSERT statements usually helps.
State what version of SQL Server you are using and specify the content
of any error messages.

SQL Server Books Online:
http://msdn2.microsoft.com/library/m...S,SQL.90).aspx
--



Reply With Quote
  #3  
Old   
Rajagopal
 
Posts: n/a

Default RE: How To Copy Tables Across Servers? - 03-07-2006 , 03:25 PM



Hi,

Am not sure whether this is best way to do it, but i know this is possible
way to do it.

You can use activeX task in DTS and can get the newly added tables using
below query
Select name from sysobjects where crdate = getdate()

Also create a global variage to hold the table name and this global variable
can be assigned with the table name retrieved using above query.

Now the DTS package will run based on the global variable.

Hope this helps.

Raj...



"mike" wrote:

Quote:
Hi,

We got a production database that gets
tables added to it daily.
So, every single day we transfer those new
tables via DTS to five (5) other servers (Each having the same database
name).

I found no way to use the 'select' stmt across servers.
Can we accomplish this daily transfer by using a
'Select' statement?

I'm not conversant with TSQL (yet!) and
would very much appreciate any help you can
give me.

Thank you very much


Mike

*** Sent via Developersdex http://www.developersdex.com ***


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.