Home Microsoft SQL Server DigiMailing iRN Contact


  No additional text.

CREATE VIEW sys.server_permissions AS
	SELECT p.class, cn.name AS class_desc,
		p.id AS major_id,
		p.subid AS minor_id,
		p.grantee AS grantee_principal_id,
		p.grantor AS grantor_principal_id,
		p.type, permission_name(p.class, p.type) AS permission_name,
		p.state, sn.name AS state_desc
	FROM master.sys.sysprivs p
	LEFT JOIN sys.syspalvalues cn ON cn.class = 'UNCL' AND cn.value = p.class
	LEFT JOIN sys.syspalnames sn ON sn.class = 'PRST' AND sn.value = p.state
	WHERE p.class >= 100
		AND (has_access('LG', p.grantee, p.grantor) = 1 OR has_access('CT', p.class, p.id) = 1)
		AND p.type <> 'EXTR' -- exclude trusted execute permission

Last revision 2008RTM
See also

  sp_grant_publication_access (Procedure)
sp_MSaddlogin_implicit_ntlogin (Procedure)


  Query a named instance
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
Zoekmachine optimalisatie
SQL Servers hidden objects
Flash in Ajax
De hype die AJAX heet
Barcode scannen
MySQL; Gratis, makkelijk en snel!
sIFR; de combinatie tussen HTML en Flash