<configuration> <appSettings> <add key="databasepath" value="Data Source=ABC-PC\SQLEXPRESS;Initial Catalog=mydb;Integrated Security=True"/> </appSettings> </configuration>
SqlConnection conn = new SqlConnection(); conn.ConnectionString = ConfigurationSettings.AppSettings["databasepath"]; conn.Open();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)