I had SQL Server 2005 on my computer and created several databases through it. Due to some problems, I had to reinstall it, but now when I give the command "create mydb database", it says
"Cannot create file 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\myDb.mdf' because it already exists. Change the file path or the file name, and retry the operation."
And when I give the command "use mydb", it says
Could not locate entry in sysdatabases for database 'mydb'. No entry found with that name. Make sure that the name is entered correctly.
What should I do to find my databases?
source
share