Skip to content

Commit

Permalink
Minor fix for issue #13
Browse files Browse the repository at this point in the history
  • Loading branch information
Matticusau committed Nov 16, 2017
1 parent c92b33d commit e3e6a76
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion RunWorkload.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,14 @@ Clear-Host
Write-Output "SQL Workload Generator"
Write-Output "Starting..."

Import-Module .\RunWorkload
[string]$workloadModulePath = ".\RunWorkload"
if (-not(Test-Path -Path workloadModulePath))
{
Write-Output "Cannot find RunWorkload module at path '$($workloadModulePath)'";
$workloadModulePath = Read-Host -prompt "Please enter path to '.\RunWorkload' Module included with this toolset";
}

Import-Module $workloadModulePath

Invoke-SqlWorkload -SQLServer $SQLServer -Database $Database -UserName $UserName -Password $Password -TSQLFile $TSQLFile -TSQLSetupFile $TSQLSetupFile -Frequency $Frequency -Duration $Duration -Verbose;

Expand Down

0 comments on commit e3e6a76

Please sign in to comment.