0
votes
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'] := ...
Statistics
|
Visits by Source |
User Actions |




