Viewing 15 posts - 46 through 60 (of 63 total)
[font="Arial"]I prefer to avoid the IF/ELSE scenario for queries. Eventually, you'll have to "fix it" in two places. Plus, you open up the possibility of two different signatures...
December 4, 2009 at 1:34 pm
[font="Arial"]Regarding blocking SPIDs, here is a query that I use:[/font]
SELECT TOP 1
  session_id AS Blocked_SPID,
 blocking_session_id AS Blocking_SPID,
 wait_time
FROM sys.dm_exec_requests
WHERE wait_time >= 15000--15 seconds or more
AND blocking_session_id != 0
ORDER BY...
December 4, 2009 at 12:58 pm
Thanks, Elliott. FMTONLY may work, although some initial testing with some various sp's gives me some errors. It should be pretty easy to get what I need via...
November 25, 2009 at 12:54 pm
RE: Your trace findings.
Are there stored procs that are running slowly with a high number of reads and CPU?
If so, how many? If it's just a...
July 17, 2009 at 1:10 pm
Joseph (3/17/2009)
Hi Dave,Can you tell me how do you get the information of data inserted/updated/deleted since last update statistics...is there any DMV or table to look out..
Hi Joseph,
•Deletes are easy:...
March 18, 2009 at 6:43 am
The update stats job that should already be in your maintenance plan is critical to the performance of your applications, possibly more so than the rebuild indices job, and if...
March 17, 2009 at 11:19 am
David (3/16/2009)
I expect that you know,...
March 16, 2009 at 1:51 pm
To get the info in a query, try using this dynamic mgmt view: sys.dm_exec_requests.
For instance, to get all the spid's that are currently blocked:
SELECT *
FROM sys.dm_exec_requests
WHERE wait_time >...
March 16, 2009 at 12:11 pm
t.walker (3/12/2009)
OK .. I can see how you know how many updates.
Sorry about the schema point .. My mistake in misreading what you did!
To see whether a shrink has occurred...
March 12, 2009 at 9:25 am
GilaMonster (3/11/2009)
March 12, 2009 at 8:21 am
t.walker (3/12/2009)
There is something in your figures I still can't understand here. You are right, they don't stack up.
How do you know you are updating only a few hundred rows?...
March 12, 2009 at 8:14 am
I did some further testing. I dumped a table into a temp db and re-created all of the indexes, including the PK, which is clustered. It's on a...
March 11, 2009 at 3:10 pm
GilaMonster (3/10/2009)
Dave Mason (3/10/2009)
Oh, as far as the fragmentation threshold goes, it was 3% (or more) this morning. Prior to that, it was 5%.
I wouldn't worry until it reaches...
March 10, 2009 at 3:23 pm
Jeffrey Williams (3/10/2009)
March 10, 2009 at 3:03 pm
Viewing 15 posts - 46 through 60 (of 63 total)