Invoke-Sqlcmd unable to run

前端 未结 4 1771
一向
一向 2021-01-04 14:13

I have a PowerShell script that checks the CPU level of the server it is running on, and then if it is above a certain threshold it will run a SQL stored procedure and e-mai

4条回答
  •  感情败类
    2021-01-04 15:00

    If import-module fails then you'll need to run install-module first. Installing SSMS or SSDT doesn't include sqlserver module by default.

    install-module sqlserver
    update-module sqlserver
    import-module sqlserver
    

提交回复
热议问题