Problem installing SQL Server driver in Delphi XE8

Discussion of open issues, suggestions and bugs regarding SDAC (SQL Server Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
WimNki
Posts: 3
Joined: Tue 14 Oct 2014 09:50

Problem installing SQL Server driver in Delphi XE8

Post by WimNki » Thu 11 Jun 2015 09:03

I used to have the driver running in Delphi XE2 without problems (install file dbxsda65.exe).
Now I also have XE8 installed and want to use DevArt SQL Server driver.
Whatever I do, I can not get it to work. Error:
'Could not resolve unit name 'DBXDevartSQLServer' at line..'

and in the Messages box the other message:

'[dcc32 Fatal Error] MyOwnConnection.pas(34): F2063 Could not compile used unit 'DBXDevartSQLServer.pas'

I tried everything: Install a new driver (install dbxsda70.exe), failed. Uninstall, install dbxsda65 again, failed. Uninstall, install new dbxsda70, failed

The package named [Devart SQL Server DBX Driver] seems to get install correctly, all the times (no installed components).
What could be wrong? How can I fix this?

WimNki
Posts: 3
Joined: Tue 14 Oct 2014 09:50

Re: Problem installing SQL Server driver in Delphi XE8

Post by WimNki » Fri 12 Jun 2015 07:53

SOLVED.
Library path manipulation was needed!
The path for the _old_ driver interfeers with the new. After install of the _new_one, these paths exist in the library path:
C:\Program Files (x86)\Devart\Dbx\SqlServer\Lib\Delphi16\Win32
C:\Program Files (x86)\Devart\Dbx\SqlServer\Lib\Delphi22\Win32
Like this, program does not compile.

Changing the order (or remove the Delphi16 line) makes it work!?
Something for DevArt to take notice?
Wim

azyk
Devart Team
Posts: 1057
Joined: Fri 11 Apr 2014 11:47
Location: Alpha Centauri A

Re: Problem installing SQL Server driver in Delphi XE8

Post by azyk » Fri 12 Jun 2015 13:08

The dbExpress Driver for SQL Server installer performs files installation, environmental variables configuration, etc. only for Delphi/RAD Studio versions, that are already installed on the computer. So, after installation of RAD Studio XE8, you had to uninstall dbExpress driver for SQL Server and reinstall it.

The correct values of Library Path in RAD Studio XE8 for dbExpress driver for SQL Server are the following:

32-bit Windows

Code: Select all

C:\Program Files (x86)\Devart\Dbx\SqlServer\Lib\Delphi22\Win32
64-bit Windows

Code: Select all

C:\Program Files (x86)\Devart\Dbx\SqlServer\Lib\Delphi22\Win64
OS X

Code: Select all

C:\Program Files (x86)\Devart\Dbx\SqlServer\Lib\Delphi22\OSX32
Delete the path to Delphi16 from the list of Library Path values for RAD Studio XE8 you have provided.

Post Reply