RequestID - property in ROOT\Microsoft\SqlServer\ServerEvents\MSSQLSERVER namespace

RequestID in other namespaces

List of classes with RequestID local property in ROOT\Microsoft\SqlServer\ServerEvents\MSSQLSERVER namespace

propertyClassOrigin
RequestIDASSEMBLY_LOADASSEMBLY_LOAD
RequestIDAUDIT_ADD_DB_USER_EVENTAUDIT_ADD_DB_USER_EVENT
RequestIDAUDIT_ADD_LOGIN_TO_SERVER_ROLE_EVENTAUDIT_ADD_LOGIN_TO_SERVER_ROLE_EVENT
RequestIDAUDIT_ADD_MEMBER_TO_DB_ROLE_EVENTAUDIT_ADD_MEMBER_TO_DB_ROLE_EVENT
RequestIDAUDIT_ADD_ROLE_EVENTAUDIT_ADD_ROLE_EVENT
RequestIDAUDIT_ADDLOGIN_EVENTAUDIT_ADDLOGIN_EVENT
RequestIDAUDIT_APP_ROLE_CHANGE_PASSWORD_EVENTAUDIT_APP_ROLE_CHANGE_PASSWORD_EVENT
RequestIDAUDIT_BACKUP_RESTORE_EVENTAUDIT_BACKUP_RESTORE_EVENT
RequestIDAUDIT_CHANGE_AUDIT_EVENTAUDIT_CHANGE_AUDIT_EVENT
RequestIDAUDIT_CHANGE_DATABASE_OWNERAUDIT_CHANGE_DATABASE_OWNER
RequestIDAUDIT_DATABASE_MANAGEMENT_EVENTAUDIT_DATABASE_MANAGEMENT_EVENT
RequestIDAUDIT_DATABASE_OBJECT_ACCESS_EVENTAUDIT_DATABASE_OBJECT_ACCESS_EVENT
RequestIDAUDIT_DATABASE_OBJECT_GDR_EVENTAUDIT_DATABASE_OBJECT_GDR_EVENT
RequestIDAUDIT_DATABASE_OBJECT_MANAGEMENT_EVENTAUDIT_DATABASE_OBJECT_MANAGEMENT_EVENT
RequestIDAUDIT_DATABASE_OBJECT_TAKE_OWNERSHIP_EVENTAUDIT_DATABASE_OBJECT_TAKE_OWNERSHIP_EVENT
RequestIDAUDIT_DATABASE_OPERATION_EVENTAUDIT_DATABASE_OPERATION_EVENT
RequestIDAUDIT_DATABASE_PRINCIPAL_IMPERSONATION_EVENTAUDIT_DATABASE_PRINCIPAL_IMPERSONATION_EVENT
RequestIDAUDIT_DATABASE_PRINCIPAL_MANAGEMENT_EVENTAUDIT_DATABASE_PRINCIPAL_MANAGEMENT_EVENT
RequestIDAUDIT_DATABASE_SCOPE_GDR_EVENTAUDIT_DATABASE_SCOPE_GDR_EVENT
RequestIDAUDIT_DBCC_EVENTAUDIT_DBCC_EVENT
RequestIDAUDIT_LOGINAUDIT_LOGIN
RequestIDAUDIT_LOGIN_CHANGE_PASSWORD_EVENTAUDIT_LOGIN_CHANGE_PASSWORD_EVENT
RequestIDAUDIT_LOGIN_CHANGE_PROPERTY_EVENTAUDIT_LOGIN_CHANGE_PROPERTY_EVENT
RequestIDAUDIT_LOGIN_FAILEDAUDIT_LOGIN_FAILED
RequestIDAUDIT_LOGIN_GDR_EVENTAUDIT_LOGIN_GDR_EVENT
RequestIDAUDIT_LOGOUTAUDIT_LOGOUT
RequestIDAUDIT_SCHEMA_OBJECT_ACCESS_EVENTAUDIT_SCHEMA_OBJECT_ACCESS_EVENT
RequestIDAUDIT_SCHEMA_OBJECT_GDR_EVENTAUDIT_SCHEMA_OBJECT_GDR_EVENT
RequestIDAUDIT_SCHEMA_OBJECT_MANAGEMENT_EVENTAUDIT_SCHEMA_OBJECT_MANAGEMENT_EVENT
RequestIDAUDIT_SCHEMA_OBJECT_TAKE_OWNERSHIP_EVENTAUDIT_SCHEMA_OBJECT_TAKE_OWNERSHIP_EVENT
RequestIDAUDIT_SERVER_ALTER_TRACE_EVENTAUDIT_SERVER_ALTER_TRACE_EVENT
RequestIDAUDIT_SERVER_OBJECT_GDR_EVENTAUDIT_SERVER_OBJECT_GDR_EVENT
RequestIDAUDIT_SERVER_OBJECT_MANAGEMENT_EVENTAUDIT_SERVER_OBJECT_MANAGEMENT_EVENT
RequestIDAUDIT_SERVER_OBJECT_TAKE_OWNERSHIP_EVENTAUDIT_SERVER_OBJECT_TAKE_OWNERSHIP_EVENT
RequestIDAUDIT_SERVER_OPERATION_EVENTAUDIT_SERVER_OPERATION_EVENT
RequestIDAUDIT_SERVER_PRINCIPAL_IMPERSONATION_EVENTAUDIT_SERVER_PRINCIPAL_IMPERSONATION_EVENT
RequestIDAUDIT_SERVER_PRINCIPAL_MANAGEMENT_EVENTAUDIT_SERVER_PRINCIPAL_MANAGEMENT_EVENT
RequestIDAUDIT_SERVER_SCOPE_GDR_EVENTAUDIT_SERVER_SCOPE_GDR_EVENT
RequestIDBITMAP_WARNINGBITMAP_WARNING
RequestIDDATABASE_MIRRORING_STATE_CHANGEDATABASE_MIRRORING_STATE_CHANGE
RequestIDERRORLOGERRORLOG
RequestIDEVENTLOGEVENTLOG
RequestIDEXCEPTIONEXCEPTION
RequestIDEXCHANGE_SPILL_EVENTEXCHANGE_SPILL_EVENT
RequestIDEXECUTION_WARNINGSEXECUTION_WARNINGS
RequestIDHASH_WARNINGHASH_WARNING
RequestIDLOCK_DEADLOCKLOCK_DEADLOCK
RequestIDLOCK_DEADLOCK_CHAINLOCK_DEADLOCK_CHAIN
RequestIDLOCK_ESCALATIONLOCK_ESCALATION
RequestIDMISSING_COLUMN_STATISTICSMISSING_COLUMN_STATISTICS
RequestIDMISSING_JOIN_PREDICATEMISSING_JOIN_PREDICATE
RequestIDSERVER_MEMORY_CHANGESERVER_MEMORY_CHANGE
RequestIDSORT_WARNINGSSORT_WARNINGS
RequestIDTRC_DEPRECATIONTRC_DEPRECATION
RequestIDTRC_OBJECTSTRC_OBJECTS
RequestIDTRC_OLEDBTRC_OLEDB
RequestIDTRC_PERFORMANCETRC_PERFORMANCE
RequestIDTRC_QUERY_NOTIFICATIONSTRC_QUERY_NOTIFICATIONS
RequestIDTRC_STORED_PROCEDURESTRC_STORED_PROCEDURES
RequestIDTRC_TSQLTRC_TSQL
RequestIDTRC_USER_CONFIGURABLETRC_USER_CONFIGURABLE
RequestIDUSER_ERROR_MESSAGEUSER_ERROR_MESSAGE

List of classes with RequestID derived property in ROOT\Microsoft\SqlServer\ServerEvents\MSSQLSERVER namespace

propertyClassOrigin
RequestIDDEPRECATION_ANNOUNCEMENTTRC_DEPRECATION
RequestIDDEPRECATION_FINAL_SUPPORTTRC_DEPRECATION
RequestIDOBJECT_ALTEREDTRC_OBJECTS
RequestIDOBJECT_CREATEDTRC_OBJECTS
RequestIDOBJECT_DELETEDTRC_OBJECTS
RequestIDOLEDB_CALL_EVENTTRC_OLEDB
RequestIDOLEDB_DATAREAD_EVENTTRC_OLEDB
RequestIDOLEDB_ERRORSTRC_OLEDB
RequestIDOLEDB_PROVIDER_INFORMATIONTRC_OLEDB
RequestIDOLEDB_QUERYINTERFACE_EVENTTRC_OLEDB
RequestIDQN__DYNAMICSTRC_QUERY_NOTIFICATIONS
RequestIDQN__PARAMETER_TABLETRC_QUERY_NOTIFICATIONS
RequestIDQN__SUBSCRIPTIONTRC_QUERY_NOTIFICATIONS
RequestIDQN__TEMPLATETRC_QUERY_NOTIFICATIONS
RequestIDSHOWPLAN_ALL_FOR_QUERY_COMPILETRC_PERFORMANCE
RequestIDSHOWPLAN_XMLTRC_PERFORMANCE
RequestIDSHOWPLAN_XML_FOR_QUERY_COMPILETRC_PERFORMANCE
RequestIDSHOWPLAN_XML_STATISTICS_PROFILETRC_PERFORMANCE
RequestIDSP_CACHEINSERTTRC_STORED_PROCEDURES
RequestIDSP_CACHEMISSTRC_STORED_PROCEDURES
RequestIDSP_CACHEREMOVETRC_STORED_PROCEDURES
RequestIDSP_RECOMPILETRC_STORED_PROCEDURES
RequestIDSQL_STMTRECOMPILETRC_TSQL
RequestIDUSERCONFIGURABLE_0TRC_USER_CONFIGURABLE
RequestIDUSERCONFIGURABLE_1TRC_USER_CONFIGURABLE
RequestIDUSERCONFIGURABLE_2TRC_USER_CONFIGURABLE
RequestIDUSERCONFIGURABLE_3TRC_USER_CONFIGURABLE
RequestIDUSERCONFIGURABLE_4TRC_USER_CONFIGURABLE
RequestIDUSERCONFIGURABLE_5TRC_USER_CONFIGURABLE
RequestIDUSERCONFIGURABLE_6TRC_USER_CONFIGURABLE
RequestIDUSERCONFIGURABLE_7TRC_USER_CONFIGURABLE
RequestIDUSERCONFIGURABLE_8TRC_USER_CONFIGURABLE
RequestIDUSERCONFIGURABLE_9TRC_USER_CONFIGURABLE
RequestIDXQUERY_STATIC_TYPETRC_TSQL

Code samples for RequestID property

The class AUDIT_SERVER_SCOPE_GDR_EVENT is abstract and serves only as a base for new classes.

Get a Class as object

Short VB Script code to get the abstract class AUDIT_SERVER_SCOPE_GDR_EVENT.
See in another language: C#, VB.Net.
'https://wutils.com/wmi/
Dim wmiClass, oProperty
Set wmiClass = GetObject( _
 "WINMGMTS:\\.\ROOT\Microsoft\SqlServer\ServerEvents\MSSQLSERVER:" + _
 "AUDIT_SERVER_SCOPE_GDR_EVENT")

'get some class property 
Wscript.Echo wmiClass.properties_("RequestID").Origin 'or other property name, see properties

'Check if the class is singleton
Wscript.Echo wmiClass.Path_.IsSingleton

'Get number of methods in the class
Wscript.Echo wmiClass.Methods_.Count

'List class properties
For Each oProperty In wmiClass.properties_
	'get property name and origin. Property value in the class is null, of course.
	Wscript.Echo oProperty.Name, oProperty.Origin, oProperty.Value
Next 

InstancesOf

List of all instances, wmi class AUDIT_SERVER_SCOPE_GDR_EVENT.
'https://wutils.com/wmi/
Dim oWMI, Instances, Instance

'Get base WMI object, "." means computer name (local)
Set oWMI = GetObject("WINMGMTS:\\.\ROOT\Microsoft\SqlServer\ServerEvents\MSSQLSERVER")

'Get instances of AUDIT_SERVER_SCOPE_GDR_EVENT - all instances of this class and derived classes 
Set Instances = oWMI.InstancesOf("AUDIT_SERVER_SCOPE_GDR_EVENT")


'Enumerate instances  
For Each Instance In Instances 
  'Do something with the instance
  Wscript.Echo Instance.RequestID 'or other property name
Next 'Instance
comments powered by Disqus
WUtils.com