Skip to content
Permalink
Browse files

Get-DbaSpConfigure - Update to include SQL Server 2019 Settings (#6427)

  • Loading branch information
wsmelton committed Mar 24, 2020
1 parent 473e865 commit 81e3704968955ce0c46a34f317e2ad460b861168
Showing with 110 additions and 17 deletions.
  1. +19 −14 functions/Get-DbaSpConfigure.ps1
  2. +91 −3 internal/functions/Get-SqlDefaultSpConfigure.ps1
@@ -84,19 +84,29 @@ function Get-DbaSpConfigure {
)
begin {
$smoName = [pscustomobject]@{
"access check cache bucket count" = "AccessCheckCacheBucketCount"
"access check cache quota" = "AccessCheckCacheQuota"
"Ad Hoc Distributed Queries" = "AdHocDistributedQueriesEnabled"
"ADR cleaner retry timeout (min)" = "AdrCleanerRetryTimeout"
"ADR Preallocation Factor" = "AdrPreallcationFactor"
"affinity I/O mask" = "AffinityIOMask"
"affinity mask" = "AffinityMask"
"affinity64 I/O mask" = "Affinity64IOMask"
"affinity64 mask" = "Affinity64Mask"
"Agent XPs" = "AgentXPsEnabled"
"allow filesystem enumeration" = "AllowFilesystemEnumeration"
"allow polybase export" = "AllowPolybaseExport"
"allow updates" = "AllowUpdates"
"automatic soft-NUMA disabled" = "AutomaticSoftnumaDisabled"
"awe enabled" = "AweEnabled"
"backup checksum default" = "BackupChecksumDefault"
"backup compression default" = "DefaultBackupCompression"
"blocked process threshold" = "BlockedProcessThreshold"
"blocked process threshold (s)" = "BlockedProcessThreshold"
"blocked process threshold" = "BlockedProcessThreshold"
"c2 audit mode" = "C2AuditMode"
"clr enabled" = "IsSqlClrEnabled"
"clr strict security" = "ClrStrictSecurity"
"column encryption enclave type" = "ColumnEncryptionEnclaveType"
"common criteria compliance enabled" = "CommonCriteriaComplianceEnabled"
"contained database authentication" = "ContainmentEnabled"
"cost threshold for parallelism" = "CostThresholdForParallelism"
@@ -108,12 +118,14 @@ function Get-DbaSpConfigure {
"default trace enabled" = "DefaultTraceEnabled"
"disallow results from triggers" = "DisallowResultsFromTriggers"
"EKM provider enabled" = "ExtensibleKeyManagementEnabled"
"external scripts enabled" = "ExternalScriptsEnabled"
"filestream access level" = "FilestreamAccessLevel"
"fill factor (%)" = "FillFactor"
"ft crawl bandwidth (max)" = "FullTextCrawlBandwidthMax"
"ft crawl bandwidth (min)" = "FullTextCrawlBandwidthMin"
"ft notify bandwidth (max)" = "FullTextNotifyBandwidthMax"
"ft notify bandwidth (min)" = "FullTextNotifyBandwidthMin"
"hadoop connectivity" = "HadoopConnectivity"
"index create memory (KB)" = "IndexCreateMemory"
"in-doubt xact resolution" = "InDoubtTransactionResolution"
"lightweight pooling" = "LightweightPooling"
@@ -132,6 +144,8 @@ function Get-DbaSpConfigure {
"open objects" = "OpenObjects"
"optimize for ad hoc workloads" = "OptimizeAdhocWorkloads"
"PH timeout (s)" = "ProtocolHandlerTimeout"
"polybase enabled" = "PolybaseEnabled"
"polybase network encryption" = "PolybaseNetworkEncryption"
"precompute rank" = "PrecomputeRank"
"priority boost" = "PriorityBoost"
"query governor cost limit" = "QueryGovernorCostLimit"
@@ -150,24 +164,15 @@ function Get-DbaSpConfigure {
"show advanced options" = "ShowAdvancedOptions"
"SMO and DMO XPs" = "SmoAndDmoXPsEnabled"
"SQL Mail XPs" = "SqlMailXPsEnabled"
"tempdb metadata memory-optimized" = "TempdbMetadataMemoryOptimized"
"transform noise words" = "TransformNoiseWords"
"two digit year cutoff" = "TwoDigitYearCutoff"
"user connections" = "UserConnections"
"User Instance Timeout" = "UserInstanceTimeout"
"user instances enabled" = "UserInstancesEnabled"
"user options" = "UserOptions"
"Web Assistant Procedures" = "WebXPsEnabled"
"xp_cmdshell" = "XPCmdShellEnabled"
# Configurations without defined names - Created dummy entries
"access check cache bucket count" = "AccessCheckCacheBucketCount"
"access check cache quota" = "AccessCheckCacheQuota"
"allow polybase export" = "AllowPolybaseExport"
"automatic soft-NUMA disabled" = "AutomaticSoftnumaDisabled"
"backup checksum default" = "BackupChecksumDefault"
"clr strict security" = "ClrStrictSecurity"
"external scripts enabled" = "ExternalScriptsEnabled"
"hadoop connectivity" = "HadoopConnectivity"
"polybase network encryption" = "PolybaseNetworkEncryption"
"User Instance Timeout" = "UserInstanceTimeout"
"user instances enabled" = "UserInstancesEnabled"
}
}
process {
@@ -231,4 +236,4 @@ function Get-DbaSpConfigure {
}
}
}
}
}
@@ -5,6 +5,7 @@ function Get-SqlDefaultSpConfigure {
.NOTES
Server Configuration Options BOL (links subject to change):
SQL Server 2019 - https://technet.microsoft.com/en-us/library/ms189631(v=sql.150).aspx
SQL Server 2017 - https://technet.microsoft.com/en-us/library/ms189631(v=sql.140).aspx
SQL Server 2016 - https://technet.microsoft.com/en-us/library/ms189631(v=sql.130).aspx
SQL Server 2014 - http://technet.microsoft.com/en-us/library/ms189631(v=sql.120).aspx
@@ -556,7 +557,94 @@ function Get-SqlDefaultSpConfigure {
}
#endregion SQL2017


#region SQL2019
15 {
[pscustomobject]@{
"access check cache bucket count" = 0
"access check cache quota" = 0
"Ad Hoc Distributed Queries" = 0
"ADR cleaner retry timeout (min)" = 0
"ADR Preallocation Factor" = 0
"affinity I/O mask" = 0
"affinity mask" = 0
"affinity64 I/O mask" = 0
"affinity64 mask" = 0
"Agent XPs" = 0
"allow filesystem enumeration" = 1
"allow polybase export" = 0
"allow updates" = 0
"automatic soft-NUMA disabled" = 0
"backup checksum default" = 0
"backup compression default" = 0
"blocked process threshold (s)" = 0
"c2 audit mode" = 0
"clr enabled" = 0
"clr strict security" = 0
"column encryption enclave type" = 0
"common criteria compliance enabled" = 0
"contained database authentication" = 0
"cost threshold for parallelism" = 5
"cross db ownership chaining" = 0
"cursor threshold" = 0
"Database Mail XPs" = 0
"default full-text language" = 1033
"default language" = 0
"default trace enabled" = 0
"disallow results from triggers" = 0
"EKM provider enabled" = 0
"external scripts enabled" = 0
"filestream access level" = 0
"fill factor (%)" = 0
"ft crawl bandwidth (max)" = 100
"ft crawl bandwidth (min)" = 0
"ft notify bandwidth (max)" = 100
"ft notify bandwidth (min)" = 0
"hadoop connectivity" = 0
"index create memory (KB)" = 0
"in-doubt xact resolution" = 0
"lightweight pooling" = 0
"locks" = 0
"max degree of parallelism" = 0
"max full-text crawl range" = 4
"max server memory (MB)" = 2147483647
"max text repl size (B)" = 65536
"max worker threads" = 0
"media retention" = 0
"min memory per query (KB)" = 1024
"min server memory (MB)" = 0
"nested triggers" = 1
"network packet size (B)" = 4096
"Ole Automation Procedures" = 0
"open objects" = 0
"optimize for ad hoc workloads" = 0
"PH timeout (s)" = 60
"polybase enabled" = 0
"polybase network encryption" = 1
"precompute rank" = 0
"priority boost" = 0
"query governor cost limit" = 0
"query wait (s)" = -1
"recovery interval (min)" = 0
"remote access" = 1
"remote admin connections" = 0
"remote data archive" = 0
"remote login timeout (s)" = 10
"remote proc trans" = 0
"remote query timeout (s)" = 600
"Replication XPs" = 0
"scan for startup procs" = 0
"server trigger recursion" = 1
"set working set size" = 0
"show advanced options" = 0
"SMO and DMO XPs" = 1
"tempdb metadata memory-optimized" = 0
"transform noise words" = 0
"two digit year cutoff" = 2049
"user connections" = 0
"user options" = 0
"xp_cmdshell" = 0
}
}
#endregion SQL2019
}

}
}

0 comments on commit 81e3704

Please sign in to comment.
You can’t perform that action at this time.