Forum Replies Created

Viewing 15 posts - 23,476 through 23,490 (of 49,552 total)

  • RE: Understanding which missing indexes should be created

    Tom.Thomson (9/17/2011)


    Maybe you need both for deadlock avoidance.

    It's possible, but I wouldn't start with both on the off chance that a deadlock may occur.

    The bottom line is that the missing...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Incorrect syntax near the keyword 'end'.

    You have two BEGINs (one at the start of the procedure and one after the ELSE) and only one END.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Are the posted questions getting worse?

    bitbucket-25253 (9/16/2011)


    Might I add that a brief description of what the CHECKPOINT command actual accomplishes. I believe many do not understand that it writes changes in the Buffer pool...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Top and Group By

    New question, new thread please.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Are the posted questions getting worse?

    ALZDBA (9/16/2011)


    Tom.Thomson (9/16/2011)


    I forgot one:

    5) risks of using backup log to append a log backup to an existing file containing log backups instead of always creating a new backup file...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Need help with Transaction Log size reduction

    I'd recommend not, unless you have the need to restore the dev database to point-in-time or you plan to mirror the dev database.

    Install a dev instance on your local...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Need help with Transaction Log size reduction

    If it's a dev database, do you need to be able to restore it to any point in time? If not, just switch to simple recovery, run a checkpoint and...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Understanding which missing indexes should be created

    You don't want both. You want the second.

    This is one of the major drawbacks of the missing index DMV. The optimiser considers each query in isolation when it optimises and...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Are the posted questions getting worse?

    I suspect this got lost in all the 'helping Grant abuse SQL' posts...

    Another request:

    I'm bunking tonight and starting the rewrite of my rather old (and second-ever) article Managing Transaction Logs[/url]....

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Difference between 'hash match/inner join' and 'nested loops/inner join' in execution query plan?

    Did you read the blog post that was given in this thread? Did you read the post it links to?

    If you did and still have questions, please start a new...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: sql Cardinality

    GSquared (9/16/2011)


    Yep. Didn't quite nail that one precisely, did I?

    Almost everyone mixes up density (measure of how unique an index is), selectivity (measure of the fraction of total rows...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Reorganize Index - faster when less fragmented?

    Ninja's_RGR'us (9/16/2011)


    I would add that you can consider doing alter index... WITH MAXDOP

    Index reorganise can't parallel. It always runs on one thread, no matter what the maxdop settings. It's rebuild...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: statistics bug fix - turn it off and back on again...

    Not running into this perhaps?

    http://sqlinthewild.co.za/index.php/2011/03/22/statistics-row-estimations-and-the-ascending-date-column/

    It can happen for any ascending column, not just dates.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Query won't finish! Amzaingly large query plan

    Make sure your stats updates are with fullscan.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Query won't finish! Amzaingly large query plan

    Update all the statistics on all the tables involved.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

Viewing 15 posts - 23,476 through 23,490 (of 49,552 total)