reading connection string into a vb application...

  • Thread starter Thread starter Brad Pears
  • Start date Start date
B

Brad Pears

I want to have my SQL Server 2000 database connection string data in an .ini
file or a .xml file and then read that string into my vb.net 2005 app -
rather than hard code the connection string in the app.

What are most programmers doing and how do I read this data into my program
on startup?

Thanks! Brad
 
I use an INI file and read it in. I encrypt it though to keep prying eyes
out. Don't want just anyone seeing how to access your database.
 
Isn't the web.config file only used in asp applications though?? I am using
vb.net 2005.

Thanks, Brad
 
Back
Top