Solved

SQL Server 2012 error while attaching database

Posted on 2014-11-10
4
109 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 45

Expert Comment

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

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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
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.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

707 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now