Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Administration - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 6525

Problem attaching database to re-install of SQLExpress 2014

$
0
0
I have been running SQL 2014 Express for quite some time, I built a database with it and have used it in a pet project of mine in Visual Basic 2015. Recently I started my computer and attempted to run the program and received an error that said it couldn't find the SQL Server. I ran SQL Server Management Studio and found that it also wouldn't connect to the Server. In running the diagnostics the results stated that my SQL Server Express file was corrupt and the bast recommendation was to un-install and re-install it. I did this, but now I can't reattach the database to the new installation. Now, when I run SQL Server Management Studio it does connect to the Server, but when I attempt to attach the database I get this error:"Failed to retrieve data for this request. (Microsoft.SqlServer.Management.Sdk.Sfc)ADDITIONAL INFORMATION:An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)CREATE FILE encountered operating system error 5(Access is denied.) while attempting to open or create the physical file 'D:\Data Files 092015\DVD_List.mdf'. (Microsoft SQL Server, Error: 5123)"Its not like it's a newer version of the Server so what is the problem here?

Viewing all articles
Browse latest Browse all 6525

Trending Articles