Forum Discussion

Hanila's avatar
Hanila
Occasional Contributor
6 months ago
Solved

How to pass in a parameter to DB connection string

 var Qry = ADO.CreateADOCommand()     Qry.ConnectionString = "Provider=PROVIDERDB;Data Source=SOURCEADDRESS;Initial Catalog=MYDBNAME;User ID=USERID;Password="+ProjectSuite.Variables.sqlReadOnlyPWDIN...
  • rraghvani's avatar
    rraghvani
    6 months ago

    A while back, I provided a possible solution, see  Encrypt/Decrypt Base64 string in TestComplete | SmartBear Community - I didn't have dotNet extension installed or the appropriate license, so I was unable to provide the full code. However, the snippet of code was able to help. You could implement something similar.

    If the automation scripts is being used by a team, would it not be best to have a dedicated user account to access the database?