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

TransactionID in other namespaces

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

propertyClassOrigin
TransactionIDAUDIT_ADD_DB_USER_EVENTAUDIT_ADD_DB_USER_EVENT
TransactionIDAUDIT_ADD_LOGIN_TO_SERVER_ROLE_EVENTAUDIT_ADD_LOGIN_TO_SERVER_ROLE_EVENT
TransactionIDAUDIT_ADD_MEMBER_TO_DB_ROLE_EVENTAUDIT_ADD_MEMBER_TO_DB_ROLE_EVENT
TransactionIDAUDIT_ADD_ROLE_EVENTAUDIT_ADD_ROLE_EVENT
TransactionIDAUDIT_ADDLOGIN_EVENTAUDIT_ADDLOGIN_EVENT
TransactionIDAUDIT_APP_ROLE_CHANGE_PASSWORD_EVENTAUDIT_APP_ROLE_CHANGE_PASSWORD_EVENT
TransactionIDAUDIT_BACKUP_RESTORE_EVENTAUDIT_BACKUP_RESTORE_EVENT
TransactionIDAUDIT_CHANGE_DATABASE_OWNERAUDIT_CHANGE_DATABASE_OWNER
TransactionIDAUDIT_DATABASE_MANAGEMENT_EVENTAUDIT_DATABASE_MANAGEMENT_EVENT
TransactionIDAUDIT_DATABASE_OBJECT_ACCESS_EVENTAUDIT_DATABASE_OBJECT_ACCESS_EVENT
TransactionIDAUDIT_DATABASE_OBJECT_GDR_EVENTAUDIT_DATABASE_OBJECT_GDR_EVENT
TransactionIDAUDIT_DATABASE_OBJECT_MANAGEMENT_EVENTAUDIT_DATABASE_OBJECT_MANAGEMENT_EVENT
TransactionIDAUDIT_DATABASE_OBJECT_TAKE_OWNERSHIP_EVENTAUDIT_DATABASE_OBJECT_TAKE_OWNERSHIP_EVENT
TransactionIDAUDIT_DATABASE_OPERATION_EVENTAUDIT_DATABASE_OPERATION_EVENT
TransactionIDAUDIT_DATABASE_PRINCIPAL_IMPERSONATION_EVENTAUDIT_DATABASE_PRINCIPAL_IMPERSONATION_EVENT
TransactionIDAUDIT_DATABASE_PRINCIPAL_MANAGEMENT_EVENTAUDIT_DATABASE_PRINCIPAL_MANAGEMENT_EVENT
TransactionIDAUDIT_DATABASE_SCOPE_GDR_EVENTAUDIT_DATABASE_SCOPE_GDR_EVENT
TransactionIDAUDIT_DBCC_EVENTAUDIT_DBCC_EVENT
TransactionIDAUDIT_LOGIN_CHANGE_PASSWORD_EVENTAUDIT_LOGIN_CHANGE_PASSWORD_EVENT
TransactionIDAUDIT_LOGIN_CHANGE_PROPERTY_EVENTAUDIT_LOGIN_CHANGE_PROPERTY_EVENT
TransactionIDAUDIT_LOGIN_GDR_EVENTAUDIT_LOGIN_GDR_EVENT
TransactionIDAUDIT_SCHEMA_OBJECT_ACCESS_EVENTAUDIT_SCHEMA_OBJECT_ACCESS_EVENT
TransactionIDAUDIT_SCHEMA_OBJECT_GDR_EVENTAUDIT_SCHEMA_OBJECT_GDR_EVENT
TransactionIDAUDIT_SCHEMA_OBJECT_MANAGEMENT_EVENTAUDIT_SCHEMA_OBJECT_MANAGEMENT_EVENT
TransactionIDAUDIT_SCHEMA_OBJECT_TAKE_OWNERSHIP_EVENTAUDIT_SCHEMA_OBJECT_TAKE_OWNERSHIP_EVENT
TransactionIDAUDIT_SERVER_ALTER_TRACE_EVENTAUDIT_SERVER_ALTER_TRACE_EVENT
TransactionIDAUDIT_SERVER_OBJECT_GDR_EVENTAUDIT_SERVER_OBJECT_GDR_EVENT
TransactionIDAUDIT_SERVER_OBJECT_MANAGEMENT_EVENTAUDIT_SERVER_OBJECT_MANAGEMENT_EVENT
TransactionIDAUDIT_SERVER_OBJECT_TAKE_OWNERSHIP_EVENTAUDIT_SERVER_OBJECT_TAKE_OWNERSHIP_EVENT
TransactionIDAUDIT_SERVER_OPERATION_EVENTAUDIT_SERVER_OPERATION_EVENT
TransactionIDAUDIT_SERVER_PRINCIPAL_IMPERSONATION_EVENTAUDIT_SERVER_PRINCIPAL_IMPERSONATION_EVENT
TransactionIDAUDIT_SERVER_PRINCIPAL_MANAGEMENT_EVENTAUDIT_SERVER_PRINCIPAL_MANAGEMENT_EVENT
TransactionIDAUDIT_SERVER_SCOPE_GDR_EVENTAUDIT_SERVER_SCOPE_GDR_EVENT
TransactionIDBITMAP_WARNINGBITMAP_WARNING
TransactionIDBLOCKED_PROCESS_REPORTBLOCKED_PROCESS_REPORT
TransactionIDDATABASE_MIRRORING_STATE_CHANGEDATABASE_MIRRORING_STATE_CHANGE
TransactionIDERRORLOGERRORLOG
TransactionIDEVENTLOGEVENTLOG
TransactionIDEXCEPTIONEXCEPTION
TransactionIDEXCHANGE_SPILL_EVENTEXCHANGE_SPILL_EVENT
TransactionIDEXECUTION_WARNINGSEXECUTION_WARNINGS
TransactionIDHASH_WARNINGHASH_WARNING
TransactionIDMISSING_COLUMN_STATISTICSMISSING_COLUMN_STATISTICS
TransactionIDMISSING_JOIN_PREDICATEMISSING_JOIN_PREDICATE
TransactionIDSERVER_MEMORY_CHANGESERVER_MEMORY_CHANGE
TransactionIDSORT_WARNINGSSORT_WARNINGS
TransactionIDTRC_DEPRECATIONTRC_DEPRECATION
TransactionIDTRC_FULL_TEXTTRC_FULL_TEXT
TransactionIDTRC_LOCKSTRC_LOCKS
TransactionIDTRC_OBJECTSTRC_OBJECTS
TransactionIDTRC_OLEDBTRC_OLEDB
TransactionIDTRC_PERFORMANCETRC_PERFORMANCE
TransactionIDTRC_STORED_PROCEDURESTRC_STORED_PROCEDURES
TransactionIDTRC_TSQLTRC_TSQL
TransactionIDTRC_USER_CONFIGURABLETRC_USER_CONFIGURABLE
TransactionIDUSER_ERROR_MESSAGEUSER_ERROR_MESSAGE

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

propertyClassOrigin
TransactionIDDEADLOCK_GRAPHTRC_LOCKS
TransactionIDDEPRECATION_ANNOUNCEMENTTRC_DEPRECATION
TransactionIDDEPRECATION_FINAL_SUPPORTTRC_DEPRECATION
TransactionIDFT_CRAWL_ABORTEDTRC_FULL_TEXT
TransactionIDFT_CRAWL_STARTEDTRC_FULL_TEXT
TransactionIDFT_CRAWL_STOPPEDTRC_FULL_TEXT
TransactionIDLOCK_DEADLOCKTRC_LOCKS
TransactionIDLOCK_DEADLOCK_CHAINTRC_LOCKS
TransactionIDLOCK_ESCALATIONTRC_LOCKS
TransactionIDOBJECT_ALTEREDTRC_OBJECTS
TransactionIDOBJECT_CREATEDTRC_OBJECTS
TransactionIDOBJECT_DELETEDTRC_OBJECTS
TransactionIDOLEDB_CALL_EVENTTRC_OLEDB
TransactionIDOLEDB_DATAREAD_EVENTTRC_OLEDB
TransactionIDOLEDB_ERRORSTRC_OLEDB
TransactionIDOLEDB_PROVIDER_INFORMATIONTRC_OLEDB
TransactionIDOLEDB_QUERYINTERFACE_EVENTTRC_OLEDB
TransactionIDSHOWPLAN_ALL_FOR_QUERY_COMPILETRC_PERFORMANCE
TransactionIDSHOWPLAN_XMLTRC_PERFORMANCE
TransactionIDSHOWPLAN_XML_FOR_QUERY_COMPILETRC_PERFORMANCE
TransactionIDSHOWPLAN_XML_STATISTICS_PROFILETRC_PERFORMANCE
TransactionIDSP_CACHEINSERTTRC_STORED_PROCEDURES
TransactionIDSP_CACHEMISSTRC_STORED_PROCEDURES
TransactionIDSP_CACHEREMOVETRC_STORED_PROCEDURES
TransactionIDSP_RECOMPILETRC_STORED_PROCEDURES
TransactionIDSQL_STMTRECOMPILETRC_TSQL
TransactionIDUSERCONFIGURABLE_0TRC_USER_CONFIGURABLE
TransactionIDUSERCONFIGURABLE_1TRC_USER_CONFIGURABLE
TransactionIDUSERCONFIGURABLE_2TRC_USER_CONFIGURABLE
TransactionIDUSERCONFIGURABLE_3TRC_USER_CONFIGURABLE
TransactionIDUSERCONFIGURABLE_4TRC_USER_CONFIGURABLE
TransactionIDUSERCONFIGURABLE_5TRC_USER_CONFIGURABLE
TransactionIDUSERCONFIGURABLE_6TRC_USER_CONFIGURABLE
TransactionIDUSERCONFIGURABLE_7TRC_USER_CONFIGURABLE
TransactionIDUSERCONFIGURABLE_8TRC_USER_CONFIGURABLE
TransactionIDUSERCONFIGURABLE_9TRC_USER_CONFIGURABLE
TransactionIDXQUERY_STATIC_TYPETRC_TSQL

Code samples for TransactionID property

The class ERRORLOG 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 ERRORLOG.
See in another language: C#, VB.Net.
'https://wutils.com/wmi/
Dim wmiClass, oProperty
Set wmiClass = GetObject( _
 "WINMGMTS:\\.\ROOT\Microsoft\SqlServer\ServerEvents\MSSQLSERVER:" + _
 "ERRORLOG")

'get some class property 
Wscript.Echo wmiClass.properties_("TransactionID").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 ERRORLOG.
'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 ERRORLOG - all instances of this class and derived classes 
Set Instances = oWMI.InstancesOf("ERRORLOG")


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