Hi Kiril,
If I fully understand what you are trying to do, this thread on MSDN Forums should contain your answer:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1054316&SiteID=1
In summary:
<appSettings>
<add key ="connectionSource" value="Data Source=127.0.0.1,1544;Network Library=DBMSSOCN;Initial Catalog=pinnacleCMS;User Id=*****;Password=*****;"/>
</appSettings>
You would then read it back into your application like so:
using
System.Configuration;
myString = ConfigurationSettings.AppSettings["ConnectionSource"];
System.Data.OleDb.OleDbConnection myConnection = new System.Data.OleDb.OleDbConnection(myString);
myTableAdapter.Connection = myConnection;
There's much more detail on the MSDN forums.
Hope this helps.
Sincerely,
David Walker