Forum Replies Created

Viewing 15 posts - 76 through 90 (of 389 total)

  • RE: statistic update in AG

    As normal

    update statistics XYZ on table on primary node.

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

  • RE: efficient Querying - NOT EXISTS

    you could try doing left joins if the query isn't fast enough.

    It may give better speed, but be careful of the possibility of duplicating rows.

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

  • RE: SQL Server 2012 Server Collation vs. Database Collation

    deepti.khatuja (5/4/2016)


    didnt understand examples

    His example gives you a way of seeing the type of issues you could have with differing collations.

    If you don't understand enough of collation to understand the...

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

  • RE: CMEMTHREAD Wait type - need explanation and solution for this

    TheSQLGuru (5/3/2016)


    Gail is spot on as usual.

    I have been consulting on SQL Server since the mid-1990s and I can count on two hands the number of times I have seen...

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

  • RE: Gaps and islands sql : Condense upstream data

    J Livingston SQL (4/28/2016)

    not getting the expected results for the following

    [/code]

    Hi

    Yes seems to not work in this case, strangely. I am guessing cos the CTE is making multiple roots to...

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

  • RE: Which partition is my data on

    your partitioning function will tell you how the data is split.

    You can find that under storage in that dataase.

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

  • RE: Gaps and islands sql : Condense upstream data

    sunil.mvs (4/27/2016)


    Hi ,

    MAX(Syskey) is not required . I made it , when i was doing hit and trail .

    Thanks

    Surya Sunil

    Tried this, seems...

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

  • RE: Gaps and islands sql : Condense upstream data

    do you need SysKey?

    I'm testing out this scenario where the later date is earlier in the insert and syskey for the later date will have a lower value.

    The max(syskey) requirement...

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

  • RE: Just fetches one record in 10 lakhs

    Is it not possible to rank over the table once, and get everything you ever need from that table, instead of PolicyAudit self join (select top 1 PolicyAudit...

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

  • RE: SQL Server Memory is Full (Urgent help!)

    info.sqldbamail (4/26/2016)


    I have a CMEMThread poison wait is that a problem of NUMA configuration/Memory Configuration.

    I have had this issue and it turned out to be user defined scalar functions operating...

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

  • RE: Calculate Age (in years)

    What should the results for these test cases be?

    SELECT age FROM dbo.YearsApart('2/28/2002','02/28/2003');

    SELECT age FROM dbo.YearsApart('2/28/2003','02/28/2004');

    SELECT age FROM dbo.YearsApart('2/29/2004','02/28/2005');

    SELECT age FROM dbo.YearsApart('03/01/2004','03/01/2005');

    Edit : Seems that how you handle leaplings depends on...

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

  • RE: Statistics on every column?

    Jeff Moden (4/25/2016)


    MadAdmin (4/25/2016)


    Jeff Moden (4/25/2016)


    Thanks for the answers, folks. Everything is pretty much as I thought but had to make sure. Lot's o' experienced folks out there...

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

  • RE: Statistics on every column?

    Jeff Moden (4/25/2016)


    Thanks for the answers, folks. Everything is pretty much as I thought but had to make sure. Lot's o' experienced folks out there and I've not...

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

  • RE: FK and Index

    Mike Good (4/25/2016)


    Lack of index on FK column has bitten me when the parent table was one where the data was occasionally deleted. Deletion of rows in the parent...

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

  • RE: Query tuning advice required please

    mike.dinnis (4/25/2016)


    Jacob Wilkins (4/25/2016)


    You'll either need to look at simplifying the query (maybe explicitly querying the underlying tables from the view that you need instead of forcing the optimizer to...

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

Viewing 15 posts - 76 through 90 (of 389 total)