disposition of SQL Server with maximum memory set to 0

Source: Internet
Author: User
Tags microsoft sql server

Fault Description:when you remotely adjust the instance memory, the maximum memory is adjusted to 0, so the maximum RAM becomes the minimum value of 128MB. How to resolve:1. Gracefully shut down the SQL Server service, if it is a cluster, you need to shut down the cluster role first to prevent failover, and then shut down the service separately. -Note that this step may leave the instance in a suspended state for a long time, but normal shutdown is a must, and a direct kill process can cause data file corruption. 2. Launch the instance in "not as a service" mode. CD D:\Microsoft SQL server\mssql11. Mssqlserver\mssql\binn
Sqlservr.exe-smssqlserver-msqlcmd–c-f-M

This launches the SQL Server service separately in minimal configuration + single-user mode, taking care not to close the window, otherwise the service is closed.

3. Re-open a CMD window to connect to the database

SQLCMD-E--If it is a named instance: SQLCMD-E-S ip\< Instance name > Note that a named instance requires the SQL Server Browser service to be enabled to connect.
EXEC sys.sp_configure n ' Show advanced options ', n ' 1 '  RECONFIGURE with overridegoexec sys.sp_configure n ' max server me Mory (MB) ', n ' goreconfigure with overridegoexec sys.sp_configure n ' Show advanced options ', n ' 0 '  RECONFIGURE With Overridego

4. After modifying the memory, close the Sqlservr.exe window and restart the instance service.

disposition of SQL Server with maximum memory set to 0

Related Article

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.