Haha: sqlserver2008 The workaround for operating system error 5 (Access denied) error 5012 when attaching a database

Source: Internet
Author: User

The teacher said: No matter what, wrong, first laugh three. If more people, in the heart also want to laugh three. HA haha!!!

After the system has just been re-installed, and then want to learn. Install the sqlserver2008 database yourself, and then you want to attach the previous database. But when I had a little certainty about the button, there was this error.

I looked at this picture and I wondered about the big day. How to solve all can not solve.

I thought it was the reason for the logon method, and then switched the login mode: Hybrid authentication method (SQL server Authentication, logon mode changed to "Windows Authentication mode.") But it's not going to work out.

I looked up the information on the Internet. Finally solved.

In order to be someone who may have encountered such a thing.

I have to share my story with you. Hope to help everyone, at the same time, if there are good views we have a lot of exchanges Ah!

Solution:

Select All Programs -sql Server 2008-Configuration Tools -Select SQL Server Configuration Manager orSQL Server Config manager,

Open theSQL Server Configuration Manager config interface, select SQL Server 20058 services on the left , and right-click on the right sideof the SQL Server attribute, change the network service to the Local system in the built -in account,

Click "Restart" and then attach the database is OK.

The main configuration process is as follows:

1. Open the "SQL Server configuration Manager" Config interface:

2. Select the SQL Server (SQL Server) option, and right-click:

3. Select "Local System":

4. Select "Restart":

5. Configuration success:

Haha: sqlserver2008 The workaround for operating system error 5 (Access denied) error 5012 when attaching a database

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.