Remote table hint example needed for simple join
From: Maryam (maryamafzal_at_hotmail.com)
Date: 05/11/04
- Next message: David Portas: "Re: TSQL INNER JOINS and null fields"
- Previous message: Craig G: "more sp_executesql questions!"
- Next in thread: Anith Sen: "Re: Remote table hint example needed for simple join"
- Reply: Anith Sen: "Re: Remote table hint example needed for simple join"
- Messages sorted by: [ date ] [ thread ]
Date: 11 May 2004 01:59:52 -0700
Could someone explain how an inner join can be rewritten to
incorporate a remote table hint in the select statement where a local
table is being joined to table on a linked server and the select needs
to run on the remote table.
original sql (all happening locally)
SELECT Books.Title, BookOrders.OrderID
FROM Books INNER JOIN BookOrders ON Books.TitleID = BookOrders.TitleID
I have created a linked server called TESTLINKEDSERVER AND it has a
jet 4.o oledb datasource and contains the bookorders table.
I am not sure how to rewrite the original sql statement so that i
incorporate the linked server and perform the join on the linked
server using the remote table hint.
Could someone please help.
Maryam
- Next message: David Portas: "Re: TSQL INNER JOINS and null fields"
- Previous message: Craig G: "more sp_executesql questions!"
- Next in thread: Anith Sen: "Re: Remote table hint example needed for simple join"
- Reply: Anith Sen: "Re: Remote table hint example needed for simple join"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|