unknow driver: DevartPostgreSQL

Discussion of open issues, suggestions and bugs regarding usage of dbExpress drivers for PostgreSQL in Delphi and C++Builder
Post Reply
alfpal
Posts: 1
Joined: Mon 11 Sep 2017 15:34

unknow driver: DevartPostgreSQL

Post by alfpal » Mon 11 Sep 2017 15:46

Hi,
I need to access a sql postgre server database
I put in a form a TsqlConnection component, I fill Its property as:
SQLConnection := TSQLConnection.Create(nil);
SQLConnection.DriverName :='DevartPostgreSQL';
SQLConnection.ConnectionName :='DevartPostgreSQL';
SQLConnection.GetDriverFunc := 'getSQLDriverPostgreSQL';
SQLConnection.LibraryName := 'dbexppgsql40.dll';
SQLConnection.LoginPrompt := False;
SQLConnection.Params.Values['HostName'] := 'localhost:5432';
SQLConnection.Params.Values['Database'] := 'postgres';
SQLConnection.Params.Values['SchemaName'] :='public';
SQLConnection.Params.Values['User_Name'] := 'postgres';
SQLConnection.Params.Values['Password'] := 'password';

when I try to connected it , show the message
unknow driver: DevartPostgreSQL

I installed devart dbx driver for postgre (Trial version)

Can somebody help me?

PS : in the file dbxdrivers.ini there is the row with DevartPostgreSQL=1

I'm using Delphi XE2

thanks.

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

Re: unknow driver: DevartPostgreSQL

Post by azyk » Tue 12 Sep 2017 10:26

To solve the issue, add the DbxDevartPostgreSQL unit to the uses clause. Also specify whether this issue is reproduced on our Query demo project. The Query project is located in the subfolder 'Demos\Query' relatively to the path where dbExpress Driver for PostgreSQL demos were installed.

Post Reply