Powershell run SQL job, delay, then run the next one

前端 未结 4 1110
南旧
南旧 2021-01-22 19:40

I am writing a Powershell script that does several things with a local SQL Server database.

One thing I am doing is running several SQL jobs, one after another. I run t

4条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-22 20:10

    Your job is executed by SQL Server Agent. Either you call the corresponding stored proc (or SQL Statements) directly from your PowerShell script, or you implement something in the line of what is explained here.

提交回复
热议问题