how to share TuniConnection between applicaitons

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
arusoft
Posts: 45
Joined: Thu 06 Sep 2012 20:19

how to share TuniConnection between applicaitons

Post by arusoft » Wed 11 Sep 2013 16:19

Hi,

Is there way to share TUniConnection between applications. Also I am not seeing connection string property that I can share as an alternative.

Thank You.

AndreyZ

Re: how to share TuniConnection between applicaitons

Post by AndreyZ » Thu 12 Sep 2013 10:01

Hello,

You can share one connection between applications using the TUniConnection.AssignConnect method. AssignConnect uses a preconnected TUniConnection to share it with the current TUniConnection component. You can learn more about the AssignConnect method in the UniDAC documentation ( http://www.devart.com/unidac/docs/devar ... ction).htm ).
Also, you can use connection strings as an alternative. Connection string support was added in UniDAC 5.0.1 ( http://www.devart.com/unidac/revision_history.html ), so in order to use it, you should upgrade UniDAC at least to this version.

Post Reply