The attach database failed for server "ZHHB-PC". (MICROSOFT.SQLSERVER.SMO)

Source: Internet
Author: User

The attach database failed for server "ZHHB-PC". (MICROSOFT.SQLSERVER.SMO)

------------------------------
For help information, click: Http://go.microsoft.com/fwlink? prodname=microsoft+sql+server&prodver=10.50.1600.1+ ((KJ_RTM). 100402-1540+) &evtsrc= Microsoft.sqlserver.management.smo.exceptiontemplates.failedoperationexceptiontext&evtid= Attaching a database +server& linkid=20476

This error finally found the answer.

1. Copy the attached file to the SQL Server default Data directory and the attachment will succeed; (Most important * * * *)

 2. When signing in, select "Windows Authentication" instead of "SQL Server Authentication", even if your login account is sa; 3. If you must use SQL Server authentication, change the permissions of your login account to have full operation permissions on the file you want to attach; 4. Change the account login identity of the SQL Server service from the Network service to the Local service;

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.