Forum Replies Created

Viewing 15 posts - 5,506 through 5,520 (of 49,552 total)

  • RE: Combining 2 stored procedures

    John Mitchell-245523 (6/24/2015)


    Might be worth referring to Gail's article[/url] on catch-all queries.

    The one on multiple execution paths[/url] may be more relevant.

    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: Tuning SQL Server query

    TheSQLGuru (5/18/2015)


    GilaMonster (5/18/2015)


    TheSQLGuru (5/18/2015)


    And I agree, what about the SORT makes it so bad you want to get rid of it?

    Personally I can't even see where a merge join would...

    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: Server Crashing & Dump files

    Shouldn't be. Access violations are related to illegal memory reads.

    Make sure your patches are up to date and if the problem continues consider calling Microsoft Customer Support, though since 2008...

    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 (quickly) out of date

    ken.trock (6/23/2015)


    So my question is how often do we have to do this?

    As often as necessary. I've heard of a case where that was every hour.

    Nothing wrong with having...

    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'll probably be looking to get new kittens/cats later this year. My Siamese died late May, completely unexpected, out of the blue. One day she was fine, next day very...

    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?

    WayneS (6/23/2015)


    Brandie Tarvin (6/23/2015)


    So I know it's dirty pool to promote one's own blog on the forums, but in this case, I absolutely MUST show off.

    Click it and you'll see...

    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 slow datetime record search

    Alvin Ramard (6/23/2015)


    leetrueman (6/23/2015)


    The first one

    CREATE NONCLUSTERED INDEX idx_Transactions_TransTime

    ON dbo.transactions (trans_time, SiteID)

    INCLUDE (transactionID,siteID,areacode,gamename,sitename)

    GO

    is reporting

    Msg 1909, Level 16, State 2, Line 1

    Cannot use duplicate column names in index. Column name 'SiteID'...

    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: IMPERSONATE ANY LOGIN permission

    Haven't forgotten. Just in the middle of a large one for Tony, and a couple presentations to write up.

    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 slow datetime record search

    Nope, they're extra indexes, they won't mangle, change or otherwise affect the data.

    They may take some time to run, so make sure that you run them during a maintenance window...

    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 slow datetime record search

    Cool, thank you.

    Ok, definitely index-related. You just don't have the indexes needed to support this query. With so few indexes, I'm not too concerned about adding more.

    Add these indexes 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: Wait types and Latch question

    Dataset parent latch is taken when SQL's doing a parallel table scan. you're probably either missing indexes or have queries which are written so that they can't use indexes.

    To be...

    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?

    jasona.work (6/23/2015)


    Of course, I'm also now wondering if I might be better served to put the data from the XE session into my temp table in the format I'm looking...

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

    sault (6/23/2015)


    If the transaction logs are never part of the database then what is in them that brings the database up to date when they are restored?

    I didn't...

    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 slow datetime record search

    Management Studio is what you must have used to get the execution plan. There's a window called Object Explorer (open by default). It's a tree-structure of your database.

    Navigate the tree...

    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 slow datetime record search

    I need to know what indexes exist on the tables involved in this query.

    Open up Management Studio, navigate in Object Explorer to the tables and script out the indexes.

    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 - 5,506 through 5,520 (of 49,552 total)