Reporting permissions on specific tables  Using views and stored procedures as security mechanisms

Chapter 17: Managing User Permissions

Reporting permissions on specific columns

Use sp_column_privileges to return information about permissions on columns in a table. The syntax is:

sp_column_privileges table_name [, table_owner 
     [, table_qualifier [, column_name]]]

where:

Use null for parameters that you want to skip.

For example, this statement returns information about the pub_id column of the publishers table:

sp_column_privileges publishers, null, null, pub_id

For more information about the output of sp_column_privileges, see the Reference Manual.





Copyright © 2005. Sybase Inc. All rights reserved. Using views and stored procedures as security mechanisms

View this book as PDF