Message 1 of 3
Connecting to a database with .NET inside Max

Not applicable
03-26-2008
03:12 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, I'm trying to import some data into Max 9 (64-bits) from our Oracle database but I'm experiencing some problems.
There are some problem with Oracle ODBC drivers with Windows XP 64, so I'm trying to do the connection using .NET objects as it seems that is possible to connect to a database trough .NET without using ODBC.
The code for the connection should be something like this:
But I get a (Exception from HRESULT: 0x8007000B) error.
Anyone know what I'm doing wrong or has experience on the subject?
Thanks
There are some problem with Oracle ODBC drivers with Windows XP 64, so I'm trying to do the connection using .NET objects as it seems that is possible to connect to a database trough .NET without using ODBC.
The code for the connection should be something like this:
dotnet.loadassembly "System.Data.OracleClient"
connectionString = "Data Source=192.168.0.68;Integrated Security=true;"
connection = dotNetObject "System.Data.OracleClient.OracleConnection" connectionString
connection.Open()
But I get a (Exception from HRESULT: 0x8007000B) error.
Anyone know what I'm doing wrong or has experience on the subject?
Thanks