Re: object can't be accessed unless owner is specified - SQL 2000
- From: THE.Ronald <THERonald@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 14 Jul 2009 05:34:01 -0700
"Erland Sommarskog" wrote:
The you did the restore, and now the SELECT above would fail with error
208, Object not found. However, "SELECT ... FROM Sune.tbl" would fail.
The only reasonable explanation is that at this point Sune was the
database owner, and thus the login Sune mapped to dbo and had dbo
as its default schema.
Thx for the reply. Both did NOT fail, the qualfied query with the owner
worked.
Sune (continuing your example) was the database owner and owned the objects
as well. Sune wasn't mapped to anything (not even sa, which I thought was
weird but I have seen that, and our test env. reflected that and it still
worked. Regardless I mapped it to sa and that didn't fix it). The
default database was the correct user database.
Does SQL 2000 actually have schemas ? It mimics them, but I didn't think
there was a place to define that.
We fixed it (sorry, I should've included that in my original post) by
transfering the objects to owner dbo, and creating a new login / user and
mapped that to dbo itself.
.
- Follow-Ups:
- 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
- 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
- object can't be accessed unless owner is specified - SQL 2000
- Prev by Date: Preventing access to Process Info
- Next by Date: RE: Preventing access to Process Info
- 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
|