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] >-----Original Message-----
>
>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.
>
>
>.