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.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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