I'd like to get the CommandTimeout=0 into the command below before the ExecuteReader is done.
I haven't found any examples with this type of code showing where to place the CommandTimeout parameter.
Thanks for any help with this.
---------------------------------------------------
$text = "A valid query string that was built"
$conn = New-Object Data.Odbc.OdbcConnection
$conn.ConnectionString= "DSN=QDSN"
$conn.open()
$result =(new-Object Data.Odbc.OdbcCommand($text,$conn)).ExecuteReader()
$table = new-object "System.Data.DataTable"
$table.Load($result)