hello alex,
sorry eventually my problem hasn't fixed.
i try what your suggestion,
unit Unit2;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, DB, SqlExpr;
type
TForm2 = class(TForm)
SQLConnection1: TSQLConnection;
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form2: TForm2;
SQLConnection: TSQLConnection;
implementation
begin
SQLConnection := TSQLConnection.Create(nil);
SQLConnection.DriverName :='Devart PostgreSQL';
SQLConnection.ConnectionName :='DevartPostgreSQL';
SQLConnection.GetDriverFunc := 'getSQLDriverPostgreSQL';
SQLConnection.LibraryName := 'dbexppgsql40.dll';
SQLConnection.LoginPrompt := False;
SQLConnection.Params.Values['HostName'] := 'localhost:5432';
SQLConnection.Params.Values['Database'] := 'DBMeru';
SQLConnection.Params.Values['SchemaName'] := 'public';
SQLConnection.Params.Values['User_Name'] := 'postgres';
SQLConnection.Params.Values['Password'] := '200904';
try
SQLConnection.Connected := true;
ShowMessage('OK');
except
on E:Exception do
ShowMessage(e.Message);
end;
{$R *.dfm}
end.
when i run this, its fine but latter it became error:
Problem signature:
Problem Event Name: APPCRASH
Application Name: Project2.exe
Application Version: 0.0.0.0
Application Timestamp: 4d762db3
Fault Module Name: KERNELBASE.dll
Fault Module Version: 6.1.7600.16385
Fault Module Timestamp: 4a5bdaae
Exception Code: 0eedfade
Exception Offset: 00009617
OS Version: 6.1.7600.2.0.0.256.1
Locale ID: 1057
Additional Information 1: 83d0
Additional Information 2: 83d0275eb87dfc2352dfebc9ef09f7ed
Additional Information 3: 86ab
Additional Information 4: 86ab4f53746e2d7edbedcaaa8466c5bf
n with this:
Run Time Error 217 at 0055E1CA
i can't find out what is the problem, because i a newb with this