Powershell

  • sizal0234

    SSCrazy

    Points: 2041

    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: 994677

    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.
    "If you think its expensive to hire a professional to do the job, wait until you hire an amateur."--Red Adair
    "Change is inevitable... change for the better is not."
    When you put the right degree of spin on it, the number 3|8 is also a glyph that describes the nature of a DBAs job. 😉

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

  • ZZartin

    SSC-Dedicated

    Points: 30355

    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