Translates the permissions bitmask returned by SQL Trace into a table of permissions names.
Applies to: SQL Server (SQL Server 2008 through current version).
The value returned in the permissions column of a SQL Trace is an integer representation of a bitmask used by SQL Server to calculate effective permissions. Each of the 25 kinds of securables has its own set of permissions with corresponding numerical values. sys.fn_translate_permissions translates this bitmask into a table of permissions names.