Hi..
Do consider my thought. I want to write my connection string in such away that it fits in the environment of database back up and restore. i.e. Most of time we do use hardcoded connection string. But if the user restores the backed up database to some other drive due to some reason or changes the restored database file name to his will, our whole program will crash. So, I invite some thoughts & lights on whether we could write the connection sting in such a way that it'll fit into these environment or suggest possible logic. Thanks in advance.
Dynamic Connection string
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Kirtan PatelRank #292 · 8.6K reputationPosted Jan 14, 2011, 9:46 PM EST
if user want that he want to load his own database named files then user Opens that XML File and Modify according to his preference..or if you automate this task too then provide form that will allow user to enter his own settings for database name .. file path etc ..