This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[CmdletBinding()] | |
Param ([Parameter(Mandatory=$False,Position=0)] | |
[String[]]$ComputerName = "SERVER") | |
Write-Host "" | |
# Change these values | |
$IgnoreSystemReserved = $true | |
# Percents must be expressed as a decimal value (e.g. 50% is 0.5) | |
$WarningPercent = 0.15 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class LoggerExtensions | |
{ | |
public static void Trace(this Logger logger, Exception exception, LogMessageGenerator messageFunc) | |
{ | |
if (logger.IsTraceEnabled) | |
{ | |
if (messageFunc == null) | |
{ | |
throw new ArgumentNullException("messageFunc"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create event session StackOverflow | |
on server | |
add event sqlserver.rpc_starting | |
( | |
set collect_statement = (1) | |
action | |
( | |
package0.event_sequence, | |
sqlserver.client_hostname, | |
sqlserver.database_name, |