Skip to content

Commit 1b839b4

Browse files
committed
Added a json to fix QueryStore check + described it in readme
1 parent f786563 commit 1b839b4

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"checks":[
3+
{
4+
"id": "SqlServer.Database.QueryStoreOn",
5+
"target":{
6+
"type": "Database",
7+
"version": "[13.0,)",
8+
"platform": "Windows",
9+
"name": { "not": "/^(master|tempdb)$/" }
10+
}
11+
}
12+
]
13+
}

samples/manage/sql-assessment-api/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,12 @@ Demonstrates how to make a custom rule set containing two checks. The sample con
7171
}
7272
```
7373

74+
## QueryStoreCheck_fix.json
75+
76+
Overrides the default ruleset to fix the rule "Query Store should be on." Query Store appeared in SQL Server 2016 but the rule checks for it starting with SQL Server 2014.
77+
78+
Here's an example of applying the fix to running the InvokeSqlAssessment cmdlet.
79+
80+
```PowerShell
81+
Get-SqlInstance -ServerInstance 'localhost' | Get-SqlDatabase | Invoke-SqlAssessment -configuration "C:\SQLAssessment\QueryStore_fix.json"
82+
```

0 commit comments

Comments
 (0)