Forum Replies Created

Viewing 15 posts - 286 through 300 (of 389 total)

  • RE: PK Non-CLUSTERED to CLUSTERED

    Your biggest hint as to best candidate for clustered index is highest number of the sum of seeks grouped by the leading index key.

    Also, a symptom of poor choice of...

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

  • RE: Dynamic Script Error

    Eirikur Eiriksson (4/19/2015)


    SQL-DBA-01 (4/19/2015)


    Eirikur,

    Can you suggest how to use sample percent and other hints using sp_updatestats??????????....???????

    The table which has billions of records do u suggest running sp_updatestats???????????????????????????????????????

    Again reiterating the suggestion...

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

  • RE: Dynamic Script Error

    Eirikur Eiriksson (4/19/2015)


    Quick question, why not use sys.sp_updatestats?

    😎

    exactly what I put into his request for code review of updating stats using nested cursors posted on 7april. To DBA01, Instead of...

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

  • RE: Attempting to replace not in with left outer join

    MMartin1 (4/17/2015)


    then I tried it with temp tables (two temp tables then the join) and boom, total execution goes way way down.

    not sure what is going on here but I...

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

  • RE: How to grab the dependent objects and check if we have the below mentioned partition keys are used

    To see how they are linked, go here.

    <Download SQL Server 2008 System Views Map from Official Microsoft Download Center>

    http://www.microsoft.com/en-us/download/details.aspx?id=9301

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

  • RE: SQL Table to get system or memory page lock counters

    This might have good information of where to start trying to find this information.

    <Download SQL Server 2008 System Views Map from Official Microsoft Download Center>

    http://www.microsoft.com/en-us/download/details.aspx?id=9301

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

  • RE: How a new partition Function apply for Current Data

    You need to

    alter ixmyindex on mypatitiontable rebuild on partitionscheme(MycolumnIAmPartitioningBy)

    Also your index rebuild jobs must be smart enough to rebuild onto the partitionscheme and not the default on primary else...

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

  • RE: How do i get records in one row

    looking at your pivot, it seems it is trying to compare incidentid which may be an int column vs C1 or C2 or C3 or C4, which looks text.

    Maybe...

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

  • RE: How do i get records in one row

    A little more info. Do you want all rows to be appended to each other into one long string.

    Do you want to append multiple values for a particular column based...

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

  • RE: Attempting to replace not in with left outer join

    I think you should be left joining on all the conditions in the subquery.

    Try this and see if it is any different.

    SELECTm.lID

    FROMMessage m

    INNER JOIN Message_Cc mCC ON m.lID = mCC.lMessage...

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

  • RE: Struggling in poor performance

    What you can do to give Gail at least a bare minimum of information is either

    1) select top 10 from sys.dm_exec_procedure_stats order by totalelapsedtime desc, and find the offending...

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

  • RE: Covered index overhead question

    Page splits are dependent on workload. Also checked around and everyone seems to say the same thing. Not a valid argument, i.e. Argumentum ad populum, but could be used as...

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

  • RE: Same execution plan but different performance

    Find your set options using your query

    SELECT plan_handle, usecounts, pvt.set_options,text

    FROM (

    SELECT plan_handle, usecounts, epa.attribute, epa.value ,text

    FROM sys.dm_exec_cached_plans

    ...

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

  • RE: Transaction Log grows extremely during online index rebuild

    Keep in mind that your tables are indexes if they are clustered.

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

  • RE: Computed Column Problem

    SHA2_256 is supported on 2012 and greater. ARe you running 2012 and is your compatibility level 110 or more?

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

Viewing 15 posts - 286 through 300 (of 389 total)