|
| Re: dbconnect too slow in ACAD2008 |
 |
Fri, 25 Apr 2008 11:47:29 +000 |
Although it seems likely that AutoCAD is the problem, you might try an
OLEDB provider instead of the ODBC:
http://www.oracle.com/technology/software/tech/windows/ole_db/index.html
--
jrf
Autodesk Discussion Group Facilitator
Please do not email questions unless you wish to hire my services
On Thu, 24 Apr 2008 10:21:21 +0000, Thomas Waberzeck wrote:
> Hello,
> I'm trying to connect my Drawing to an Oracle Database using the
> following Code:
>
> // Late Binding
> // gACADApp:=comobj.GetActiveOleObject('AutoCAD.Application.16'); //
2005
> gACADApp:=comobj.GetActiveOleObject('AutoCAD.Application.17'); // 2008
>
>
> gDbconnect:=gAcadApp.GetInterfaceObject('CAO.DbConnect.16'); // 2005
> And 2008
>
> // Connect to Database
> gDBConnect.Connect('Datasource','User','Password',true);
>
> Showmessage('Done');
>
> In ACAD2005 everything works as it should - but ACAD2008 takes too long
> to establish the connection.
>
> The Datasource is an ODBC Datasource using the Oracle Driver.
>
> Any suggestions?
>
> Thanks
>
> Thomas
>
|
| Post Reply
|
|
|
|
|
|
|
|
|
|