Viewing 15 posts - 12,706 through 12,720 (of 15,381 total)
30 seconds for dropping and creating over 200 procs does not sound unreasonable. It starts to get crazy when you have to run this on 1,000 db's. Suddenly you are...
March 21, 2012 at 12:53 pm
Easiest solution is to stop using the text datatype. It is deprecated and will no longer be supported in the future. Instead you should use (n)varchar(MAX).
March 20, 2012 at 2:28 pm
jcb (3/20/2012)
I had found:
WHERE (key1 = @key1 AND @key1 IS NOT NULL)
OR (key2 = @key2 AND @key2 IS NOT NULL)
OR (key3 = @key3 AND @key3 IS NOT NULL)
makes better execution...
March 20, 2012 at 2:17 pm
codebyo (3/20/2012)
SQLKnowItAll (3/20/2012)
EDIT: Sorry, you did not mention DISTINCT in...
March 20, 2012 at 1:02 pm
joe.cahoon (3/20/2012)
Would that work for a whole column of dates, or would I have to declare each on and convert them individually?
OH LORD NO!!! :w00t: I was just showing you...
March 20, 2012 at 12:24 pm
You can't give your group by derived column an alias. Remove the "as Region" and you should be fine.
March 20, 2012 at 12:19 pm
joe.cahoon (3/20/2012)
Okay, so If I cannot convert from that format, is their a way to hide the time from being displayed?
I think you maybe misunderstood what I was saying. Using...
March 20, 2012 at 12:17 pm
joe.cahoon (3/20/2012)
March 20, 2012 at 12:09 pm
Well it certainly isn't parameter sniffing...it is all the RBAR going on. There is no need to have nested loops for these inserts. If you want some help making this...
March 20, 2012 at 11:46 am
drew.allen (3/20/2012)
Sean Lange (3/20/2012)
Drew I am curious if you have seen performance improvements with this multiple queries over the way I posted above. Or is it just personal preference?
Just to...
March 20, 2012 at 11:03 am
Thanks for the reminder Gail. I did not realize the performance was much of an issue when there is only 1 variable with the approach I took. I knew that...
March 20, 2012 at 10:17 am
It looks like maybe you are trying to connect to sql express? Did you use a custom instance name for SQL express?
This article may provide some insight, assuming the services...
March 20, 2012 at 10:12 am
drew.allen (3/20/2012)
IF @StaffID IS...
March 20, 2012 at 9:38 am
If you want an even faster splitter...and I mean orders of magnitudes faster...take a look at the second link in my signature. It explains why looping structures are horribly inefficient...
March 20, 2012 at 8:59 am
To make this SARGable you should change this to not use the coalesce.
Like this.
SET @staffid = 1000
SELECT * FROM TABLE WHERE Staffid = @staffid or @staffid is null
This will let...
March 20, 2012 at 8:49 am
Viewing 15 posts - 12,706 through 12,720 (of 15,381 total)