TMSConnection change port

Discussion of open issues, suggestions and bugs regarding SDAC (SQL Server Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
azago
Posts: 6
Joined: Fri 04 Jul 2008 08:25
Location: Italy

TMSConnection change port

Post by azago » Thu 22 Apr 2010 10:55

How change "standard port" in the TMSConnection object ??
I don't have a property Port.

I want not use the default 1433.

Thanks
Angelo

Dimon
Devart Team
Posts: 2885
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Thu 22 Apr 2010 12:02

To set special port for connection you should specify this port in the TMSConnection.Server property separated by a comma, like this:

Code: Select all

  MSConnection.Server := 'host,1433';

Post Reply