• Amit Kumar-481560 - Friday, September 22, 2017 11:31 AM

    Jeff Moden - Wednesday, September 20, 2017 10:28 AM

    Any feedback on the code I posted?

    I would appreciate for asking update on this post. 
    The below value has been given as per assumption for find out the solution: 
    102934848
    Please let me know if you need any other details.
    Thanks,
    Amit Dhuper

    I might be missing something but 102934848 / 128.0 = 804,178MB = 804GB, not 150TB for the data.  Why do you think you have 150TB (Terabytes)?  Have your log files grown to huge sizes?  Or did you just forget to change the current database as instructed before you ran the code?

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)