Re: object can't be accessed unless owner is specified - SQL 2000
- From: Erland Sommarskog <esquel@xxxxxxxxxxxxx>
- Date: Wed, 15 Jul 2009 22:04:26 +0000 (UTC)
THE.Ronald (THERonald@xxxxxxxxxxxxxxxxxxxxxxxxx) writes:
Sune was not mapped to dbo - nothing at all was, not even sa (odd, I
know, but I've seen it - this is a vendor database). That was true
before and after the restore. Sune had the database role of dbo and was
the schema before and after as well.
The 3rd party backup/recovery software we use (the account) became the
database owner, but not dbo. That I think, is important.
Hm, what happens is that there is a mismatch between the sid for uid = 1
in sysusers in the database, and the owner sid in the database. I don't
really recall this causing problems in SQL 2000. But it is a common
problem when you have restored a database on a different server with
SQL 2005, and you want to create database diagrams in that database.
(Probably in more situations as well.)
The workaround is usually to change the database owner. I think this
should have worked in your case as well.
--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx
Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.
- Follow-Ups:
- Re: object can't be accessed unless owner is specified - SQL 2000
- From: THE.Ronald
- Re: object can't be accessed unless owner is specified - SQL 2000
- References:
- object can't be accessed unless owner is specified - SQL 2000
- From: THE.Ronald
- Re: object can't be accessed unless owner is specified - SQL 2000
- From: Erland Sommarskog
- Re: object can't be accessed unless owner is specified - SQL 2000
- From: THE.Ronald
- Re: object can't be accessed unless owner is specified - SQL 2000
- From: Erland Sommarskog
- Re: object can't be accessed unless owner is specified - SQL 2000
- From: THE.Ronald
- object can't be accessed unless owner is specified - SQL 2000
- Prev by Date: Re: sql server - firewall
- Next by Date: Securing SQL access via the Internet
- Previous by thread: Re: object can't be accessed unless owner is specified - SQL 2000
- Next by thread: Re: object can't be accessed unless owner is specified - SQL 2000
- Index(es):
Relevant Pages
|