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!

How To Reference Linked Server In A Query

Status
Not open for further replies.

Skittle

ISP
Sep 10, 2002
1,528
US
I have created a linked server to an AS400.
I now want to use tables within the linked AS400 on a select statement.

The syntax for a remote server is :-

SELECT * FROM MyLinkedServer...MyTable.

This is not accepted for an AS400 as the library name is required as well. I have tried all the permitations I can think off but none are accepted.

Anybody have any ideas?

Dazed and confused
(N+, MCAD)
 
Sorted it.

Just use OPENQUERY.



Dazed and confused
(N+, MCAD)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top