Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mjswart-d2l/sqlblockedprocesses
SQL Server Blocked Process Report Viewer
https://github.com/mjswart-d2l/sqlblockedprocesses
microsoft-sql-server ms-sql-server sql-server
Last synced: 4 months ago
JSON representation
SQL Server Blocked Process Report Viewer
- Host: GitHub
- URL: https://github.com/mjswart-d2l/sqlblockedprocesses
- Owner: mjswart-d2l
- License: mit
- Created: 2018-02-09T19:27:25.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-12T14:21:23.000Z (almost 7 years ago)
- Last Synced: 2024-09-29T14:40:57.861Z (4 months ago)
- Topics: microsoft-sql-server, ms-sql-server, sql-server
- Homepage: http://michaeljswart.com
- Size: 9.77 KB
- Stars: 35
- Watchers: 8
- Forks: 14
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sqlblockedprocesses
**SQL Server Blocked Process Report Viewer**
*Instructions*
Download procedure from here: [sp_blocked_process_report_viewer.sql](https://raw.githubusercontent.com/mjswart/sqlblockedprocesses/master/sp_blocked_process_report_viewer.sql)
This script will install the procedure on your server.*Purpose*
SQL Server's tracing tools generate blocked process reports to give more information about potential concurrency problems on a database server. But they are difficult to read. SQL Server Blocked Process Report Viewer organizes and presents this information in a useful way.
*Syntax*
`sp_blocked_process_report_viewer [@Source = ] 'SourceOfTraceOrSessionTarget' [ , [ @Type = ] 'BPRFormat' ]`
*Arguments*
`[@Source = ] 'SourceOfTraceOrSessionTarget'`
If the blocked process reports you'd like to examine came from a trace file, then this parameter specifies the name of the trace table or trace file that holds the blocked process reports.
If the blocked process reports you'd like to examine are in an extended events session, then this parameter specifies the name of the session (not the session target).
If you are using extended events as a source, the target must either be a ring_buffer or an event_file.
`[@Trace = ] 'BPRFormat'`
Is the type of file referenced by SourceOfTraceOrSessionTarget. Values can be TABLE, FILE, XMLFILE or XESESSION. The default is FILE
Remember: When it comes to concurrency problems, _you don’t have to guess what’s wrong!!!_