Forum Discussion

Naveenks's avatar
Naveenks
Contributor
5 years ago
Solved

Password in encripted format for sql database in connection string

Hi,   I am having connection string for my SQL server where in which i need to enter plain password for connction through database.Is there any way so that i can hide or display that password in ...
  • tristaanogre's avatar
    tristaanogre
    5 years ago

    Sure... my intention was in script.  So, what you would do is something like this.

    var ConnectionString = "DRIVER=SQL Server;SERVER=H_kptest;UID=aaa;PWD=" + Project.Variables.password.DecryptedValue;