Hi,

If you save the connect string in the DLL it will be safe but your
program won’t be flexible to changes that might be in the connect string
elements (changing of database, user, password ...). So the best
practice is to exclude connection string to config file. This way any
changes in the connect string wont cause recompilation of your
application.

Natty Gur, CTO
Dao2Com Ltd.
28th Baruch Hirsch st. Bnei-Brak
Israel , 51114

Phone Numbers:
Office: +972-(0)3-5786668
Fax: +972-(0)3-5703475
Mobile: +972-(0)58-888377

Know the overall picture


*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!