Page 1 of 1

Delphi 2009 raises Exception "Unknown Driver: Devart..."

Posted: Thu 23 Oct 2008 12:43
by ReinhardOstermeier
I've downloaded the latest Trial version of MS SQL Driver 4.45 to Test with D2009.
Our Software was developed with D7 so far and workes fine with MS SQL Driver 1.9 ... 3.1
Now I get the exception "Unbekanter Treiber: DevartSQLServer" (in english "Unknown driver ...").
I already found out that D2009 always reads the dbxdrivers.ini and dbxconnections.ini. Our software sets this parameters at runtime.
To test I set up everything to use the dbx*.ini files, but on connection.Open() I do still get this exception.
Do you have any solution or hints to get this working?
Thank you,
Reinhard Ostermeier.

Posted: Mon 27 Oct 2008 10:12
by ReinhardOstermeier
I found the reason for my problem.
I did not install the "Advanced SQLConnection component"
On a second machine I did, and then it works (even if dbxdrivers.ini does not have the DevartSQLServer entry :D ).

May be the setup should say that this component is needed on a developer machine.

Posted: Wed 03 Dec 2008 16:39
by wagenheimer
I have the sample problem with Interbase Drivers on Delphi 2009.

Is there any fix?

Posted: Wed 03 Dec 2008 16:48
by ReinhardOstermeier
For Devart drivers you need to have the Devart Advanced SQLConnection Component installed and the DriverName must be for eample DevartSQLServer or DevartOracle.

If the driver developer did not provide some special connection component like Devart does, then you need to use a DriverName that is defined in the dbxdrivers.ini on your system.
As far as I know it is not necessary to have the correct driver specified, you can any of the existing ones.

Posted: Wed 03 Dec 2008 17:02
by wagenheimer
But the problem is that CRSqlConnections does not works in Delphi 2009. And I didn´t use dbxconnections.ini File.

In Designtime everything works, the problem is in Runtime.

Posted: Wed 03 Dec 2008 17:37
by wagenheimer
I solved the problem. It´s is a Delphi 2009 problem. Just need to add DBXDynalink to Uses.

http://qc.codegear.com/qc/wc/qcmain.aspx?d=67640