The sql connection get easy way u didnot reconfigure your just hardcoded the
following for windows authentication
string connection=datasource="servername" intial catalog="databasename" integrated security="true"
sql server authetication like
string connectiondatasource="servername" intial catalog="databasename" Persistinfo security="true" userid="sa"password="123"
to reconfigure the connection string just use txt file or xml
i example to things
place the debug folder dbpathi.ini file (crete new txt file save with extension .ini file )
datasource="servername" intial catalog="databasename" integrated security="true" <pre lang="SQL">
enter following connection strings
to the simple code
filestream fs=new file stream();
fs=file.open(appdomain.currentdomain.basedirectory+"Dbpath.ini");
streamreader sa=new stream reader(fs);
string reader=sa.readtoend()
sqlconnection connnctoin=new sqlconection(reader);
conection.open()
=