Config CRSQLConnection1

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
gilson.ti
Posts: 1
Joined: Mon 30 Jan 2012 01:45
Location: BRASIL

Config CRSQLConnection1

Post by gilson.ti » Mon 30 Jan 2012 01:53

Hello,

I use Delphi 7 and would like to set some parameters of a CRSQLConnection1, could present an example of the correct way to do this?

In the file readme.html says:

If you compile the application for CLR, you should use
ISQLConnection_SetOption (SqlConnection1, ...)

But I could not implement it that way.

Sincerely,

Gilson

AndreyZ

Post by AndreyZ » Mon 30 Jan 2012 12:32

Hello,

You cannot compile your application for CLR using Delphi 7, it is possible only in Delphi 2005, 2006, and 2007. In Delphi 7, you should use the following code:

Code: Select all

procedure TForm1.SQLQuery1BeforeOpen(DataSet: TDataSet);
begin
  SQLConnection1.SQLConnection.SetOption(coFetchAll, Integer(True));
end;

Post Reply