Viewing 15 posts - 22,666 through 22,680 (of 26,486 total)
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
I think there is a CASE statement missing in the dynamic sql as I have a WHEN but no corresponding CASE.
February 2, 2009 at 2:04 pm
And you don't have to wait until you are a "Jeff" or "Gail" to write an article. I don't pretend to be at their level and I have written...
February 2, 2009 at 1:56 pm
As asked before, what is the recovery model for the MOM onepoint database?
February 2, 2009 at 1:12 pm
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 World Champsionship Game.
:w00t:
February 2, 2009 at 12:49 pm
Viewing 15 posts - 22,666 through 22,680 (of 26,486 total)