Home > Archive > MS SQL Server > February 2006 > Re: linked server, oledb for odbc, slow performance on join to cac









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: linked server, oledb for odbc, slow performance on join to cac
John Bell

2006-02-06, 9:23 am

Hi

I did not see an example of the first query in your previous post!

You may also want to specify only the column names required instead of (*)
which will reduce the size of the data being retrieved

SELECT X.ID, X.Col1, X.Col2
FROM OPENQUERY(Cache_test
01, 'SELECT ID, col1, col2 FROM Table01 WHERE
ID=22 ') AS X
JOIN dbo.tblTable01AddOn A ON X.ID = A.ID

Have you tried using a temporary table to store the data from the openquery?
If the openquery can be restricted that should be better, although it may
mean resorting to dynamic SQL.

John


"steven@ironcube.com" wrote:

> Hi John,
>
> I got posts all over this group this week as well as the cache. Sorry,
> I didn't see that anyone got back to me on this one. I actually have
> tried both syntax you mentioned above. I saw the same from both of
> them. Very slow.
>
> I contacted cache over the weekend and I'm hoping to see an email from
> them soon in my inbox. If I do and the OLEdb driver helps (or doesn't)
> I'm going to post back just so other in the same boat know what
> happened.
>
> Thanks for taking the time to post. I appreciate it. Have a good one.
> :-)
>
>

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2009 droptable.com