Home
Microsoft SQL Server
  - System tables
  - Procedure
    - Change Data Capture
    - Constraints
    - Files & folders
    - Fulltext (EFTS)
    - Index
    - Login & Users
    - OleDb
    - Oracle
    - Replication
    - Scripting
    - Server
    - Spatial geo
    - SQL Server Agent
    - Transaction
    - Trigger
    - XML
    - Uncategorized
  - Views
    - DMV
  - Functions
DigiMailing
Contact
The name of the object you are looking for
database_audit_specification_details

This is a view in the mssqlsystemresource database.
CREATE VIEW sys.database_audit_specification_details AS
	SELECT
		database_specification_id	= asp.id,
		audit_action_id 			= saa.type, -- EDiskAuditActionType
		audit_action_name 			= convert(nvarchar(60), 
											audit_action_property('name', saa.class, saa.type)),
		class 						= saa.class, -- EMDPermissionClass
		class_desc				 	= n.name,
		major_id				 	= saa.id,
		minor_id				 	= saa.subid,
		audited_principal_id		= saa.grantee,
		audited_result			 	= convert(nvarchar(60), 'SUCCESS AND FAILURE'),
		is_group				 	= sysconv(bit, 
										audit_action_property('is_group', saa.class, saa.type))
	FROM
		sys.sysclsobjs asp INNER JOIN 
		sys.sysaudacts saa ON
			(
				saa.audit_spec_id = asp.id
			) LEFT JOIN
		sys.syspalvalues n ON 
			(
				n.class = 'UNCL' AND
				n.value = saa.class
			)
	WHERE
		asp.class = 65 AND -- SOC_SECAUDITSPEC
		asp.type = 'DA'
		AND has_access('DA', 0) = 1 -- catalog security check

Questions

Feel free to contact.
Email answer to
Question

Type this code
See also


Nieuws

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