SBendBuckeye
Programmer
Hello all,
I am using the following T-Sql to retrieve permissions granted to a given user.
One of the columns returned is Action. To what table do I link to get the action name (eg Execute)? Thanks in advance for any ideas and/or suggestions!
I am using the following T-Sql to retrieve permissions granted to a given user.
Code:
-- Return permissions granted to specified user.
SELECT sp.*, so.[Name]
FROM sysProtects sp inner join
sysObjects so on sp.id = so.id
WHERE sp.uid = USER_ID('UserName')