Update the Windows install.

This commit is contained in:
markjcrane
2018-01-03 01:13:29 -07:00
parent 4829f22abf
commit 74abcb8196
26 changed files with 655 additions and 484 deletions

View File

@@ -0,0 +1,17 @@
Function Test-ODBC([string]$DSN,[string]$username,[string]$password) {
$connection_string = "DSN=$DSN;"
if ($username) {
$connection_string += "username=$username;"
}
if ($password) {
$connection_string += "password=$password;"
}
$conn = New-Object System.Data.Odbc.OdbcConnection
$conn.ConnectionString = $connection_string
$conn.open()
$result = ($conn.State -eq "Open")
if ($result) {
$conn.Close()
}
return $result
}