I had a problem and learned something at the same time.
I created DBML from an existing server database.
From DBML, I wanted to create a local database (.mdf file). I created a database using DataContext.CreateDatabase("C:\xxxx.mdf").
Then I decided to delete it (MANUALLY, which is hard to see), because when I try to recreate the database with the same name (while the files are deleted), I get an error The database already exists. Choose a different name using CreateDatabase ()
I tried to look at the registry, no luck ... I tried to search the entire hard drive for the file .. no luck.
After googling, I found that you deleted the database created with CreateDatabase(), using DeleteDatabase().... Then you can create the database again.
The problem is that now I still canβt recreate the old database because the system thinks that the name already exists.
Is there a way to get rid of the memories of the old database file "does not exist"
source
share