Forum Replies Created

Viewing 15 posts - 5,506 through 5,520 (of 49,571 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.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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