How can I stop SQLServer? What are the differences between these methods?

Source: Internet
Author: User
How can I stop SQLserver? What are the differences between these methods? The following describes how to stop SQL server: 1) Stop SQL Server 2 from the SQL server management tool (managementstudio) and stop SQL Server 3 from the SQL Server Configuration Manager (configurationmanager ).

How does one stop SQL server? What are the differences between these methods? Stop SQL server first. about the following: 1) Stop SQL server from the SQL server management tool (management studio) 2) Stop SQL server from the SQL server configuration manager (configuration manager. 3) slave server

How does one stop SQL server? What are the differences between these methods?

The following describes how to stop SQL server:

1) Stop SQL server from management studio

2) Stop SQL server from the configuration manager.

3) Stop the SQL statement from the service:

4) issue the "net stop mssqlserver" command.

5) execute the SQL statement: SHUTDOWN

6) execute the SQL statement SHUTDOWN WITH NOWAIT

7) Kill the SQL process sqlservr.exe from the task manager.

The results of the preceding five methods are similar. When these five stop methods are executed, SQL server performs a checkpoint for each of them to write a large number of dirty pages not written to the disk, reducing the recover time after the next SQL service starts.

The sixth type is different. It directly disables SQL server, and SQL server does not perform checkpoints on the database. The seventh type is even more terrible. Not only does it have no checkpoint, but it may cause damage to the database, which is similar to the effect of sudden power outages.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.