• sizal0234


    Points: 2104

    Does PS help in performance. Like instead of TSQL code used in sql agent job which takes 1 hr to complete..if I replace that with powershell is it possible It might take less time since PS is pretty good with windows and SQL. Please share your thoughts!


    Thank you!

  • Jeff Moden

    SSC Guru

    Points: 996510

    Although PS can make some things easier, I wouldn't generally say that PS provides any performance advantage.

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

  • ZZartin


    Points: 30414

    That entirely depends on what the code is doing....  If it's pure database operation then unless you actually change the code almost certainly no.  If you're doing something like file operations or sending emails or the like maybe you would get some benefit.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply