SqlConfigurations manages SQL Server instance configuration options (sp_configure settings).
Use this resource when you need to configure SQL Server instance-level settings such as max memory, cost threshold for parallelism, max degree of parallelism, or any other sp_configure option. These settings affect the overall behavior and performance of the SQL Server instance.
Source |
|
DSC Resource |
|
Documentation |
-
Target machine must be running Windows Server 2012 or later.
-
Target machine must be running SQL Server Database Engine 2012 or later.
| Parameter | Attribute | DataType | Description | Allowed Values |
|---|---|---|---|---|
DefaultInstanceName |
String |
Default SQL InstanceName |
Default: |
|
Mandatory |
Hashtable[] |
List of SQL Server Configuration Options on a SQL Server instance. |
| Parameter | Attribute | DataType | Description | Allowed Values |
|---|---|---|---|---|
InstanceName |
Key |
String |
Name of the SQL Server instance to be configured. If not specified the value of |
|
OptionName |
Key |
String |
The name of the SQL Server Database Engine instance configuration option. For all possible values reference the article Server Configuration Options (SQL Server) or run |
|
OptionValue |
Mandatory |
SInt32 |
The desired value of the configuration option. |
|
ServerName |
String |
The hostname of the SQL Server to be configured. |
Default: current computer name. |
|
RestartService |
Boolean |
Determines whether the instance should be restarted after updating the configuration option. |
|
|
RestartTimeout |
UInt32 |
The length of time, in seconds, to wait for the service to restart. |
Default: |
SqlConfiguration:
DefaultInstanceName: MSSQLSERVER
Options:
- InstanceName: SecondInstance
OptionName: max degree of parallelism
OptionValue: 1
RestartService: true
- OptionName: max degree of parallelism
OptionValue: 2
- OptionName: backup compression default
OptionValue: 1