Solved

SQL Server 2012 error while attaching database

Posted on 2014-11-10
4
120 Views
Last Modified: 2014-11-10
Good morning,

I get an error trying to attach AdventureWorks database to SQL Server 2012. I first logged in as admin with server control permissions and then I logged in as sa.
Logging as SA tells me that the operating system (Windows 8) is denying me access, although i am trying to log using SQL authentication.

ThanksSQl-Server.jpg
0
Comment
Question by:adamtrask
4 Comments
 
LVL 24

Expert Comment

by:Phillip Burton
ID: 40432401
Is the file actually in that folder?
0
 
LVL 48

Expert Comment

by:Vitor Montalvão
ID: 40432456
Would be interesting to see the screen in the background of that one.
0
 
LVL 15

Accepted Solution

by:
Vikas Garg earned 500 total points
ID: 40432624
Hello,

GO to the folder  where you have stored mdf file. select file-> Right click ->click on . give full permissions to file for logged in user Security.
0
 

Author Closing Comment

by:adamtrask
ID: 40432809
Very good
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question