• David Rueter (5/8/2013)


    Jeff,

    Thanks for chiming in. I'm a big fan of yours and have learned a lot from you.

    FYI, the attached script does in fact check the status of xp_CmdShell and Ole Automation, and returns them to their original settings.

    (Between trying to simplify some things for the article and some later edits to the code, the code excerpts in the article are not identical to the attached script.)

    If you (or anyone else) finds any problems or errors, please let me know.

    Hoo-boy. I've got to get my eyes checked. :blush: Apparently I looked at only the dynamic code and not the "IF" qualifiers nor the capture of the original settings. My most sincere apologies. You're absolutely correct.

    The good part about me missing that and being made aware of my mistake is now there's nothing in the article that I take grand exception to. 🙂 Well done!

    --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)