I've just run
Get-DbaDbQueryStoreOption -SqlInstance <MySQLServer> |
Where ActualState -ne DesiredState |
Select Database, ActualState, DesiredState
My intention was to get all rows from Get-DbaDbQueryStoreOption
where ActualState
and DesiredState
were not identical. To my surprise, this returned rows where ActualState
and DesiredState
were identical.
Is my PowerShell somehow in error or is this a bug in Get-DbaDbQueryStoreOption
?
I believe that this question makes sense even if you know nothing of the Get-DbaDbQueryStoreOption
command from the dbatools module. However, the type of ActualState
and DesiredState
is Selected.Microsoft.SqlServer.Management.Smo.QueryStoreOptions
.