Viewing 15 posts - 9,406 through 9,420 (of 49,571 total)
Same reasons SQL won't automatically take backups or automatically create indexes for you, impossible to decide correctly for all possible situations and guessing wrongly could open MS to liabilities.
April 4, 2014 at 7:44 am
phingers (4/4/2014)
Thanks I tried that but I can't use the subquery (SELECT nomcode FROM ctlfil WHERE recid = 24) in the GROUP BY clause
Why not?
The scalar function will do the...
April 4, 2014 at 7:34 am
This should work as long as you don't have multiple rows being returned from that subquery
SELECT dbo.nomfil.nomcode ,
ISNULL(calc.val, 0) AS ytdper...
April 4, 2014 at 7:04 am
SQL will never, under any circumstances, run CheckDB automatically. That would be a very bad thing.
April 4, 2014 at 6:55 am
milos.radivojevic (4/4/2014)
The following DMV query returns the number of execution for a specific stored procedure since the last server restart:
It returns the number of executions since that procedure's plan was...
April 4, 2014 at 6:43 am
All I can tell from that is that CheckDB is scheduled to run daily and is running daily.
April 4, 2014 at 6:40 am
Casper101 (4/4/2014)
So you would advise against it?
I would say it's a lot of work, a lot of design required, easy to get wrong.
The better solution would rather be hardware and...
April 4, 2014 at 4:56 am
Without seeing the 'six lines' which you refer to, no idea.
April 4, 2014 at 4:27 am
A database is attached to a single SQL instance only. To scale out, you'd have to work out how to split the database into multiple databases and change the applications...
April 4, 2014 at 4:13 am
sqlbuddy123 (4/3/2014)
Key lookup is bad, instead you can avoid this by using a covering index by including all those referred columns in the index itself.
Key lookup might be bad....
April 4, 2014 at 3:53 am
MyDoggieJessie (4/3/2014)
April 4, 2014 at 3:50 am
I think, as for almost all hints and options, it's a targeted solution to specific problems, not something to be put on every procedure blindly.
April 4, 2014 at 2:41 am
If your monitoring for multiple days in a row, I wouldn't use trace. Data volume can get way too high. If it's a small number of procedures you want to...
April 4, 2014 at 2:40 am
Could slow down data modifications. It's not something I would run on production except in exceptional circumstances.
April 3, 2014 at 12:20 pm
To help you we need to see the execution plan (actual), table definitions and index definitions. Otherwise we're just guessing.
April 3, 2014 at 10:16 am
Viewing 15 posts - 9,406 through 9,420 (of 49,571 total)