Quantcast
Channel: ฟอรัม Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8428

Error: 5123 CREATE FILE encountered operating system error 5A(Access denied.)

$
0
0

 

 

 HI ,

 

 This is a problem I encountered when I had to detach a database file (type .mdf):

 

 1) I went to the MS SQL Management Server Studi and detached my database file successfully from a connection called Workhorse.

 

2) I needed to place the .mdf database file into a zip file in order to put it on a remote server. I did this using Shared Portal.  This was also successful

 

3) However when I tried reattaching the database file, I got this error:

CREATE FILE encountered operating system error 5A(Access denied.) while attempting to open or create the physical file "C\Program Files\MSSQL Server\MSSQL\Data\<databasename>.mdf'

 

Q) The database file and log file (ldf) exist in the correct directory so I don't know what happened. Can any one help?

 

 Thanks much

 

Tonante

 


Viewing all articles
Browse latest Browse all 8428

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>