Solved

SQL Server 2012 error while attaching database

Posted on 2014-11-10
4
116 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 47

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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
sql server insert 12 30
VB.net and sql server 4 33
SQL Improvement  ( Speed) 14 26
Sql server, import complete table, using vb.net 9 33
Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
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…
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

785 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