Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_table_privileges_rowset2

  No additional text.


Syntax

create procedure sys.sp_table_privileges_rowset2
(
    @table_schema       sysname = null,
    @grantor            sysname = null,
    @grantee            sysname = null
)
as

-- copy & pasted from version 1 of the SProc and removed checks for 1st parameter !

    select
        GRANTOR         = s_tpv.GRANTOR,
        GRANTEE         = s_tpv.GRANTEE,
        TABLE_CATALOG   = s_tpv.TABLE_CATALOG,
        TABLE_SCHEMA    = s_tpv.TABLE_SCHEMA,
        TABLE_NAME      = s_tpv.TABLE_NAME,
        PRIVILEGE_TYPE  = s_tpv.PRIVILEGE_TYPE,
        IS_GRANTABLE    = s_tpv.IS_GRANTABLE
    from
        sys.spt_table_privileges_view s_tpv
    where
        (@table_schema is null or @table_schema = s_tpv.TABLE_SCHEMA) and
        (@grantee is null or @grantee = s_tpv.GRANTEE) and
        (@grantor is null or @grantor = s_tpv.GRANTOR)
    order by 4,5,6,1,2

 
Last revision 2008RTM
News

  Query a named instance
Sybase+ASE+silent+install
SQL 2008 R2
Deprecated procedures in SQL2008
Reporting Services item-level role definitions
Create all your missing indexes
Converting datetime field
Start MSSQL Server Profiler at time
Replicating MSSQL Server views
Exploring Microsoft Sharepoint
The OLE DB provider "SQLNCLI10" for linked server indicates.
Mobile solar charger
Oracle to SQL Server replication
Cannot insert the value NULL into column
Undocumented Microsoft SQL Server 2008
VMware
Zoekmachine optimalisatie
SQL Servers hidden objects
FckEditor
Flash in Ajax
De hype die AJAX heet
Barcode scannen
MySQL; Gratis, makkelijk en snel!
PHP
sIFR; de combinatie tussen HTML en Flash