Check the Windows event log.
- Event Viewer
- Windows Logs
- Application
- Look for warning / error messages related to any of the following:
- Read the error.
Here is an example.

Here are some of the errors and permissions we encountered.
It is impossible to determine if the owner (...) of the job ... has access to the server (reason: could not get information about the Windows NT group / user "...", error code 0x54b. [SQLSTATE 42000] (Error 15404)) .
We had to make sure that during the copy database wizard, the account with which we were logged in to the target server had the appropriate rights and that these privileges were available (in the end we used the sa account). This resolved the above warning.
Access is denied
We needed to make sure that the local SQL Server agent had the appropriate rights on the local server. Thus, we made the registration of SQL Server Agent as local. This worked because the Local System is sysadmin in our instance of SQL Server.
Failed to read metadata, possibly due to insufficient permissions.
We needed to grant additional rights to the Local System account.
- From SSMS
- Right-click the server name and click Properties
- Click on the Permissions tab.
- Click "Local User System"
- In explicit permissions, the permission "View any definition" is available almost below. See if this will work.
xp_regread () returned error 5, 'Access denied.'
This stopped us and we asked another question: xp_regread () returned error 5, "Access denied."
source share