[fpc-pascal] SQLDB: Set port in TSQLConnector

Michael Van Canneyt michael at freepascal.org
Tue Jan 12 10:05:53 CET 2021



On Mon, 11 Jan 2021, Virgo Pärna via fpc-pascal wrote:

> On Fri, 08 Jan 2021 14:25:09 -0300, Luis - SoftSAT Sistemas via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
>> I'm trying to connect to a Firebird database with TSQLConnector, but I can't 
>> seem to find a way to set the port number.
>>
>> Looking at TIBConnection, there is a port property, but none in TSQLConnector.
>
> 	You can use 
> HostName := ServerName/Port;

Port is normally handled using the Params property, so

Params.Values['port']:='1234'

should do.

Michael.


More information about the fpc-pascal mailing list