GR M

GR M

  • NA
  • 5
  • 23k

Dynamic Connection string

Jan 15 2011 1:00 AM
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.

Answers (1)