Re: Event ID 28005; Error 15517



Jan,

If this database was restored from another server, the login that is the
database owner (and therefore the login that becomes dbo) does not exist on
the new server. If that is it, try changing the database owner by running:

ALTER AUTHORIZATION ON DATABASE <dbname> TO <loginname>

Even if the owner is a login (other that 'sa') with the same name on both
machines, if the SID is different they do not actually match up, no matter
what the SSMS makes it look like.

RLF

"Jan" <jankenter@xxxxxxxxxxx> wrote in message
news:6337D283-F24A-47B5-8FC6-D99C013E6BCD@xxxxxxxxxxxxxxxx
Hello.
I have a problem with SQL Server 2005 SP2:

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

Can you help me about this problem?
Thank you.


.



Relevant Pages

  • Re: Roles & Users
    ... "John Bell" wrote in message ... >> I think just saying things like 'dbo is the database owner' can lead to ... >> It is the user name assumed by the login listed in sysdatabases as the ...
    (microsoft.public.sqlserver.server)
  • Re: Remove/Add BUILTINAdministrators 2000 sp4
    ... I have seen a windows group referred to as a LOGIN for sql server in the ... the databases, and so it makes it dbo on all databases again. ...
    (microsoft.public.sqlserver.security)
  • Re: Remove/Add BUILTINAdministrators 2000 sp4
    ... Server, it some how knows that on this server, it use to be the dbo in all ... the databases, and so it makes it dbo on all databases again. ... via this LOGIN ...
    (microsoft.public.sqlserver.security)
  • Re: dbcreator and restore?
    ... I also created a backup after the login was set to ... dbo and that is the backup that i successfully restored. ... >SQL Server MVP ...
    (microsoft.public.sqlserver.security)
  • Re: Remove/Add BUILTINAdministrators 2000 sp4
    ... Could not a win group be a LOGIN to SQL Server? ... the databases, and so it makes it dbo on all databases again. ...
    (microsoft.public.sqlserver.security)