SQL ORACLE
One Orange Chip
Points: 27807
More actions
November 7, 2006 at 8:37 am
#69438
Any input will be greatly appreciated.
Aaron Ingold
SSCrazy Eights
Points: 9070
November 7, 2006 at 9:42 am
#670318
sp_helprolemember will list all role members in the current database. sp_helpsrvrolemember will do it at the server level.
November 7, 2006 at 9:49 am
#670324
I found the way.
EXEC sp_MSForEachDB 'USE ? SELECT name FROM sysusers WHERE sid = 0x01 AND name <> ''dbo'''
But yours is better.
November 7, 2006 at 10:27 am
#670338
I'd be careful of that approach. I don't think it will give you all appropriate members of db_owner.
At least its failing to find me on both my SQL 2000 and 2005 boxes.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply