Access denied (MicrosoftSQL-DMOODBCSQL status: 42000) Solution

Source: Internet
Author: User
Tags configuration settings
Error 22002: RegCreateKeyEx () Error 5 returned, Access Denied (MicrosoftSQL-DMOODBCSQL status: 42000) SQLServer2000 in order to meet the minimum permission requirements, the start accounts of SQLServer and SQLAgent are usually changed to LocalWindowsUseraccount, later, I went to EnterpriseManagerconfig to set some configurations.

Error 22002: RegCreateKeyEx () Return Error 5, Access Denied (Microsoft SQL-DMO odbc SQL status: 42000) SQL Server 2000 to meet minimum permission requirements, generally, the SQL Server and SQL Agent Startup accounts are changed to the Local Windows User account, and then some configuration settings in Enterprise Manager config are modified.

Error 22002: RegCreateKeyEx () returned error 5, Access Denied (Microsoft SQL-DMO odbc SQL status: 42000)
SQL Server 2000
To meet the minimum permission requirements, both the SQL Server and SQL Agent Startup accounts are usually changed to Local Windows User accounts. This error message is displayed when you go to Enterprise Manager config for some configuration settings, go home and repeat the MCSE Training Kit-SQL Server 2000 System Administrator. It may be a problem with the Server code permission. It is fixed and provided for your reference.

[Status]
After changing the SQL Server startup account to a general local user account or domain user account,
Go to Enterprise Manager to set the SQL Server attribute (configuration) and set the SQL Server or SQL Server
This error message is displayed when [automatic start] is selected for the Agent.

[Cause]
You can use Enterprise Manager to modify the SQL Server startup account. Although the startup account can be automatically granted the necessary permissions, you must modify the logon file to exclude this error message.

[Solution]
1. Start the logon file editor.
2. Back up the logon file before modification
3. Locate the following locations
HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ MSSQLServer
If the name is an individual
HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ MSSQL $ InstanceName

HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ SQLSERVERAGENT
If the name is an individual
HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ SQLAgent $ InstanceName

4. Right-click the above Code and select [permission] to add a new set SQL Server startup account. The permission is set to [full control].
After the SQL Server is automatically started in the Enterprise Manager check box, the error message should no longer appear.

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.