How to resolve MS SQL Error for Event ID 119 and 28005 ?

Louis Leung 0 Reputation points
2023-07-06T01:13:37.06+00:00

We have 2 MS SQL 2014 Servers running on Windows Server 2016. We are running mirror mode for our application database. However we found frequently we got the following errors:

Event Id : 119

Report Server Windows Service has not been granted access to the catalog content

Event Id: 28005

An exception occurred while enqueueing a message in the target queue. Error 15517, State 1, Cannot execute as database principal because the principal "dbo" does not exist, this type of principal cannot be impersonated, or you do not have permission

Although those errors seem not affect our application but they appeared evey day and fill up our log.

Please advice how to resolve it

SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
3,061 questions
SQL Server | Other
{count} votes

1 answer

Sort by: Most helpful
  1. LiHongMSFT-4306 31,566 Reputation points
    2023-07-06T03:03:59.94+00:00

    Hi @Louis Leung

    Event Id : 119 Report Server Windows Service has not been granted access to the catalog content

    Please refer to this thread: Report Server Windows Service has not been granted access to the catalog content.

    Event Id: 28005 An exception occurred while enqueueing a message in the target queue. Error 15517, State 1, Cannot execute as database principal because the principal "dbo" does not exist, this type of principal cannot be impersonated, or you do not have permission

    The easiest way to correct the error is to use ALTER AUTHORIZATION on the databases which have the NULL login match for dbo. It's as simple as:

    ALTER AUTHORIZATION ON DATABASE::Example TO sa;
    

    Please refer to this blog for more details: Troubleshooting SQL Server Error 15517.

    Best regards,

    Cosmog Hong


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our Documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.