Skip to content

Commit 6311411

Browse files
committed
Merge branch 'master' into dev
2 parents 5ac2cb2 + ff49242 commit 6311411

File tree

6 files changed

+107
-3
lines changed

6 files changed

+107
-3
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
**What is the current behavior?**
44

5-
**If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via http://sqlfiddle.com
5+
**If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via http://sqlfiddle.com**
66

77
**What is the expected behavior?**
88

File renamed without changes.

CONTRIBUTING.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,61 @@ Project maintainers who do not follow or enforce the Code of Conduct in good fai
101101
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
102102
available at [http://contributor-covenant.org/version/1/4][version]
103103

104+
105+
## Git Flow for pull requests
106+
<a name="git-flow"></a>
107+
108+
1. [Fork] the project, clone your fork, and configure the remotes:
109+
110+
```bash
111+
# Clone your fork of the repo into the current directory
112+
git clone [email protected]:<YOUR_USERNAME>/SQL-Server-First-Responder-Kit.git
113+
# Navigate to the newly cloned directory
114+
cd SQL-Server-First-Responder-Kit
115+
# Assign the original repo to a remote called "upstream"
116+
git remote add upstream https://github.com/BrentOzarULTD/SQL-Server-First-Responder-Kit/
117+
```
118+
119+
2. If you cloned a while ago, get the latest changes from upstream:
120+
121+
```bash
122+
git checkout master
123+
git pull upstream master
124+
```
125+
126+
3. Create a new topic branch (off the main project development branch) to
127+
contain your feature, change, or fix:
128+
129+
```bash
130+
git checkout -b <topic-branch-name>
131+
```
132+
133+
4. Commit your changes in logical chunks. Please adhere to these [git commit message guidelines]
134+
or your code is unlikely be merged into the main project. Use Git's [interactive rebase]
135+
feature to tidy up your commits before making them public.
136+
137+
5. Locally merge (or rebase) the upstream development branch into your topic branch:
138+
139+
```bash
140+
git pull [--rebase] upstream master
141+
```
142+
143+
6. Push your topic branch up to your fork:
144+
145+
```bash
146+
git push origin <topic-branch-name>
147+
```
148+
149+
7. [Open a Pull Request] with a clear title and description.
150+
151+
**IMPORTANT**: By submitting a patch, you agree to allow the project owner to license your work under the MIT [LICENSE]
152+
153+
104154
[homepage]: http://contributor-covenant.org
105155
[version]: http://contributor-covenant.org/version/1/4/
106156
[Github issues list]:https://github.com/BrentOzarULTD/SQL-Server-First-Responder-Kit/issues
157+
[Fork]:https://help.github.com/articles/fork-a-repo/
158+
[git commit message guidelines]:http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
159+
[interactive rebase]:https://help.github.com/articles/about-git-rebase/
160+
[Open a Pull Request]:https://help.github.com/articles/about-pull-requests/
161+
[LICENSE]:https://github.com/BrentOzarULTD/SQL-Server-First-Responder-Kit/blob/master/LICENSE.md

README.md

Lines changed: 49 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,25 @@
11
# SQL Server First Responder Kit
2+
<a name="header1"></a>
23
[![licence badge]][licence]
34
[![stars badge]][stars]
45
[![forks badge]][forks]
56
[![issues badge]][issues]
67

8+
Navigation
9+
- [How to Get Support](#how-to-get-support)
10+
- [sp_Blitz: Overall Health Check](#sp_blitz-overall-health-check)
11+
- [Advanced sp_Blitz Parameters](#advanced-sp_blitz-parameters)
12+
- [Writing sp_Blitz Output to a Table](#writing-sp_blitz-output-to-a-table)
13+
- [Skipping Checks or Databases](#skipping-checks-or-databases)
14+
- [sp_BlitzCache: Find the Most Resource-Intensive Queries](#sp_blitzcache-find-the-most-resource-intensive-queries)
15+
- [Advanced sp_BlitzCache Parameters](#advanced-sp_blitzcache-parameters)
16+
- [sp_BlitzIndex: Tune Your Indexes](#sp_blitzindex-tune-your-indexes)
17+
- [Advanced sp_BlitzIndex Parameters](#advanced-sp_blitzindex-parameters)
18+
- [sp_BlitzFirst: Real-Time Performance Advice](#sp_blitzfirst-real-time-performance-advice)
19+
- [Advanced sp_BlitzFirst Parameters](#advanced-sp_blitzfirst-parameters)
20+
- [Parameters Common to Many of the Stored Procedures](#parameters-common-to-many-of-the-stored-procedures)
21+
- [License MIT](#license)
22+
723
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.
824

925
* 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:
2036
* Amazon RDS SQL Server - fully supported
2137
* 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.
2238

23-
## How to Get Support
2439

40+
## How to Get Support
2541
Everyone here is expected to abide by the [Contributor Covenant Code of Conduct](CONTRIBUTING.md#the-contributor-covenant-code-of-conduct).
2642

2743
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).
3046

3147
Want to contribute by writing, testing, or documenting code, or suggesting a new check? [Read the contributing.md file](CONTRIBUTING.md).
3248

33-
## sp_Blitz: Overall Health Check
49+
[*Back to top*](#header1)
50+
3451

52+
## sp_Blitz: Overall Health Check
3553
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:
3654

3755
![sp_Blitz](http://u.brentozar.com/github-images/sp_Blitz.png)
@@ -51,10 +69,14 @@ Commonly used parameters:
5169
* @CheckServerInfo = 1 - includes additional rows at priority 250 with server configuration details like service accounts.
5270
* @IgnorePrioritiesAbove = 50 - if you want a daily bulletin of the most important warnings, set @IgnorePrioritiesAbove = 50 to only get the urgent stuff.
5371

72+
[*Back to top*](#header1)
73+
5474
### Advanced sp_Blitz Parameters
5575

5676
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:
5777

78+
[*Back to top*](#header1)
79+
5880
#### Writing sp_Blitz Output to a Table
5981

6082
```SQL
@@ -63,6 +85,8 @@ sp_Blitz @OutputDatabaseName = 'DBAtools', @OutputSchemaName = 'dbo', @OutputTab
6385

6486
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.
6587

88+
[*Back to top*](#header1)
89+
6690
#### Skipping Checks or Databases
6791

6892
```SQL
@@ -83,6 +107,8 @@ Checks for the existence of a table named Fred - just kidding, named DBAtools.db
83107
* If both DatabaseName and CheckID are populated, then that check will be skipped for that database
84108
* If CheckID is populated but DatabaseName is null, then that check will be skipped for all databases
85109

110+
[*Back to top*](#header1)
111+
86112

87113
## sp_BlitzCache: Find the Most Resource-Intensive Queries
88114

@@ -124,6 +150,8 @@ Other common parameters include:
124150
* @IgnoreSystemDBs = 0 - if you want to show queries in master/model/msdb. By default we hide these.
125151
* @MinimumExecutionCount = 0 - in servers like data warehouses where lots of queries only run a few times, you can set a floor number for examination.
126152

153+
[*Back to top*](#header1)
154+
127155
### Advanced sp_BlitzCache Parameters
128156

129157
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
133161
* OnlySqlHandles, @IgnoreSqlHandles - just like the above two params
134162
* @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.
135163

164+
[*Back to top*](#header1)
165+
166+
136167
## sp_BlitzIndex: Tune Your Indexes
137168

138169
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:
148179
* @Mode = 0 (default) - get different data with 0=Diagnose, 1=Summarize, 2=Index Usage Detail, 3=Missing Index Detail, 4=Diagnose Details.
149180

150181

182+
[*Back to top*](#header1)
183+
151184
### Advanced sp_BlitzIndex Parameters
152185

153186
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
157190
* @Filter = 0 (default) - 1=No low-usage warnings for objects with 0 reads. 2=Only warn for objects >= 500MB
158191

159192

193+
[*Back to top*](#header1)
194+
195+
160196
## sp_BlitzFirst: Real-Time Performance Advice
161197

162198
(stub - describe the big picture here)
163199

200+
[*Back to top*](#header1)
201+
164202
### Advanced sp_BlitzFirst Parameters
165203

166204
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:
167205

168206
(stub - describe the lesser-used stuff)
169207

208+
<<<<<<< HEAD
209+
[*Back to top*](#header1)
210+
211+
=======
170212
## DatabaseRestore: Easier Multi-File Restores
171213

172214
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:
184226
* @RunRecovery
185227

186228
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
187230
188231
## Parameters Common to Many of the Stored Procedures
189232

@@ -192,10 +235,14 @@ For information about how this works, see [Tara Kizer's white paper on Log Shipp
192235
* @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.
193236
* @OutputServerName - not functional yet. To track (or help!) implementation status: https://github.com/BrentOzarULTD/SQL-Server-First-Responder-Kit/issues/293
194237

238+
[*Back to top*](#header1)
239+
240+
195241
## License
196242

197243
[The SQL Server First Responder Kit uses the MIT License.](LICENSE.md)
198244

245+
[*Back to top*](#header1)
199246

200247
[licence badge]:https://img.shields.io/badge/license-MIT-blue.svg
201248
[stars badge]:https://img.shields.io/github/stars/BrentOzarULTD/SQL-Server-First-Responder-Kit.svg

sp_Blitz.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5253,6 +5253,8 @@ IF @ProductVersionMajor >= 10
52535253
WHEN [T].[TraceFlag] = '3505' THEN ' 3505 enabled globally. Using this Trace Flag disables Checkpoints. Probably not the wisest idea.'
52545254
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.'
52555255
WHEN [T].[TraceFlag] = '834' AND @ColumnStoreIndexesInUse = 1 THEN ' 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') AS NVARCHAR(1000)) LIKE N'%Express%') THEN ' 8017 is enabled globally, which is the default for express edition.'
5257+
WHEN [T].[TraceFlag] = '8017' AND (CAST(SERVERPROPERTY('Edition') AS NVARCHAR(1000)) NOT LIKE N'%Express%') THEN ' 8017 is enabled globally. Using this Trace Flag disables creation schedulers for all logical processors. Not good.'
52565258
ELSE [T].[TraceFlag] + ' is enabled globally.' END
52575259
AS Details
52585260
FROM #TraceStatus T

0 commit comments

Comments
 (0)