diff --git a/VERSION b/VERSION index 6d7de6e..9084fa2 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.0.2 +1.1.0 diff --git a/utils.ps1 b/utils.ps1 index b0673d0..bef073f 100644 --- a/utils.ps1 +++ b/utils.ps1 @@ -31,7 +31,9 @@ function ValidateServerNameInput { $sql_instances = @($sql_instances | Where-Object { $_ -ne "MSSQLSERVER" }) if ($sql_instances) { MessageError "Available sql named instances: [$($sql_instances -join ', ')]" - MessageError "Example: .\odbcad.ps1 -server_name .\$($sql_instances[-1])" + $invoker_script_name = ($MyInvocation.PSCommandPath -split "\\")[-1] + MessageError "Example: .\$invoker_script_name -server_name "".\$($sql_instances[-1])""" + exit 1 } return $false }