Access denied when trying to attach DB

Posted on 2014-08-26
Last Modified: 2014-09-02
I'm trying to attach a database. But when I select the MDF file I get access denied.
It's not attached/listed in Management Studio.
I can't even copy or move the MDF file.
Any ideas?
Question by:JElster
    LVL 75

    Accepted Solution

    if you cant access the drive where the file is  from ssms, you need to attatch that drive to the sql server cluster and try again,
    LVL 1

    Author Comment

    I can access the file and drive.. when I try to attach I get Access denied
    LVL 44

    Assisted Solution

    by:Vitor Montalvão
    You are sure that MDF is the one you want? Because if the file it's in use by other database you'll got the access denied error.
    LVL 1

    Author Comment

    I think the current user I'm logged in as , does not have permissions

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    There are some very powerful Data Management Views (DMV's) introduced with SQL 2005. The two in particular that we are going to discuss are sys.dm_db_index_usage_stats and sys.dm_db_index_operational_stats.   Recently, I was involved in a discu…
    Introduction: When running hybrid database environments, you often need to query some data from a remote db of any type, while being connected to your MS SQL Server database. Problems start when you try to combine that with some "user input" pass…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    759 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

    11 Experts available now in Live!

    Get 1:1 Help Now