Execute Batch File

  • Respected All

    I want to execute a batch file on system start up that call a sql script file but the problem is that untill sql server service not started , the batch file should not run means that if batch file start running before sql server service starts , it will fail

    so is there any why to run this batch file after sql server service start and only when system boots.

    Please help me

    Thanks

    Ghanshyam

  • You may want to look at setting a proc to fire whenever SQL is restarted

    exec sp_procoption

    @ProcName = 'YourProcName',

    @OptionName = 'startup',

    @OptionValue = 'on'

    Andrew

  • Can we ask what this script does because while what you are asking is generally possible it would help to know the problem being solved.

    CEWII

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

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