Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/janeklb/bprr
https://github.com/janeklb/bprr
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/janeklb/bprr
- Owner: janeklb
- Created: 2016-10-21T01:08:07.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-28T09:22:06.000Z (about 8 years ago)
- Last Synced: 2024-10-12T22:41:51.808Z (2 months ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 'Blocked process report' report
Analyses a SQL Server "Blocked process report" trace and summarises all blocking / blocked queries.
The trace must be saved as XML (*File > Save As ... > Select .xml as output*) from SQL Server Profiler.Install globally (`npm i -g bprr`) and run:
```bash
bprr /path/to/trace.xml []
```The `` argument is optional, and defaults to `ucs2` (**UCS-2** is a subset of **UTF-16** which is the encoding that SQL Server Profile saves in).
After running `bprr` you'll see a report printed to stdout. There will be 3 sections:
- all queries
- blocking queries
- blocked queriesEach section will indicate how many unique queries were encountered and will then give a summary report for each unique query in the following format:
```
# executions: <# of times this query was executed / appeared in the trace>
```