Find out what permission
-
2012年3月2日 14:23
Hi Team,
Today morning one of the user i have given some permissions datareader etc..
How can we find out xxx user what permissions & What Roles he owns
How can we check please suggest me.
I have tried in this way.
SELECT
SDP.PRINCIPAL_ID AS [Principal ID],
SDP.NAME AS UserName,
SDP.TYPE_DESC AS UserType,
SSP.NAME AS LoginName,
SSP.TYPE_DESC AS LoginType
FROM sys.database_principals SDP
INNER JOIN sys.server_principals SSP
ON SDP.PRINCIPAL_ID = SSP.PRINCIPAL_ID
GOo/p:
6 xxxx SQL_USER setupadmin SERVER_ROLE
Today i have give access abc database as data_reader, i have seen in user--> property--> usermappings --database name here it is not showing any thing.
I have checked that user account is connecting to the server after that
click the database it is giving errror
The database AdminMig is not accessible. (ObjectExplorer)
Tx
subu
- 編集済み subu999 2012年3月2日 14:35
すべての返信
-
2012年3月2日 14:47
-
2012年3月5日 9:13モデレータ
Hi subu,
It seems that the user you used to access abc database has not been grant data_reader permission successfully, it even has no public permission, please have a check.
For quering permissions assigned to users and roles, you can also refer to this thread: http://social.msdn.microsoft.com/Forums/en/sqlsecurity/thread/1e20a9e4-a6d1-40a0-ab07-bd48cda4754f
Best Regards,
Iric
Please remember to mark the replies as answers if they help and unmark them if they provide no help.- 回答としてマーク Iric WenModerator 2012年3月12日 9:17

