connection string
web.config:-
<appSettings>
<add key="doctor_DB" value="Data Source=12.34.56.78(server);
Network Library=DBMSSOCN;
Connection Timeout=15;
Packet Size=4096;
Integrated Security=no;
Initial Catalog=doctordatabase(db);
User ID=abc;
password=mT9!zx2yvH8Nshdn;
Encrypt=no;
Max Pool Size=50000"/>
</appSettings>
connection string
string cs = ConfigurationManager.AppSettings["doctor_DB"];
cn = new SqlConnection(cs);
cn.Open();
<appSettings>
<add key="doctor_DB" value="Data Source=12.34.56.78(server);
Network Library=DBMSSOCN;
Connection Timeout=15;
Packet Size=4096;
Integrated Security=no;
Initial Catalog=doctordatabase(db);
User ID=abc;
password=mT9!zx2yvH8Nshdn;
Encrypt=no;
Max Pool Size=50000"/>
</appSettings>
connection string
string cs = ConfigurationManager.AppSettings["doctor_DB"];
cn = new SqlConnection(cs);
cn.Open();