June 11, 2012

sp_table_privileges_rowset_rmt (Transact-SQL MetaData) Definition

Please note: that the following source code is provided and copyrighted by Microsoft and is for educational purpose only.
The meta data is from an SQL 2012 Server.

I have posted alot more, find the whole list here.

Goto Definition or MetaData

Definition:

sys.sp_table_privileges_rowset_rmt(nvarchar @table_server
, nvarchar @table_catalog
, nvarchar @table_name
, nvarchar @table_schema
, nvarchar @grantor
, nvarchar @grantee)

MetaData:

   
create procedure sys.sp_table_privileges_rowset_rmt
(
@table_server sysname,
@table_catalog sysname = null,
@table_name sysname = null,
@table_schema sysname = null,
@grantor sysname = null,
@grantee sysname = null
)
as
select
GRANTOR,
GRANTEE,
TABLE_CATALOG,
TABLE_SCHEMA,
TABLE_NAME,
PRIVILEGE_TYPE,
IS_GRANTABLE
from
sys.fn_remote_table_privileges (@table_server,
@table_catalog,
@table_schema,
@table_name,
@grantor,
@grantee)
order by 3,4,5,6,1,2

No comments:

Post a Comment

Total Pageviews