Vote UpVote

Programmatically set DataSnap credentials on a TSQLConnection

Mat DeLong – Say you have a thick client with a TSQLConnection, using the DataSnap driver, and you want to set the protocol, user name and password at runtime (based on user input.) In the object inspector, you see these properties called "CommunicationProtocol", "DSAuthUser" and "DSAuthPassword". Using the TSQLConnection instance (Conn1) this is how you set them programmatically: Conn1.Params.Values['CommunicationProtocol'] := 'tcp/ip'; Conn1.Params.Values['CommunicationProtocol'] := 'http'; //NOTE: the displayed name (DSAuthUser) doesn't work as the key Conn1.Params.Values['DSAuthenticationUser'] := ...
Favorite? Off-Topic? Mat DeLong @ 2011-07-12 15:38


Visits: 211
Votes: 0
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)