open PowerShell console with admin privileges (right click->run as administrator)
display services regexp *sql*:
PS$>Get-Service -displayname *sql*
Stop/Start microsoft sql server instance:
PS$>Stop-Service -name MSSQLSERVER
PS$>Start-Service -name MSSQLSERVER
Ref: Five basic PowerShell commands Windows admins should know
display services regexp *sql*:
PS$>Get-Service -displayname *sql*
Stop/Start microsoft sql server instance:
PS$>Stop-Service -name MSSQLSERVER
PS$>Start-Service -name MSSQLSERVER
Ref: Five basic PowerShell commands Windows admins should know
Comentarios