Returns privilege information for all columns in a table or view.
sp_table_privileges table_name [, table_owner [, table_qualifier]]
is the name of the table. The use of wildcard characters in pattern matching is not supported.
is the name of the table owner. The use of wildcard characters in pattern matching is not supported. If you do not specify the table owner, sp_table_privileges looks for a table owned by the current user and then for a table owned by the Database Owner.
is the name of the database. This can be either the current database or NULL.
The results set for sp_table_privileges is:
Column |
Datatype |
Description |
---|---|---|
table_qualifier |
varchar(32) |
The name of the database. This field can be NULL. |
table_owner |
varchar(32) |
|
table_name |
varchar(32) |
NOT NULL. |
grantor |
varchar(32) |
NOT NULL. |
grantee |
varchar(32) |
NOT NULL. |
privilege |
varchar(32) |
Identifies the table privilege. May be one of the following:
|
is_grantable |
varchar(3) |
Indicates whether the grantee is permitted to grant the privilege to other users. The values are YES, NO, and NULL. |
Any user can execute sp_table_privileges.
Copyright © 2005. Sybase Inc. All rights reserved. |