none
app.config/edit,change after app deployment RRS feed

  • Question

  • I'm trying to find "best practice" to have multiple Windows applications access a central SQL database.  On installation/deployment I need to change app.config settings of the SQL 05 connection string to the appropriate IP/value.

     

    <connectionStrings>

    <add name ="SqlServer" connectionString ="Data Source=192.192.168.1\SQLEXPRESS; Database=Customer;UID=user;Pwd=password" providerName ="System.Data.SqlClient"/>

    </connectionStrings>

     

    I'm using app.config to manage all the connections rather than in code-behind.  I didn't know if i should edit XML on client app or if there is another way to store connStrg?

     

    Thank you.

    Sunday, January 27, 2008 9:05 PM

All replies