Re: Alter User for domain user
- From: "Tom Moreau" <tom@xxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 7 May 2008 21:45:27 -0400
In the end, a default schema really isn't that important - to me, anyway.
Why not explicitly schema-qualify everything you create and use? This way,
nothing is left to chance.
My $0.02
--
Tom
----------------------------------------------------
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
SQL Server MVP
Toronto, ON Canada
https://mvp.support.microsoft.com/profile/Tom.Moreau
"David Walker" <none@xxxxxxxx> wrote in message
news:Xns9A97A6658C92DavidWalker@xxxxxxxxxxxxxxxx
Erland Sommarskog <esquel@xxxxxxxxxxxxx> wrote in
news:Xns9A98B2B8C6EYazorman@xxxxxxxxx:
David Walker (none@xxxxxxxx) writes:
I see that the IS group, which I am a member of, has the sysadmin
fixed role on the server. Maybe that's the problem.
Yes, as Tom said. This is exactly the heart of the matter. If you
are sysadmin on server level, you are always dbo in the database.
You can easily verify this by running this statement in the database
of your choice:
SELECT USER
Oh, cr*p. I don't WANT to be dbo. But I want access to DO everything,
while still having a default non-dbo schema.
WHY exactly is the default schema ignored for anyone who is a member of
a Windows group that has the sysadmin role? This seems like kind of an
arbitrary thing.
Since my username is defined separately (from the group) in the
database, and in the server, I wish SQL would ignore the fact that I am
also part of a group that has the sysadmin role.
Even if I have the sysadmin role, I should be able to set my default
schema and not have it ignored. I suppose that's an enhancement request
(but it seems arbitrary).
Oh wise one, do you have any insight on that? (I'm serious, not being
sarcastic here...)
Thanks.
David Walker
.
- Follow-Ups:
- Re: Alter User for domain user
- From: David Walker
- Re: Alter User for domain user
- From: Erland Sommarskog
- Re: Alter User for domain user
- References:
- Alter User for domain user
- From: David Walker
- Re: Alter User for domain user
- From: Tom Moreau
- Re: Alter User for domain user
- From: David Walker
- Re: Alter User for domain user
- From: Tom Moreau
- Re: Alter User for domain user
- From: David Walker
- Re: Alter User for domain user
- From: Erland Sommarskog
- Re: Alter User for domain user
- From: David Walker
- Re: Alter User for domain user
- From: Erland Sommarskog
- Re: Alter User for domain user
- From: David Walker
- Alter User for domain user
- Prev by Date: Re: Alter User for domain user
- Next by Date: Re: How to disable dangerous extended stored procedures In SQL2005
- Previous by thread: Re: Alter User for domain user
- Next by thread: Re: Alter User for domain user
- Index(es):
Relevant Pages
|
|