Viewing 15 posts - 6,286 through 6,300 (of 18,926 total)
Most people do this when they build dyanmic sql from a search form with many possible search options.
You start with 1 = 1 (100% of the rows)... then you start...
May 10, 2011 at 9:02 am
sqlnaive (5/10/2011)
May 10, 2011 at 8:12 am
Ninja's_RGR'us (5/10/2011)
That one is out of my expertise zone. Letting the other...
May 10, 2011 at 8:10 am
You think 40 seconds to run this is slow??? Granted it's not blazing but certainly not slow.
That one is out of my expertise zone. Letting the other ones...
May 10, 2011 at 8:06 am
The estimates seem completely out of whack.
#1 - Do you have the same indexes in both environements?
#2 - Run update stats
May 10, 2011 at 7:47 am
GilaMonster (5/10/2011)
Ninja's_RGR'us (5/10/2011)
Actually it's 10 minutes. I gave him the best link I had, looks like it did the job :-)!
😀 I didn't check where the link went before...
May 10, 2011 at 7:37 am
Upgrading is never an easy project... no matter how small.
May 10, 2011 at 7:36 am
You can look into unpivot in books online.
1 solution I recently tried is to insert that row into a table variable. Then do 1 union all per column. ...
May 10, 2011 at 7:32 am
GilaMonster (5/10/2011)
rajeshn29.dba (5/10/2011)
Can any one give reply plzzzzzzzzzzzzzzzzzzz
Patience. This is a discussion forum, not a chat room. We're all volunteers with our own jobs and own problems. bumping your post...
May 10, 2011 at 7:30 am
Cool script but I think that's only 1% of the problem. Those new identities need to be linked to the child tables. That part will have to be...
May 10, 2011 at 7:24 am
colin.Leversuch-Roberts (5/10/2011)
It's actually a much better route to follow -...
May 10, 2011 at 7:16 am
Here's what I did. Create the job, create the schedule to run every 12 minutes.
Script it out instead of doing OK.
Then in the script find the code that looks...
May 10, 2011 at 6:29 am
I can't open those.
Can you save the plans as .sqlplan and upload those files?
TIA.
May 10, 2011 at 5:48 am
This is for datafiles, but it would be an easy tweak for logs.
IF OBJECT_ID('tempdb..#dbs') > 0
DROP TABLE #dbs
IF OBJECT_ID('tempdb..#Drives') > 0
...
May 10, 2011 at 5:43 am
Viewing 15 posts - 6,286 through 6,300 (of 18,926 total)