UniDAC, SQL Server 2012, "TCP dynamic ports"

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
RadoslawKokoc
Posts: 4
Joined: Wed 27 Aug 2014 20:15

UniDAC, SQL Server 2012, "TCP dynamic ports"

Post by RadoslawKokoc » Thu 28 Aug 2014 15:30

Hi,

I would like to ask if UniDAC can connect to SQL Server 2012 using a method of "TCP dynamic ports"?



Best regards,
Radosław Kokoć

azyk
Devart Team
Posts: 1119
Joined: Fri 11 Apr 2014 11:47
Location: Alpha Centauri A

Re: UniDAC, SQL Server 2012, "TCP dynamic ports"

Post by azyk » Tue 02 Sep 2014 13:00

To connect to SQL Server using dynamic port, before connecting, set the TUniConnection.Port property to the number of the dynamic port you will be using. For example:

Code: Select all

UniConnection.Port := 18888;

RadoslawKokoc
Posts: 4
Joined: Wed 27 Aug 2014 20:15

Re: UniDAC, SQL Server 2012, "TCP dynamic ports"

Post by RadoslawKokoc » Tue 02 Sep 2014 19:33

Thank you very much azyk!
Radek

azyk
Devart Team
Posts: 1119
Joined: Fri 11 Apr 2014 11:47
Location: Alpha Centauri A

Re: UniDAC, SQL Server 2012, "TCP dynamic ports"

Post by azyk » Thu 04 Sep 2014 06:11

Feel free to contact us if you have any further questions.

Post Reply