0

Basically I want to attach .mdf file which located in D(you can see it from the picture), But then I got this error. Any idea why this happened and how to fix it?

problem

tshepang
  • 12,111
  • 21
  • 91
  • 136
wendy
  • 161
  • 3
  • 14
  • 1
    possible duplicate of [Access is denied when attaching a database](http://stackoverflow.com/questions/2330439/access-is-denied-when-attaching-a-database) – Gary W Mar 06 '14 at 11:57
  • @GaryW thanks that thread helps – wendy Mar 06 '14 at 12:14

1 Answers1

1

There may be two solutions for that

1) You may start the sql server management studio application by right clicking and selecting the "Run as administrator" to run it and then try to attach the database in D:

1) You may put your database in the default directory of your database like C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA etc ....

haroon
  • 66
  • 3
  • 11