问题:

UpdateUptimeRegKey: Operating system error 5(拒绝访问。) encountered.

方法:

It looks like the SQL Server service account doesn't have the needed registry permissions.  This may be because the account was changed directly using service control manager instead of using the SQL Server Configuration tool.

Try changing the SQL Server service account using the SQL Server Configuration tool to another account temporarily and then back to the desired one and restart SQL Server.  This should assign the permissions the service account requires.

It looks like the SQL Server service account doesn't have the needed registry permissions.  This may be because the account was changed directly using service control manager instead of using the SQL Server Configuration tool.

Try changing the SQL Server service account using the SQL Server Configuration tool to another account temporarily and then back to the desired one and restart SQL Server.  This should assign the permissions the service account requires.

本地用户登录或者用户权限设定完全!!!