In SQL Server Management Studio 2008, I have deleted my database and checked the directory where the database files were originally stored and the files have disappeared.
If I now do “New Database” from SQL Server Management Studio with the same name as the deleted database expecting it to be empty, I find the tables from the deleted database still exist.
So my question is, how can the tables exist in my new database which has the same name as the database that I deleted?
When you create a database, SQL Server uses the
modeldatabase as a template. Themodeldatabase is copied and then renamed to the new database.Perhaps the
modeldatabase contains some of the tables. To verify this theory, examine themodeldatabase under “System Databases”.