Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8036035
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T02:29:07+00:00 2026-06-05T02:29:07+00:00

I am trying to attach a database in SQL Server 2008 and I have

  • 0

I am trying to attach a database in SQL Server 2008 and I have .mdf file of database but I am getting an exception of

Attach database failed for Server ‘Bilal-PC’. (Microsoft.SqlServer.Smo)

Unable to open the physical file "E:\Intelliscence\Backups\test (2011-07-19)\Database\QBankDB.mdf". Operating system error 5: "5(Access is denied.)". (Microsoft SQL Server, Error: 5120)

I searched the solution of this problem and found one solution of access rights of database file but database file has already full control access rights. Now I want to attach this database or want to get script of this database. But How?

I know this is a duplicate question but all the solutions given in answers are not working for me that’s why I am posting this question.

Please help me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T02:29:09+00:00Added an answer on June 5, 2026 at 2:29 am

    The error message seems pretty straightforward: Access is denied. You need to make sure the SQL Server service account has adequate permissions on E:\Intelliscence\Backups\QBank (2011-07-19)\Database\, or move the MDF/LDF files for the data/log folders for the instance (where this shouldn’t be a problem).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to attach my mdf files to SQL server (using windows XP)
I am trying to attach a database in sql 2005 but I get an
I am newbie in Sql Server.I am trying to attach AdventureWorks database with Sql
I'm trying to move my database.mdf file from a development environment to a SQL
I was trying to attach to Exchange Server database file using Managed Esent API
I'm trying to attach my database on a server that is running SQL2005 and
I'm new to SQL. I have created a new database in SQL Server Management
I added an .mdf file through Visual Studio. I am trying to attach it
I'm trying to attach an external mdf file to my SQLEXPRESS instance from within
I am trying to connect to a local host sql server 2008 express server.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.