- Albert van Bochove
- PowerBuilder
- Monday, 8 April 2024 08:14 PM UTC
Hello, I have the following connection string:
sqlca.dbms = "value"
sqlca.database = "database_name"
sqlca.servername = "server_name"
sqlca.dbparm="ConnectString='DSN=database_name',DisableBind=1,DelimitIdentifier='No',StripParmNames='Yes',CallEscape='No',MsgTerse='Yes',FormatArgsAsExp='N',TrustedConnection=1 "
sqlca.userid = "user_name"
sqlca.logid = "user_name"
and I need to do it as an if - else sentence, for example if it is user1 and password1, then use the following connection string ... , else if: if it is user 2 with pass2, then use the connection string 2.
how can I do this, so far I can only make it possible to connect with a single user configuration.
Thanks in advance.
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.