Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

can't attach adventurework database 2012 Expand / Collapse
Posted Tuesday, October 9, 2012 10:09 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Saturday, November 21, 2015 11:20 AM
Points: 1, Visits: 7
I am trying to attach aventurework database 2012, but I am getting an Operating system error 5: "5(Access is denied.)
Post #1370468
Posted Tuesday, October 9, 2012 11:07 AM



Group: General Forum Members
Last Login: Today @ 5:35 AM
Points: 14,549, Visits: 38,415
access denied is usually because the account the SQL service is running from doesn't have access to teh specific folder the mdf exists in;
for example, if the mdf is on YOUR desktop , ie c:\Users\seyoumblen\Desktop ,
most other users do not have access to it ; all the folders specific to you have very limited permissions.

move the file to a more public folder, like c:\Data or something instead.


help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!
Post #1370494
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse