Hope that was useful.
In this post i will explaining on how to stop and start SQL Server services using SQLCMD mode.
First of all, Open a new query window and Change the query execution mode to SQLCMD.
Then type the below command in the new query window that is opened in the SQLCMD mode.
1. To start the services, use the below commands
/* Start Services */
!!NET START MSSQL$ MSSQLSERVER
!!NET START SQLAGENT$MSSQLSERVER
/* Stop Services */
!!NET STOP SQLAGENT$MSSQLSERVER
!!NET STOP MSSQL$ MSSQLSERVER
If you are trying to start or stop a named instance, then Replace MSSQLSERVER with your instance name.
For example, if you are trying to start or stop the named instance "SQL2008", then the commands will look as below.
/* Stop Services */
!!NET STOP SQLAGENT$SQL2008
!!NET STOP MSSQL$SQL2008
/* Start Services */
!!NET START MSSQL$SQL2008
!!NET START SQLAGENT$SQL2008
1 comment:
Aivivu chuyên vé máy bay, tham khảo
kinh nghiệm mua vé máy bay đi Mỹ giá rẻ
vé máy bay từ mỹ về việt nam hãng ana
chuyến bay từ đức về hà nội hôm nay
các chuyến bay từ nga về việt nam
bay từ anh về việt nam
chuyến bay từ paris về hà nội
khách sạn cách ly
chuyến bay chuyên gia trung quốc
Post a Comment