Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.server_event_sessions

  No additional text.


Syntax
CREATE VIEW sys.server_event_sessions AS
	SELECT
		event_session_id			= c.id,
		name						= convert(sysname, c.name) collate database_default,
		event_retention_mode		= char(v2.subobjid), -- EMDXEEventRetention
		event_retention_mode_desc	= xeer.name collate database_default,
		max_dispatch_latency		= convert(INT, v1.value),
		max_memory					= v1.subobjid,
		max_event_size				= v1.valnum,
		memory_partition_mode		= char(v2.valnum), -- EMDXEMemoryPartition
		memory_partition_mode_desc	= xemp.name collate database_default,
		track_causality				= convert(bit, c.status & 1), -- XE_SESSION_STATUS_BIT_CAUSALITY
		startup_state				= convert(bit, c.status & 2)  -- XE_SESSION_STATUS_BIT_AUTOSTART
	FROM master.sys.sysclsobjs c
	LEFT JOIN master.sys.sysobjvalues v1 ON
		v1.valclass = 90 AND	-- SVC_XE_SESSION_PROP_1
		v1.objid = c.id
	LEFT JOIN master.sys.sysobjvalues v2 ON
		v2.valclass = 91 AND	-- SVC_XE_SESSION_PROP_2
		v2.objid = c.id
	LEFT JOIN sys.syspalnames xeer ON xeer.class = 'XEER' AND xeer.value = char(v2.subobjid)
	LEFT JOIN sys.syspalnames xemp ON xemp.class = 'XEMP' AND xemp.value = char(v2.valnum)
	WHERE c.class = 62			-- SOC_XESESSION
	AND has_access ('ES', 0) = 1

 
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