Groups for dbo
From: Robert Morley (rmorley_at_magma.ca)
Date: 06/03/05
- Next message: Craig Daniel: "RE: Need help with xp_cmdshell and proxy accout"
- Previous message: Phil H: "OLEDB Link Server to FoxPro"
- Next in thread: Dan Guzman: "Re: Groups for dbo"
- Reply: Dan Guzman: "Re: Groups for dbo"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 3 Jun 2005 14:01:50 -0400
Hi everyone,
I'm still fairly new to SQL Server, and I'm trying to figure something out:
When I log on to SQL Server with Integrated Security (SSPI), it figures out
that I'm actually the database owner and logs me in as dbo instead (i.e.,
user_name = 'dbo'; suser_sname = '<our domain>\robert.morley').
Under our current settings, that make no difference to me whatsoever, but
looking ahead, I'm wondering about code like the following:
IF Is_Member ('My Group Name') SET SomeFlag = 1
It would seem that you can't change the group membership for dbo, so if you
have a custom group, Is_Member() always returns 0.
I can see a couple of ways to work around this problem (changing the
database owner to some other account, creating a SQL Login just for me and
using that, etc.), but they all seem kinda messy solutions. Does anybody
have any other suggestions as to how to work around this problem? If I
could get SQL Server to not map my login to dbo, that would be the ideal
solution, but adding dbo to groups would be sufficient as well.
If changing the database owner is the best way to do that, which I don't
terribly like but it'll do, then how do I go about doing that? I can
probably find it in the docs somehwere, but I don't think I know how
off-hand.
Thanks,
Rob
- Next message: Craig Daniel: "RE: Need help with xp_cmdshell and proxy accout"
- Previous message: Phil H: "OLEDB Link Server to FoxPro"
- Next in thread: Dan Guzman: "Re: Groups for dbo"
- Reply: Dan Guzman: "Re: Groups for dbo"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|