Forum Replies Created

Viewing 15 posts - 1 through 15 (of 152 total)

  • RE: Improving Index Seek

    The table has about 1.5 billion rows, maybe that's why it's not able to correctly estimate the "Estimated Rows". Query is not timing out, it is using the execution plan...

  • RE: Improving Index Seek

    I rebuild the stats and reran the query, attached is the Index Seek values on the same index.

  • RE: Improving Index Seek

    I can try to rebuild the stats, but if stats are out of date it still picked the correct index.

    It's a prod server so can't clear the cache but i...

  • RE: Improving Index Seek

    Yes, they are.

  • RE: Alternate to Log shipping with standby between 2008 & 2014

    Yes, the log shipping itself works but once we try to bring the db in standby mode to run the ETL it complains that db first need to be upgraded...

  • RE: Alternate to Log shipping with standby between 2008 & 2014

    We run ETL daily and currently it takes about 12 hours.

  • RE: Rebuild Indexes after upgrade to 2014?

    Agree but it's a very large 5tb+ DW so rebuilding index might not be an option for us in favor of quick cut-over.

  • RE: Rebuild Indexes after upgrade to 2014?

    Thanks Grant. So do we still need to update statistics as suggested by Microsoft?

    We are not planning to change the compatibility level until after couple of weeks of migration to...

  • RE: Calling a script on remote linux machine

    Thanks a lot. Do you know the command to run plink from sql agent?

  • RE: JOIN issue

    Luis Cazares (10/4/2013)


    You might want to add a column to your queries, using ROW_NUMBER().

    Here's an example, but without some data more similar to the real data, it's hard to give...

  • RE: JOIN issue

    Thanks for the suggestions guys. I am sorry i should not have used "P1" & "p2" as codes, these are just my examples codes actual values won't have any correlation...

  • RE: How to find exact no. of months

    Thanks Luis i did some changes and here is what is giving me my expected results.

    SELECT DATEDIFF(DD, date1, date2), DATEDIFF( mm, date1, date2), DATEDIFF( mm, date1, date2) + CASE WHEN...

  • RE: Traversing a hierarchy

    A = Sum(NoOfBooks) for a child

    B = Sum(NoOfBooks) for a child's each parents

    Could you tell us exactly how these two values are calculated for each row in your sample data?

    That...

  • RE: Another Interesting Sorting Problem

    I think i got this one.

    WITH A as

    (

    SELECTcast('FirstCall' as varchar(100)) Cal, 0 DiffBtwCalls, *

    FROM [MyTransactions]

    WHERESNRank = 1

    UNION ALL

    SELECTcast(CASE WHENFirstCall.SNRank IS NOT NULL

    AND FirstCall.TFunction = 'activate'

    AND SecondCall.TFunction = 'activate'...

  • RE: Sorting Issue

    mister.magoo (2/13/2013)


    :w00t: You're welcome, but really don't use that for anything important..you will get bitten eventually 😎

    Already seeing that 😀 but we understand the risk.

Viewing 15 posts - 1 through 15 (of 152 total)