Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Selecting across domains

Status
Not open for further replies.

DirtyB

Programmer
Joined
Mar 13, 2001
Messages
159
Location
US
I have two identical SQL Servers on two different domains. I need to get half of the data from a certain table on the first server, and half of the data from the same table on the other domain on the second server into the same table. I really need to be able to say "Insert into server2.table1(select (criteria) from server1.Table1)"

Is this possible, what is the syntax?

Thanks
 
bye the way, there is a trust between domains if that makes a difference
 
If the trust is setup correctly and you have the servers linked you should be fine with the following:

Insert into server2.database_name..table1(select (criteria) from server1.database_name..Table1)

Rick.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top