Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
I write a lot of database applications that connect to a MySQL database. I have a UserProfile class that stores the connection settings into this database as constants, which I know can't be very good. Is there a good way to store connection settings in a program?
Posted

You can store your connection string settings in an app.config file. That way if you ever have to change the settings, for whatever reason, you can do it wthout having to rebuild your solution. At least thats how I've done it in the past.

I hope that was helpful.

Posted
I looked into using the App.config file, which seems pretty easy. The only problem is that there is no security and someone can just open the file and look at the user name and password information for connecting to the database. Is there a more secure way?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...