Stop SQL Server_javascript技巧
程序员文章站
2022-03-21 08:17:05
...
strDBServerName = "."
Set objSQLServer = CreateObject("SQLDMO.SQLServer")
objSQLServer.LoginSecure = True
objSQLServer.Connect strDBServerName
objSQLServer.Shutdown
Set objSQLServer = CreateObject("SQLDMO.SQLServer")
objSQLServer.LoginSecure = True
objSQLServer.Connect strDBServerName
objSQLServer.Shutdown