Groups | Blog | Home
all groups > sql server programming > october 2003 >

sql server programming : How to copy few tables to another sql server ?



Kiril
10/17/2003 2:12:12 PM
Why don't you just create a DTS package and run that?
You could even schedule it to run.
Kiril
[quoted text, click to view]
anonymous NO[at]SPAM discussions.microsoft.com
10/17/2003 2:18:37 PM
are you copying from all servers to your own? one to many?
many to many? Are the tables the same schema on each
server? Need more info because this will affect the syntax
of the script.

Generically speaking, look into creating linked servers
between the servers, and either use a union all or join
statement to get the data moved.

Perhaps a DTS package would work for you as well. you can
create on easily by right clicking on the database, choose
all tasks, and either import or export data, depending on
whether you are on the source or dest server.
then save the package before you run it.

Hope this helps.

[quoted text, click to view]
news.verizon.net
10/17/2003 8:37:58 PM

I have about 3 companies and they all are connected thru VPN. I have
created 3 sql server registeration so I can now see all three sql servers in
my enterprise manager.

I want to copy few tables from company1 and company2 to company3 on a
regular basis.

I am looking for a SQL statement that I can save in store procedure and that
copies automatically about 4 tables that I need from one sql to another.

I would really appreciate if someone please help.

Thanks.

AddThis Social Bookmark Button