We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a6f569 commit 8018b44Copy full SHA for 8018b44
public/Set-DbaDbQueryStoreOption.ps1
@@ -251,7 +251,7 @@ function Set-DbaDbQueryStoreOption {
251
if ($db.QueryStoreOptions.QueryCaptureMode -eq "CUSTOM") {
252
if ($CustomCapturePolicyStaleThresholdHours) {
253
if ($Pscmdlet.ShouldProcess("$db on $instance", "Changing CustomCapturePolicyStaleThresholdHours to $($CustomCapturePolicyStaleThresholdHours)")) {
254
- $query += "ALTER DATABASE $db SET QUERY_STORE = ON ( QUERY_CAPTURE_POLICY = ( STALE_CAPTURE_POLICY_THRESHOLD = $($CustomCapturePolicyStaleThresholdHours))); "
+ $query += "ALTER DATABASE $db SET QUERY_STORE = ON ( QUERY_CAPTURE_POLICY = ( STALE_CAPTURE_POLICY_THRESHOLD = $($CustomCapturePolicyStaleThresholdHours) HOURS)); "
255
}
256
257
0 commit comments