Wednesday, September 3, 2008

To store connection string in application configuration file

Open up web.config file and inside the root element add the element.


connectionString="Data Source=(local); Initial Catalog=AdventureWorks; Integrated Security=SSPI; Persist Security Info=False" />

No comments:

 
Google