Forum Replies Created

Viewing 15 posts - 181 through 195 (of 389 total)

  • RE: Need help using Database Engine Tuning Advisor

    Never used DTA.

    All I have ever done is drop indexes created by users who used the DTA,(both physical and hypothetical indexes en masse)

    When looking at results, always always remember the...

    Catch-all queries done right [/url]
    Gail Shaw's Performance Blog[/url]

  • RE: Partitioned index on partitioned table

    Have a look at the index column order of your nonclustered index. It is redundant since you have a table already sorted on partitionid.

    Does your query need to do the...

    Catch-all queries done right [/url]
    Gail Shaw's Performance Blog[/url]

  • RE: How to cancel an SQL 2008 rebuild/reindex

    Just take note that rollbacks are single threaded.

    So an index rebuild may take 1 hour using parallelism, but if you do a rollback, at minute 50, you may be in...

    Catch-all queries done right [/url]
    Gail Shaw's Performance Blog[/url]

  • RE: Temp Database is huge

    Find the queries that are doing hash matches and rewrite them.

    Has someone done something silly like create a temp table which holds Gigs of data?

    Shrinking temp db may only be...

    Catch-all queries done right [/url]
    Gail Shaw's Performance Blog[/url]

  • RE: Complex join help - query taking too long to run

    I would say look out for nulls.

    Also, if your result set has millions of rows, do temp tables and forget about table variables.

    Stay away from this unless you know you...

    Catch-all queries done right [/url]
    Gail Shaw's Performance Blog[/url]

  • RE: Database Project - cross database references

    I had a similar issue building DacPacs cos it seems like it does validation on build.

    The workaround was to execute sqlpackage using command line as validation default is off with...

    Catch-all queries done right [/url]
    Gail Shaw's Performance Blog[/url]

  • RE: Multiple Executions of a Scalar Function in a single call of stored procedure

    would this work?

    CREATE FUNCTION dbo.TVF_CsStatus

    ...

    Catch-all queries done right [/url]
    Gail Shaw's Performance Blog[/url]

  • RE: Best Practice - how to exclude records?

    Here is a good article by her imminence.

    http://sqlinthewild.co.za/index.php/2010/03/23/left-outer-join-vs-not-exists/

    I would say that it looks fine to me, but I have had an issue once before where the not exists was running...

    Catch-all queries done right [/url]
    Gail Shaw's Performance Blog[/url]

  • RE: Best Practice - how to exclude records?

    Is there a positive reason why you are using global temp tables?

    Catch-all queries done right [/url]
    Gail Shaw's Performance Blog[/url]

  • RE: Returning all rows from multiple partitions of a partitioned table

    Are the columns of the table the correct data type to store the biggest value defined in the business requirements?

    You could just select out converted values, leaving the base table...

    Catch-all queries done right [/url]
    Gail Shaw's Performance Blog[/url]

  • RE: Problem Pivot : with multi fix columns

    ChrisM@Work (12/14/2015)


    MadAdmin (12/14/2015)


    serg-52 (12/9/2015)


    Pivot is just a convenience method to say

    I have seen pivot and the Group By create different plans. In one specific case I got the pivot...

    Catch-all queries done right [/url]
    Gail Shaw's Performance Blog[/url]

  • RE: Problem Pivot : with multi fix columns

    serg-52 (12/9/2015)


    Pivot is just a convenience method to say

    select id,title,

    ParentIdLevel1 = max(case ParentLevel when 1 then ParentId end),

    ParentTitleLevel1 = max(case ParentLevel when 1 then ParentTitle end),

    ParentIdLevel2 = max(case ParentLevel...

    Catch-all queries done right [/url]
    Gail Shaw's Performance Blog[/url]

  • RE: Normal locking threshold?

    55 indexes?

    Excuse the french but, gudddddamn!##^#^@^@^@2

    Gets my blood boiling.

    Catch-all queries done right [/url]
    Gail Shaw's Performance Blog[/url]

  • RE: Inserting rows a row at a time instead of in batches- RBAR is faster???

    Proof is in the pudding always. Try the set based and measure. Then try the rbar and measure. Especially when the advice sounds odd.

    Catch-all queries done right [/url]
    Gail Shaw's Performance Blog[/url]

  • RE: View for Ola Hallengren CommandLog

    np. It is very simple but I am very very lazy 🙂

    Catch-all queries done right [/url]
    Gail Shaw's Performance Blog[/url]

Viewing 15 posts - 181 through 195 (of 389 total)