Viewing 15 posts - 22,666 through 22,680 (of 26,490 total)
Jeff Moden (2/2/2009)
rich.ramos (2/2/2009)
February 2, 2009 at 7:10 pm
Third post was the only idea I could give you without the entire query.
February 2, 2009 at 6:59 pm
It would be, my hope, that the join between the two "tables" would occur on the linked server instead of the linking server.
February 2, 2009 at 6:37 pm
As I said earlier, don't be surprised if it is pulling the entire data set over to your server and then performing the join locally on the server with the...
February 2, 2009 at 6:28 pm
noeld (2/2/2009)
Lynn Pettis (2/2/2009)
GilaMonster (2/2/2009)
Matt Miller (2/2/2009)
I'd laugh at that - but I was coding SQL while watching the superbowl yesterday....:)Super what?
Oh, right, the World Cup is the only TRUE...
February 2, 2009 at 6:11 pm
The change in formating the code may not affect performance. You may want to consider using a view on the linked server and see if that improves performance.
February 2, 2009 at 6:08 pm
Mike Levan (2/2/2009)
LynnDo u mind to put your code here as you said.
What code? My last comment was based solely on observation.
Your code:
select M.*
from DEV1.StatePA.dbo.Revenue as M ,...
February 2, 2009 at 6:05 pm
hmm, interesting. OP has yet to answer questions posted.
February 2, 2009 at 4:06 pm
Well, without the entire query it is difficult to know what needs to change to improve it.
February 2, 2009 at 3:03 pm
Not sure, but it might be trying to pull all the data from each table over to the server you are running the query from before doing the join.
FYI, I'd...
February 2, 2009 at 3:01 pm
Okay, never mind. That wasn't a good test. When you delete your post the count is adjusted. We'd have to have Steve tell us if we'd "lose...
February 2, 2009 at 2:59 pm
RBarryYoung (2/1/2009)
Jeff Moden (1/30/2009)
February 2, 2009 at 2:51 pm
Not too difficult. What have you tried so far?
February 2, 2009 at 2:19 pm
Change this:
and (year(FromDt) = ' + @year + ')
to this:
and (FromDt >= dateadd(yyyy, cast(' + @year + ' as int) - 1900, 0) and FromDt < dateadd(yyyy, cast(' + @year...
February 2, 2009 at 2:14 pm
I also have a ',' at the end of the select that will cause an syntax error due to the 'FROM' clause then being added to the dynamic sql.
Either that,...
February 2, 2009 at 2:07 pm
Viewing 15 posts - 22,666 through 22,680 (of 26,490 total)