Hanila
6 months agoOccasional Contributor
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...
- 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?