Im programming a VB.net application that automatically created a xml file that conntains a connection string to a SQL server(user & pw).. Is it really neccessary to have that line in the XML?? I erased it and it seems to be working fine..Just want to get rid of it for security purposes.
Asked
Active
Viewed 97 times
0
-
ok... you deleted your connection string. How is your application connecting to your db now? – Vland Dec 27 '13 at 01:44
-
the connection string is contained within the source... – user2824324 Dec 27 '13 at 01:45
1 Answers
0
It's useful to put your connection string in some kind of config file (xml or ini or whatever) in case you move your database to another server or you change your login credentials and so on...
if you think you'll never need this and prefer to rebuild and redeploy your application, then no, you don't need any xml configuration file with the connection string in it.
If you're worried about security you could keep it in the xml file encrypted and then decrypt it runtime.