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

R

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
 
C

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top