Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Is this Possible?

$
0
0

I want to pass a table varible to a linked server to cut down on the I/O:

SELECT *FROMOPENQUERY(ORDERSVR,'Select *

                                                               FROM globalCommerce.dbo.GlobalOrderItems with (NoLock)

                             WHERE GlobalOrderID IN (SELECT DISTINCT GlobalOrderID FROM '''
+ @List+''' '')')          

                                   


Viewing all articles
Browse latest Browse all 23857

Trending Articles