reading connection string into a vb application...

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
 
T

Terry Olsen

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.
 
B

Brad Pears

Isn't the web.config file only used in asp applications though?? I am using
vb.net 2005.

Thanks, Brad
 

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