This namespace does not support OLE DB version 2.5 interfaces.
TODO
Using System.Data.OleDb
to execute a DDL statement that is stored in a file:
$con = new-object System.Data.OleDb.OleDbConnection
$con.ConnectionString = "Provider=OraOLEDB.Oracle;User Id=[DWH_USER];Data Source=TEST1.RENE.XYZ;OSAuthent=1"
$con.Open()
$sqlStatement = [IO.File]::ReadAllText("$pwd\ddl.sql", [System.Text.Encoding]::GetEncoding(1252))
$cmd = $con.CreateCommand();
$cmd.CommandText = $sqlStatement
$cmd.ExecuteNonQuery();