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

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

Postby ReinhardOstermeier » Thu 23 Oct 2008 12:43

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.
ReinhardOstermeier
 
Posts: 5
Joined: Thu 23 Oct 2008 12:29

Postby ReinhardOstermeier » Mon 27 Oct 2008 10:12

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.
ReinhardOstermeier
 
Posts: 5
Joined: Thu 23 Oct 2008 12:29

Postby wagenheimer » Wed 03 Dec 2008 16:39

I have the sample problem with Interbase Drivers on Delphi 2009.

Is there any fix?
wagenheimer
 
Posts: 13
Joined: Thu 27 Sep 2007 21:02

Postby ReinhardOstermeier » Wed 03 Dec 2008 16:48

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.
ReinhardOstermeier
 
Posts: 5
Joined: Thu 23 Oct 2008 12:29

Postby wagenheimer » Wed 03 Dec 2008 17:02

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.
wagenheimer
 
Posts: 13
Joined: Thu 27 Sep 2007 21:02

Postby wagenheimer » Wed 03 Dec 2008 17:37

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
wagenheimer
 
Posts: 13
Joined: Thu 27 Sep 2007 21:02


Return to dbExpress driver for SQL Server