Use the transact-SQL script to modify the maximum and minimum memory settings of SQL Server

Source: Internet
Author: User

Sp_configure 'show advanced options', 1;
Go
Reconfigure;
Go
Sp_configure 'min Server Memory ', 2048;
Go
Reconfigure;
Go
Sp_configure 'max Server Memory ', 2560;
Go
Reconfigure;
Go
Sp_configure 'show advanced options', 0;
Go
Reconfigure;
Go

 

After this script is run, you do not need to restart the database. If you set it through the interface, you need to restart.

 

In fact, transact-SQL is the core of SQL Server. All applications that communicate with SQL Server instancesProgramYou can send a Transact-SQL statement to the server for communication, regardless of the user interface of the application. In many cases, it is faster and more effective to directly use scripts than to set them through a friendly interface, or even through scripts. For example, to back up a database, use a script faster. To create a larger table index, use the interface to prompt timeout, while the script does not need to worry.

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.