computerstreber
asked on
TSQL Find Table Permissions
I have written the following query to verify the tables which a user has access to. However, I can't seem to figure out what system table or system view in SQL Server 2000 has the type of permission the user has on the table, i.e. select. Can anyone point me in the write direction?
SELECT OBJECT_NAME(sp.ID)
FROM syspermissions AS sp
INNER
JOIN sysusers AS su
ON sp.grantee = su.uid
WHERE su.name = 'user'
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Open in new window