Is there a way to identify which accounts are shared using an SQL query.

Thanks

Kim Cannon

Re: Is there a way to identify shared accounts using SQL by daniel

daniel
Thu Jan 13 22:00:34 CST 2005

Sharing information is stored in the PrincipalObjectAccess table.

"Kim Cannon" <KimCannon@discussions.microsoft.com> wrote in message
news:A6F89502-A9A3-45B6-AD5F-B89B3696E3CE@microsoft.com...
> Is there a way to identify which accounts are shared using an SQL query.
>
> Thanks
>
> Kim Cannon



Re: Is there a way to identify shared accounts using SQL by Kb

Kb
Mon Jan 17 23:11:05 CST 2005

It should also be pointed out that the PrincipalObjectAccess table is for
display purposes only. When an account is shared, an entry is made into this
table and the sharees SID is added to the account's security descriptor. The
security desciptor is used by the security service to determine if a user has
share access to a record. So, adding an entry in the POA table at the db
level is not a way you could share out an account programmatically.

"daniel" wrote:

> Sharing information is stored in the PrincipalObjectAccess table.
>
> "Kim Cannon" <KimCannon@discussions.microsoft.com> wrote in message
> news:A6F89502-A9A3-45B6-AD5F-B89B3696E3CE@microsoft.com...
> > Is there a way to identify which accounts are shared using an SQL query.
> >
> > Thanks
> >
> > Kim Cannon
>
>
>