Skip to content

Commit 3e7cc06

Browse files
author
Kevin Martin
committed
updated doc
1 parent ab3f7b7 commit 3e7cc06

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ EXECUTE dbo.sp_Develop
2727
|@GetAllDatabases|Runs checks across all of the databases on the server instead of just your current database context. Does not work on Azure SQL Server.|
2828
|@SkipChecksServer|The linked server name that stores the skip checks|
2929
|@SkipChecksDatabase|The database that stores the skip checks|
30-
|@SkipChecksSchema|The schema for the skip check table|
31-
|@SkipChecksTable|The table that stores the skip checks|
30+
|@SkipChecksSchema|The schema for the skip check table, when you pass in a value the SkipCheckTSQL column will be used|
31+
|@SkipChecksTable|The table that stores the skip checks, when you pass in a value the SkipCheckTSQL column will be used|
3232
|@BringThePain |If you’ve got more than 50 databases on the server, this only works if you also pass in @BringThePain = 1, because it’s gonna be slow.|
3333
|@OutputType|TABLE = table<br/>COUNT = row with number found<br/>MARKDOWN = bulleted list<br/>XML = table output as XML<br/>NONE = none|
3434
|@OutputXMLasNVARCHAR|Set to 1 if you like your XML out as NVARCHAR.|
@@ -62,7 +62,7 @@ GO
6262

6363
The CheckId column refers to the list below. You can also scroll to the right in the sp_Develop 'Results' tab and look at the 'CheckId' column to see the number of the one you want to skip.
6464

65-
You can also copy the TSQL script in the 'SkipCheckTSQL' column found in the 'Results' tab to insert that record into your skip checks table.
65+
You can also copy the TSQL script in the 'SkipCheckTSQL' column found in the 'Results' tab to insert that record into your skip check table.
6666

6767
Refer to the example checks below and each comment for its use.
6868

sp_Develop.sql

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1865,8 +1865,7 @@ END;
18651865
CAST(F.Schema_Id AS NVARCHAR(100)) + @Separator +
18661866
CAST(F.Object_Id AS NVARCHAR(100)) + @Separator +
18671867
CAST(F.Priority AS NVARCHAR(100)) + @Separator +
1868-
COALESCE(F.URL, '(N/A)') + @Separator +
1869-
'INSERT INTO ' + @SkipCheckSchema + '.' + @SkipCheckTable + ' (ServerName, DatabaseName, SchemaName, ObjectName, CheckId) VALUES (N''' + CAST(SERVERPROPERTY('ServerName') AS NVARCHAR(128)) + ''', N''' + F.DatabaseName + ''', N''' + F.SchemaName + ''', N''' + F.ObjectName + ''', ' + CAST(F.CheckId AS NVARCHAR(50)) + ')'
1868+
COALESCE(F.URL, '(N/A)')
18701869
FROM
18711870
#Finding AS F
18721871
ORDER BY
@@ -1894,7 +1893,7 @@ END;
18941893
,F.Schema_Id
18951894
,F.Object_Id
18961895
,F.Priority
1897-
,SkipCheckTSQL = 'INSERT INTO ' + @SkipCheckSchema + '.' + @SkipCheckTable + ' (ServerName, DatabaseName, SchemaName, ObjectName, CheckId) VALUES (N''' + CAST(SERVERPROPERTY('ServerName') AS NVARCHAR(128)) + ''', N''' + F.DatabaseName + ''', N''' + F.SchemaName + ''', N''' + F.ObjectName + ''', ' + CAST(F.CheckId AS NVARCHAR(50)) + ');'
1896+
,SkipCheckTSQL = ISNULL('INSERT INTO ' + @SkipCheckSchema + '.' + @SkipCheckTable + ' (ServerName, DatabaseName, SchemaName, ObjectName, CheckId) VALUES (N''' + CAST(SERVERPROPERTY('ServerName') AS NVARCHAR(128)) + ''', N''' + F.DatabaseName + ''', N''' + F.SchemaName + ''', N''' + F.ObjectName + ''', ' + CAST(F.CheckId AS NVARCHAR(50)) + ');', 'https://github.com/EmergentSoftware/SQL-Server-Assess#how-to-skip-checks-across-your-estate')
18981897
FROM
18991898
#Finding AS F
19001899
ORDER BY
@@ -1922,7 +1921,7 @@ END;
19221921
,F.Schema_Id
19231922
,F.Object_Id
19241923
,F.Priority
1925-
,SkipCheckTSQL = 'INSERT INTO ' + @SkipCheckSchema + '.' + @SkipCheckTable + ' (ServerName, DatabaseName, SchemaName, ObjectName, CheckId) VALUES (N''' + CAST(SERVERPROPERTY('ServerName') AS NVARCHAR(128)) + ''', N''' + F.DatabaseName + ''', N''' + F.SchemaName + ''', N''' + F.ObjectName + ''', ' + CAST(F.CheckId AS NVARCHAR(50)) + ');'
1924+
,SkipCheckTSQL = ISNULL('INSERT INTO ' + @SkipCheckSchema + '.' + @SkipCheckTable + ' (ServerName, DatabaseName, SchemaName, ObjectName, CheckId) VALUES (N''' + CAST(SERVERPROPERTY('ServerName') AS NVARCHAR(128)) + ''', N''' + F.DatabaseName + ''', N''' + F.SchemaName + ''', N''' + F.ObjectName + ''', ' + CAST(F.CheckId AS NVARCHAR(50)) + ');', 'https://github.com/EmergentSoftware/SQL-Server-Assess#how-to-skip-checks-across-your-estate')
19261925
FROM
19271926
#Finding AS F
19281927
WHERE

0 commit comments

Comments
 (0)