- 3 Key Numbers
- How busy is your server
- How hard is it working
- Ho wmuch data do you have
- Perfmon
SQLServer:SQL Statistics - Batch Requests/sec
. Trend this on an hourly basis and break it out by Weekday/Weekend
SQLServer:SQL Statistics - Batch Requests/sec
. Trend this on an hourly basis and break it out by Weekday/Weekend-- SocietySkins (laptop skins)
sp_BlitzIndex
sp_Blitz
will look across a wider window of time.// | |
// Assumes that you are binding to a hidden input element. | |
// | |
// Bindings: | |
// * select2 : passthrough options to the select2 javascript call | |
// * selectedItem : object to initially select, or null | |
// * itemMapper : defaaults to {id: 'id', text: 'text'} | |
// * items : set of items to init the selection list with | |
// | |
// example: |
# | |
# Given a root directory, perform a depth first recursive delete of all subdirectories and files. | |
# Necessary b/c for some reason powershell won't always succeed in a recursive delete of folders which contain | |
# subfolders | |
# | |
function RecursiveDelete($theroot) { | |
$children = Get-ChildItem -Path $theroot | where-object { $_.Attributes -eq "Directory"} |% {$_.FullName} | |
foreach($achild in $children) { | |
if ($achild -ne $null) { | |
RecursiveDelete $achild |
# | |
# Example powershell script to read in contents of an Excel XLSX spreadsheet using | |
# the GemBox.Spreadsheet library (http://www.gemboxsoftware.com/) | |
# | |
# NOTE: Since GemBox.Spreadsheet is dependent upon .NET 4.0, and since the powershell 2.0 | |
# tooling is, by default, only .NET 3.5 capable, there's an extra step you need to | |
# go through to get your environment ready. See the stackoverflow article here | |
# http://stackoverflow.com/a/5069146 | |
# for more details on how to configure this. | |
# |