Forum Replies Created

Viewing 15 posts - 37,696 through 37,710 (of 49,566 total)

  • RE: Help us tune a query

    Jeff Moden (7/14/2009)


    I haven't had the time to look at all the fine suggestions folks may have given, but if I look at your original query, I see the potential...

  • RE: INSERT INTO stored procedure template

    Have you looked at the templates in 2005's management studio? Ctrl-Alt-T to open template explorer.

  • RE: Are the posted questions getting worse?

    Paul White (7/14/2009)


    edit: stupid angle brackets! I give up - you get the idea

    Use the escape codes, not the brackets, unless you're writing actual xml. Markup's not allowed within...

  • RE: Are the posted questions getting worse?

    Dave Ballantyne (7/14/2009)


    IIRC it wasnt a turbo button , it was a 'go-slow for compatibility' button.

    Yeah, it was. That was part (maybe too subtle) of my joke. It could be...

  • RE: Kill Process

    The rollback has to complete. If it didn't, you'd be left with an inconsistent (suspect) database. There is no way you can stop that rollback. Even if you restart SQL,...

  • RE: Help us tune a query

    Christopher Stobbs (7/14/2009)


    would it be worth trying to add a non-clustered index to the temp table to try and get ride of the key lookup?

    Could widen the nonclustered to include...

  • RE: Are the posted questions getting worse?

    Dave Ballantyne (7/13/2009)


    GilaMonster (7/13/2009)

    I was referring to one of the other of his threads, the one that Dave posted.

    SELECT <lots> FROM <somewhere> WHERE tatcalltype = 'null' AND <other conditions>

    Done, apparently,...

  • RE: Are the posted questions getting worse?

    Paul White (7/13/2009)


    GilaMonster (7/13/2009)


    tatcalltype ='null'Why.....

    Oh Lordy. I just found the full line:

    update Auditdata set tatcalltype = 'null' where tatcalltype is null

    :sick:

    I was referring to one of the other of...

  • RE: Need help with advanced parameters in sql server configuration mgr HELP!!!!! SERVER DOWN

    Ignore the stuff on the forums, there's an official article on rebuilding MSDB somewhere on the MS site. Might be on MSDN, might be on support.microsoft.com. A search should find...

  • RE: Need help with advanced parameters in sql server configuration mgr HELP!!!!! SERVER DOWN

    -c? What does that do? It's -m for single user mode, -f for minimal config (which I believe is what you need for fixing msdb). Where did you get the...

  • RE: Help us tune a query

    Excellent. That's what I was hoping for. How does that perform?

    Add these lines before the query and post the details from the messages tab

    SET STATISTICS IO ON

    SET STATISTICS TIME...

  • RE: Slow SQL Query

    Dave Ballantyne (7/13/2009)


    Select into will be faster if 'select into/bulkcopy' is set in sp_dbOption as it will be a non-logged operation.

    From Books Online:

    Starting with Microsoft SQL Server 2000, if the...

  • RE: Help us tune a query

    Ok, that OR really doesn't like me. Can you change the query as follows?

    SELECT t.RowNumber, u.UserID, u.DisplayName, t.RecentPoints, t.AllPoints

    FROM #TopScores t

    JOIN Users u ON u.[UserID] = t.UserID

    WHERE t.RowNumber <= 5...

  • RE: Help us tune a query

    Ok, index didn't help much, and it's because of the OR.

    Can you try changing that index and adding a second

    CREATE CLUSTERED INDEX idx_TopScores_RowNumber ON #TopScores (RowNumber)

    CREATE INDEX idx_TopScores_UserID ON #TopScores...

  • RE: Help us tune a query

    Mel Harbour (7/13/2009)


    Out of interest, Gail, when you say that it looks better already, what part are you referring to? When I'm looking at the subtree cost of the two...

Viewing 15 posts - 37,696 through 37,710 (of 49,566 total)