Test an ODBC driver connection with Powershell ?


hello !

i have windows 2003 platform powershell v1 installed.

i installed odbc driver package in powershell. want test connection of odbc driver using powershell, without installing sql server. "invoke-sql" command comes sql 2008 (r2).

is there way test connection odbc driver powershell script ?

 


thanks advance ideas / - regards - have nice day ! rhum2

its same deal...
 
$conn = new-object system.data.odbc.odbcconnection
$conn.connectionstring = "(dsn=dnsname)"
$conn.open()
 
justin


Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

server manager error: ADAM.events.xml could not be enumerated.

Cannot access Anywhere Access using domain name?

WMI Failure: Unable to update Local Resource Group