Store a ConnectionString

  • Thread starter Thread starter Alberto
  • Start date Start date
A

Alberto

I have to store a connection string to a data base but I don't know where.
Where do you prefer store it, in a text file or in a xml file?

Thank you.
 
Hi Alberto,

Adding on to Shiva, if your connection string contains passwords, consider
ecrypting it and then storing.

HTH,
Rakesh Rajan
 
And if you are particularly worried about security, take a look at the
functionality of dpapi which can store encrypted data based on the
credentials of the logged on user.

Chris.
 
Microsoft makes available for download a free tool that will encrypt a
connection string, or user credentials, and store it in the registry for use
by the application. Very helpful, especially if you are using windows auth
for sql connections. google 'aspnet_setreg'

--- Nick
 
Back
Top