Home All Groups Group Topic Archive Search About

Creating Database Connection at runtime and writing Connection String to App.Config..

Author
12 Apr 2005 4:54 PM
ROO
Hi Everyone,
                     I need some help Creating Database Connection at
runtime and writing Connection String to App.Config, I have 3mxtboxes on a
form
txtUsername = SQL admin User
txtPassword = Sql admin password
txtServername = Sql Server name
I want to be able to write the input supplied by users to the App.config
file..

Please is there a way to do this...

Thanks
ROO

Author
12 Apr 2005 8:19 PM
Chris
The only way to write to the App.Config file is to do it yourself.  There is
no function to do it for you like there is reading  from the file.  You can
make your own xml config file if you like.

Chris

Show quoteHide quote
"ROO" <rop***@hotmail.com> wrote in message
news:u9QZYA4PFHA.1176@TK2MSFTNGP12.phx.gbl...
> Hi Everyone,
>                     I need some help Creating Database Connection at
> runtime and writing Connection String to App.Config, I have 3mxtboxes on a
> form
> txtUsername = SQL admin User
> txtPassword = Sql admin password
> txtServername = Sql Server name
> I want to be able to write the input supplied by users to the App.config
> file..
>
> Please is there a way to do this...
>
> Thanks
> ROO
>
>