SQL Flow Field Guide

sys.sp_table_privileges_ex

Check SQL Server version support in the source

Returns privilege information about the specified table from the specified linked server.

What changes

Input
Returns privilege information about the specified table from the specified linked server.
Output or change
No write is stated in the Microsoft summary.

Syntax at a glance

sys.sp_table_privileges_ex
    [ @table_server = ] N'table_server'
    [ , [ @table_name = ] N'table_name' ]
    [ , [ @table_schema = ] N'table_schema' ]
    [ , [ @table_catalog = ] N'table_catalog' ]
    [ , [ @fUsePattern = ] fUsePattern ]
[ ; ]

Work example

Returns privilege information about the specified table from the specified linked server.

Read the parameter list and identify the provider operation it supports. Do not call it directly from application T-SQL.

Check your work Why does Microsoft limit direct calls to this procedure?

Open Microsoft Learn for full syntax, permissions, and details for your version.