Solution to database attaching failure

Source: Internet
Author: User

Error 15105: I found some solutions from the Internet, which generally refer to insufficient file permissions,

Of course, you must have the permission to attach the database to perform operations.

Solution 1: grant the Full Control permission to the MDF file. If you do not know which user can go to the configuration center of SQL Server

However, I cannot use the above method.

Solution 2: Try another user. My original database is logged on with sa. I tried to log on with sa and the append was successful !~

If you log on to the server using sa repeatedly but fail to log on, you may not have the permission.

You can set the permission in the logon user option to Allow logon.

You can set the Authentication Mode on the server. You need to select the hybrid logon mode.

 

In addition, you can try the above method to attach a database with a lower version to a later version.

In fact, I personally prefer to generate scripts to export structures and data.

Here you can choose to export with data.

Memo !!!!

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.