Thanks in advance for Your help. I'm getting really crazy!!

Marco.
Code: Select all
var
SQLConnection: TSQLConnection;
begin
SQLConnection := TSQLConnection.Create(nil);
try
SQLConnection.ConnectionName := 'Devart Oracle';
SQLConnection.DriverName := 'DevartOracle';
SQLConnection.GetDriverFunc := 'getSQLDriverORA';
SQLConnection.LibraryName := 'dbexpoda.dll';
SQLConnection.VendorLib := 'OCI.DLL';
SQLConnection.Params.Values['DataBase'] := 'SID';
SQLConnection.Params.Values['User_Name'] := 'login';
SQLConnection.Params.Values['Password'] := 'password';
SQLConnection.LoginPrompt := false;
try
SQLConnection.Connected;
except
on e: Exception do
ShowMessage(e.message);
end;
finally
SQLConnection.Free;
end;
SQLConnection := TSQLConnection.Create(nil);
try
SQLConnection.ConnectionName := 'Devart Oracle Direct';
SQLConnection.DriverName := 'DevartOracleDirect';
SQLConnection.GetDriverFunc := 'getSQLDriverORADirect';
SQLConnection.LibraryName := 'dbexpoda.dll';
SQLConnection.VendorLib := 'dbexpoda.dll';
SQLConnection.Params.Values['DataBase'] := 'host:port:sid';
SQLConnection.Params.Values['User_Name'] := 'login';
SQLConnection.Params.Values['Password'] := 'password';
SQLConnection.LoginPrompt := false;
try
SQLConnection.Connected;
except
on e: Exception do
ShowMessage(e.message);
end;
finally
SQLConnection.Free;
end;