Forum Replies Created

Viewing 15 posts - 46 through 60 (of 63 total)

  • RE: Dynamic where clause

    [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...

  • RE: Reporting on blocking transactions

    [font="Arial"]Regarding blocking SPIDs, here is a query that I use:[/font]

    SELECT TOP 1

    &#160 session_id AS Blocked_SPID,

     &#160blocking_session_id AS Blocking_SPID,

     &#160wait_time

    FROM sys.dm_exec_requests

    WHERE wait_time >= 15000--15 seconds or more

    AND blocking_session_id != 0

    ORDER BY...

  • RE: Stored Proc Result Set Columns

    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...

  • RE: DB Performance Degradation - IO Bottleneck

    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...

  • RE: Out of date statistics

    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:...

  • RE: Out of date statistics

    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...

  • RE: dbcc

    When I'm performance testing a stored proc, the first thing I do is rebuild all indexes and update statistics. (I'll assume you can do this in a non-production environment.)

    Then...

  • RE: Out of date statistics

    David (3/16/2009)


    A possible sign that your statistics are out of date is if the actual and estimated row counts in the execution plans are very different.

    I expect that you know,...

  • RE: blocking

    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 >...

  • RE: Index Fragmentation/Identity Property

    t.walker (3/12/2009)


    Dave,

    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...

  • RE: Index Fragmentation/Identity Property

    GilaMonster (3/11/2009)


    Just bear in mind that by setting a fill factor to 75%, your table is now taking a fair bit more pages. This means more space on disk, more...

  • RE: Index Fragmentation/Identity Property

    t.walker (3/12/2009)


    Dave,

    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?...

  • RE: Index Fragmentation/Identity Property

    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...

  • RE: Index Fragmentation/Identity Property

    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...

  • RE: Index Fragmentation/Identity Property

    Jeffrey Williams (3/10/2009)


    In addition to what Gail has mentioned, how much space is available in the data file? Do you have enough space available to rebuild indexes - or,...

Viewing 15 posts - 46 through 60 (of 63 total)