1

I use RAD Studio 2010 including latest updates 4 and 5, my database is SQL Server Express.

I set up a TSQLConnection but it won't connect, error message is "DBX-Error: the driver could not be initialized correctly. A client library may be missing, may not be installed correctly, or may have the wrong version" (error messagetranslated from German).

Connecting to the database via TADOConnection works fine with both ADO drivers ("Microsoft OLE DB Provider for SQL Server" and "SQL Native Client").

Can anybody give me a hint how to connect via dbExpress?

3 Answers 3

3

you need to install the sql native client, if you read the read me that comes with RAD studio 2010 its says that it is a requirement for connecting to sql server 2000/2005/2008

I’ve also discovered that in dbxdrivers.ini they haven’t added the proper option for MSSQL 2000/2005 you need to edit the top bit to add in MSSQL9=1

example:

[Installed Drivers]
DBXTrace=1
DBXPool=1
BlackfishSQL=1
DataSnap=1
ASA=1
ASE=1
DB2=1
Firebird=1
Informix=1
Interbase=1
MSSQL=1
MSSQL9=1
MySQL=1
Oracle=1

you can then select MSSQL9 as a dbExpress option and it should also appear in data explorer as well

Sign up to request clarification or add additional context in comments.

2 Comments

In fact I have sql native client installed
The missing entry in the ini was the problem. Now it works fine, thanks a lot
1

I had a similiar issue with Delphi XE2 ad SQL Server 2005. I uninstalled and installed several versions (including MSSQL 2008 R2) of SQL Native Client to no avail. But adding MSSQL9=1 to the ini file worked.

Comments

-1

Maybe this thread on the EDN (Embarcadero Developer Network) can be helpful.

1 Comment

unfortunately installing sql native client is not an option because I cannot change anything on the target machines

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.