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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Quering data on two servers

Status
Not open for further replies.

mnasuto

Technical User
Oct 22, 2001
87
GB
Hi,

Is it possile to create query where tables are from different databases on different servers?
If yes what is syntacs for selecting one field from each table?

Please help if you can

Best Regards,
M
 
Select <cols>
From ServerName.DataBaseName.OwnerName.<table name>
 
Hi,

Thank you for prompt replay.
I am getting message:

The number name 'Server2.data2.dbo.data2' contains more than the maximum number of prefixes. The maximum is 3.

What I am doing wrong?
Please advice

M
 
HI,

I am getting message invalid object
 
are you getting confused with database name and table name??

because i see both the names are same...

-DNG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top