Monday, February 9, 2009

Where is the best place to store the connection string?

I think the best place to store the connection string is the Web.Config File if you are developing a Web Application or the App.Config File if you are developing a Windows Application.

You have another opinion? Leave a comment.

3 comments:

  1. Not to mention, encryption is mandatory!

    ReplyDelete
  2. you have more than one way to store your connection string
    1- in app.config or web.config
    2- in windows registery (i recommend)
    3- also can store it in encrypted text file

    ReplyDelete
  3. mmm .. I can see nobody talked about storing it in the settings section underneath your project properties section

    ReplyDelete