The fn_my_permissions system function returns a list of the permissions effectively granted to the principal on a securable, in our case, the database Northwind. So running the query shown above, will display the permission of the current connected principal
Similarly to view permissions of the principal on a specific table, use this query
If you want to view the permissions of a different principal user, use
EXECUTE AS LOGIN = 'USERNAME'
and then execute the query.
Did you like this post?
|subscribe via rss||subscribe via e-mail|
|print this post||follow me on twitter|