Minor tidying. Making case consistent, and various things analyzer friendly; added Timeout to Send-SQL...,

This commit is contained in:
jhoneill
2018-05-13 17:35:31 +01:00
parent b8cc7f163f
commit 6a53d3ddc9
5 changed files with 29 additions and 23 deletions

View File

@@ -19,7 +19,7 @@ function Export-ExcelSheet {
$xl = New-Object -TypeName OfficeOpenXml.ExcelPackage -ArgumentList $Path
$workbook = $xl.Workbook
$targetSheets = $workbook.Worksheets | Where {$_.Name -Match $SheetName}
$targetSheets = $workbook.Worksheets | Where-Object {$_.Name -Match $SheetName}
$params = @{} + $PSBoundParameters
$params.Remove("OutputPath")