Board index » delphi » Problem moving database to new location
Anders Johansson
![]() Delphi Developer |
Problem moving database to new location2004-08-24 04:00:27 AM delphi0 SQL server 2000 and Delphi 6 My database is in C.\OriginalLoc. I shut down SQL server, copy the database to C:\NewLoc and delete C:\OriginalLoc. I start SQL server again, and start the application The application now complains about the physical filename in C:\OriginalLoc possibly being incorrect. This is true, since it has been deleted, but why does it complain in the first place. What part of the system "remembers" C:\OriginalLoc. My application finds the correct location of the database by locating the application.exe and the builds a path from there. The database is in a subdirectory within the application directory C:\NewLoc. I believe this way of doing it is OK, since I have managed to fix the problem twice while investigating it, but I could never figure how I did it. It suddenly just worked. So the question is: - What mechanism remembers previous DB locations? Thanks, Anders J |