build connection string in the run time

Discussion of open issues, suggestions and bugs regarding SDAC (SQL Server Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
rhwang46
Posts: 3
Joined: Mon 30 Oct 2006 09:38

build connection string in the run time

Post by rhwang46 » Sat 17 Feb 2007 00:21

If I use delphi's own AdoConnection component, I could use EditConnectionString(AdoConn) to let the user to build the connection string. But if I use the SDAC's connection component, then the same program could not be compiled. How do I achieve the same effect by using the SDAC's connection component

Jackson
Posts: 512
Joined: Thu 26 Jan 2006 10:06

Post by Jackson » Mon 19 Feb 2007 08:40

You can't use the EditConnectionString function with SDAC because it is designed for working with ADO components only.

Jackson
Posts: 512
Joined: Thu 26 Jan 2006 10:06

Post by Jackson » Mon 19 Feb 2007 09:44

You can use the TMSConnectDialog component to provide dialog for the user to enter a username, password and server name.

Post Reply