You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Parameters Common to Many of the Stored Procedures](#parameters-common-to-many-of-the-stored-procedures)
21
+
-[License MIT](#license)
22
+
7
23
You're a DBA, sysadmin, or developer who manages Microsoft SQL Servers. It's your fault if they're down or slow. These tools help you understand what's going on in your server.
8
24
9
25
* When you want an overall health check, run [sp_Blitz](#sp_blitz-overall-health-check).
@@ -20,8 +36,8 @@ The First Responder Kit runs on:
20
36
* Amazon RDS SQL Server - fully supported
21
37
* Azure SQL DB - sp_BlitzFirst, sp_BlitzIndex, and sp_BlitzWho work as-is. To run sp_BlitzCache, do a search/replace in the code to replace ## with # (because global temp tables aren't supported in Azure SQL DB) - then it works fine. sp_Blitz doesn't work at all.
22
38
23
-
## How to Get Support
24
39
40
+
## How to Get Support
25
41
Everyone here is expected to abide by the [Contributor Covenant Code of Conduct](CONTRIBUTING.md#the-contributor-covenant-code-of-conduct).
26
42
27
43
Want to talk to the developers? [Get an invite to SQLCommunity.slack.com](https://sqlps.io/slack/), and we're in the [#FirstResponderKit channel](https://sqlcommunity.slack.com/messages/firstresponderkit/).
@@ -30,8 +46,10 @@ Got a question? Ask it on [DBA.StackExchange.com](http://dba.stackexchange.com).
30
46
31
47
Want to contribute by writing, testing, or documenting code, or suggesting a new check? [Read the contributing.md file](CONTRIBUTING.md).
32
48
33
-
## sp_Blitz: Overall Health Check
49
+
[*Back to top*](#header1)
50
+
34
51
52
+
## sp_Blitz: Overall Health Check
35
53
Run sp_Blitz daily or weekly for an overall health check. Just run it from SQL Server Management Studio, and you'll get a prioritized list of issues on your server right now:
*@CheckServerInfo = 1 - includes additional rows at priority 250 with server configuration details like service accounts.
52
70
*@IgnorePrioritiesAbove = 50 - if you want a daily bulletin of the most important warnings, set @IgnorePrioritiesAbove = 50 to only get the urgent stuff.
53
71
72
+
[*Back to top*](#header1)
73
+
54
74
### Advanced sp_Blitz Parameters
55
75
56
76
In addition to the [parameters common to many of the stored procedures](#parameters-common-to-many-of-the-stored-procedures), here are the ones specific to sp_Blitz:
Checks for the existence of a table DBAtools.dbo.BlitzResults, creates it if necessary, then adds the output of sp_Blitz into this table. This table is designed to support multiple outputs from multiple servers, so you can track your server's configuration history over time.
65
87
88
+
[*Back to top*](#header1)
89
+
66
90
#### Skipping Checks or Databases
67
91
68
92
```SQL
@@ -83,6 +107,8 @@ Checks for the existence of a table named Fred - just kidding, named DBAtools.db
83
107
* If both DatabaseName and CheckID are populated, then that check will be skipped for that database
84
108
* If CheckID is populated but DatabaseName is null, then that check will be skipped for all databases
85
109
110
+
[*Back to top*](#header1)
111
+
86
112
87
113
## sp_BlitzCache: Find the Most Resource-Intensive Queries
88
114
@@ -124,6 +150,8 @@ Other common parameters include:
124
150
*@IgnoreSystemDBs = 0 - if you want to show queries in master/model/msdb. By default we hide these.
125
151
*@MinimumExecutionCount = 0 - in servers like data warehouses where lots of queries only run a few times, you can set a floor number for examination.
126
152
153
+
[*Back to top*](#header1)
154
+
127
155
### Advanced sp_BlitzCache Parameters
128
156
129
157
In addition to the [parameters common to many of the stored procedures](#parameters-common-to-many-of-the-stored-procedures), here are the ones specific to sp_BlitzCache:
@@ -133,6 +161,9 @@ In addition to the [parameters common to many of the stored procedures](#paramet
133
161
* OnlySqlHandles, @IgnoreSqlHandles - just like the above two params
134
162
*@DatabaseName - if you only want to analyze plans in a single database. However, keep in mind that this is only the database context. A single query that runs in Database1 can join across objects in Database2 and Database3, but we can only know that it ran in Database1.
135
163
164
+
[*Back to top*](#header1)
165
+
166
+
136
167
## sp_BlitzIndex: Tune Your Indexes
137
168
138
169
SQL Server tracks your indexes: how big they are, how often they change, whether they're used to make queries go faster, and which indexes you should consider adding. The results columns are fairly self-explanatory.
@@ -148,6 +179,8 @@ Common parameters include:
148
179
*@Mode = 0 (default) - get different data with 0=Diagnose, 1=Summarize, 2=Index Usage Detail, 3=Missing Index Detail, 4=Diagnose Details.
149
180
150
181
182
+
[*Back to top*](#header1)
183
+
151
184
### Advanced sp_BlitzIndex Parameters
152
185
153
186
In addition to the [parameters common to many of the stored procedures](#parameters-common-to-many-of-the-stored-procedures), here are the ones specific to sp_BlitzIndex:
@@ -157,16 +190,25 @@ In addition to the [parameters common to many of the stored procedures](#paramet
157
190
*@Filter = 0 (default) - 1=No low-usage warnings for objects with 0 reads. 2=Only warn for objects >= 500MB
158
191
159
192
193
+
[*Back to top*](#header1)
194
+
195
+
160
196
## sp_BlitzFirst: Real-Time Performance Advice
161
197
162
198
(stub - describe the big picture here)
163
199
200
+
[*Back to top*](#header1)
201
+
164
202
### Advanced sp_BlitzFirst Parameters
165
203
166
204
In addition to the [parameters common to many of the stored procedures](#parameters-common-to-many-of-the-stored-procedures), here are the ones specific to sp_BlitzFirst:
167
205
168
206
(stub - describe the lesser-used stuff)
169
207
208
+
<<<<<<< HEAD
209
+
[*Back to top*](#header1)
210
+
211
+
=======
170
212
## DatabaseRestore: Easier Multi-File Restores
171
213
172
214
If you use [Ola Hallengren's backup scripts](http://ola.hallengren.com), DatabaseRestore.sql helps you rapidly restore a database to the most recent point in time.
@@ -184,6 +226,7 @@ Parameters include:
184
226
*@RunRecovery
185
227
186
228
For information about how this works, see [Tara Kizer's white paper on Log Shipping 2.0 with Google Compute Engine.](https://BrentOzar.com/go/gce)
229
+
>>>>>>> refs/remotes/origin/dev
187
230
188
231
## Parameters Common to Many of the Stored Procedures
189
232
@@ -192,10 +235,14 @@ For information about how this works, see [Tara Kizer's white paper on Log Shipp
192
235
*@OutputDatabaseName, @OutputSchemaName, @OutputTableName - pass all three of these in, and the stored proc's output will be written to a table. We'll create the table if it doesn't already exist.
193
236
*@OutputServerName - not functional yet. To track (or help!) implementation status: https://github.com/BrentOzarULTD/SQL-Server-First-Responder-Kit/issues/293
194
237
238
+
[*Back to top*](#header1)
239
+
240
+
195
241
## License
196
242
197
243
[The SQL Server First Responder Kit uses the MIT License.](LICENSE.md)
Copy file name to clipboardExpand all lines: sp_Blitz.sql
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -5253,6 +5253,8 @@ IF @ProductVersionMajor >= 10
5253
5253
WHEN [T].[TraceFlag] ='3505'THEN' 3505 enabled globally. Using this Trace Flag disables Checkpoints. Probably not the wisest idea.'
5254
5254
WHEN [T].[TraceFlag] ='8649'THEN' 8649 enabled globally. Using this Trace Flag drops cost thresholf for parallelism down to 0. I hope this is a dev server.'
5255
5255
WHEN [T].[TraceFlag] ='834'AND @ColumnStoreIndexesInUse =1THEN' 834 is enabled globally. Using this Trace Flag with Columnstore Indexes is not a great idea.'
5256
+
WHEN [T].[TraceFlag] ='8017'AND (CAST(SERVERPROPERTY('Edition') ASNVARCHAR(1000)) LIKEN'%Express%') THEN' 8017 is enabled globally, which is the default for express edition.'
5257
+
WHEN [T].[TraceFlag] ='8017'AND (CAST(SERVERPROPERTY('Edition') ASNVARCHAR(1000)) NOTLIKEN'%Express%') THEN' 8017 is enabled globally. Using this Trace Flag disables creation schedulers for all logical processors. Not good.'
0 commit comments