Viewing 15 posts - 17,341 through 17,355 (of 18,926 total)
If it's a 32 way box, maybe the server is using parallelism on the 2nd plan...
what is the cost of the 2nd query compared to the 2 others (pourcentage).
June 6, 2005 at 12:31 pm
You obviously have different plans but since I don't see the same thing as you do it's gonna be hard for me to help.
Also I'm confirming that ! and !=...
June 6, 2005 at 12:12 pm
Always the simplest things that trip you up. Probably worked for so long because the parameters were few and short when called... or maybe you just didn't hear about...
June 6, 2005 at 12:09 pm
Declare @StartD as datetime
Declare @EndD as datetime
Set @StartD = Dateadd(d, datediff(d, 0, GetDate()), 0)
set @EndD = dateadd(d, 1, @StartD)
Select @StartD, @EndD
Select * from dbo.YourTable where DateCol >= @StartD and DateCol...
June 6, 2005 at 12:01 pm
Order by 1 will not be supported in 2005... better get used to put the real column in there.
June 6, 2005 at 11:57 am
I ran your script but all 3 plans were exactly the same.
What version of sql server are you running?
What is the database compatibility level of the database?
Can you post the...
June 6, 2005 at 11:52 am
Insert into b (sho, evi, col1, col2)
Select sho, evi, col1, col2 from dbo.a A where not exits (Select * from dbo.B B where A.sho = B.sho and A.evi = B.evi)
June 6, 2005 at 11:23 am
Can you post the code you are using to call the sp along with the results?
June 6, 2005 at 11:20 am
Yup but it's gonna be even better next year.
June 6, 2005 at 9:26 am
RETURN
is the same as RETURN 0
Do you mean that you get 2 results set instead of one?
June 6, 2005 at 9:24 am
Or even...
Order by events.date????????
Because without a second column to sort on, the previous order by doesn't mean a lot...
June 6, 2005 at 9:09 am
Just to add even more fuel to this post, it would be better to use the bewteen operator for this task as it would use an index seek and not...
June 6, 2005 at 9:07 am
This cannot be done that way... You'd have to code the select statement of the cursor in dynamic sql too.
What problem are you trying to solve?
June 6, 2005 at 8:54 am
Viewing 15 posts - 17,341 through 17,355 (of 18,926 total)