HOW TO: Recycle a service automatically

  • Hello,

    I need to automate a service restart on a Server A but the catch is, Server A doesn't have Database Engine, it's a cube server thus has SSAS only. I know I can trigger xp_cmdshell from management studio / database engine but my server doesn't have database engine.

    Can you suggest some other way to do the same please?

    Thanks!

  • Hello Srinivas ,

    Try using Powershell with Windows scheduler task .

    https://technet.microsoft.com/en-us/library/ee176942.aspx

    Regards,

    Abdullah. Zarour

  • srinivas.akyana (1/13/2016)


    I need to automate a service restart on a Server A...

    WHY? What is going wrong where you think you need to do this?

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

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

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