How to start/stop local SQL Server service directly from Visual Studio?

后端 未结 2 1833
梦如初夏
梦如初夏 2021-01-24 10:28

I believe like many developers I have both Visual Studio and SQL Server installed on my PC. Since I use the PC for various tasks not just for development, SQL Server is by defau

2条回答
  •  走了就别回头了
    2021-01-24 11:27

    You should just simply go to the Services Manager, however to get there from VS 2008:

    1. Go to Server Explorer Tab
    2. Expand out the Servers section
    3. Expand out the name of your computer
    4. Right click on the Services section and select Launch Services Manager
    5. From Services Manager, select SQL Server and do whatever Start, Stop, Restart action you wish to achieve

    Another way would be the commaind line approach of:

    net stop "SQL Server (MSSQLSERVER)" net start "SQL Server (MSSQLSERVER)"

提交回复
热议问题