.net - Storing username and password to access SQL Server from a Windows service without Integrated Security -
we have service accesses sql server, client not using integrated security , need service have rights database whenever machine turned on. have store sql server username , password? if where? (and how)
yes, if want connect sql server using specific username , password, credentials need provided in connection string.
and yes, storing them in plain text bit of risky business.....
... fortunately, .net allows encrypt entire sections of config files!
read encrypting passwords in .net application, , contrary popular belief, available in of .net - not in asp.net. works in services, - not problem @ all.
so store sql server connection string app.config
service , encrypt <connectionstrings>
section , done it!
Comments
Post a Comment