Skip to content

Commit

Permalink
Update Set-DbaDbQueryStoreOption.ps1 (#9205)
Browse files Browse the repository at this point in the history
  • Loading branch information
tominyorks authored Jan 13, 2024
1 parent 5a8b8dc commit 56d716a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/Set-DbaDbQueryStoreOption.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ function Set-DbaDbQueryStoreOption {
}

# We have to exclude all the system databases since they cannot have the Query Store feature enabled
$dbs = Get-DbaDatabase -SqlInstance $server -ExcludeDatabase $ExcludeDatabase -Database $Database | Where-Object IsAccessible
$dbs = Get-DbaDatabase -SqlInstance $server -ExcludeDatabase $ExcludeDatabase -Database $Database | Where-Object { $_.IsAccessible -and !$_.IsDatabaseSnapshot }

foreach ($db in $dbs) {
Write-Message -Level Verbose -Message "Processing $($db.name) on $instance"
Expand Down

0 comments on commit 56d716a

Please sign in to comment.