SQL Server attach Database failure error Number: 5120 solution

Source: Internet
Author: User

An additional database failure occurred while attaching the database, the error number is 5120, and has already encountered this problem two times. Write a solution today.

There are two methods, very simple:

1. Set the permissions of the folder where the MDF file is located, right-click on the folder--Properties--Secure,:

Set according to the diagram, note that authenticated user's permissions.

2. Do not log in to your database with SA and use Windows Authentication to sign in to your database and attach it.

PS: The first method sometimes doesn't work, it takes two to try. Recently encountered a bottleneck do not know how to continue to learn, in the framework of a class of things, but feel good virtual, after all, just see not really hands, do not know when you can write a nearly point of the framework. Hope to get out of this bottleneck as soon as possible.

SQL Server attach Database failure error Number: 5120 solution

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.