MCPcopy Create free account
hub / github.com/dzsquared/sqlops-firstresponderkit / runspblitzfirst

Function runspblitzfirst

src/runScripts.ts:93–104  ·  view source on GitHub ↗
(context?: sqlops.ObjectExplorerContext)

Source from the content-addressed store, hash-verified

91
92//creating the quickrun script for blitzfirst
93let runspblitzfirst = async (context?: sqlops.ObjectExplorerContext) => {
94 let fileName = "exec_sp_blitzfirst.sql";
95 console.log('Preparing sample run script.');
96 const scriptText = `EXEC [dbo].[sp_BlitzFirst]
97 @Seconds = 5,
98 @ShowSleepingSPIDs = 0,
99 @ExpertMode = 0 --1 will also run sp_BlitzWho
100
101 -- for more info: https://www.brentozar.com/askbrent/
102 `;
103 new placeScript().placescript(fileName,scriptText,context);
104};
105export let disposable_runspblitzfirst = vscode.commands.registerCommand('extension.run_sp_blitzfirst',runspblitzfirst);
106
107 //creating the quickrun script for blitzlock

Callers

nothing calls this directly

Calls 1

placescriptMethod · 0.80

Tested by

no test coverage detected