Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

SQL PROFILER EVENT CLASS Expand / Collapse
Author
Message
Posted Thursday, June 19, 2008 3:08 PM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Thursday, July 03, 2008 7:53 AM
Points: 17, Visits: 50
hI

After running profiler for 5 min , i was putting the saved file into table .when i open it showing one column event class whith appropriate numbers ex: 40,41,11,10 and so on..,

how to exactly read it or where i get related info ...

Becuase my applicatio is having problems with time out so need to figure out it.

what are best practices to use SQL PROFILER ,
Post #520262
Posted Friday, June 20, 2008 2:13 AM
Right there with Babe

Right there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with Babe

Group: General Forum Members
Last Login: Wednesday, March 19, 2014 10:10 AM
Points: 797, Visits: 1,031
Join onto the system table trace_events:

SELECT TE.name, T.*
FROM trace T -- table that contains the trace results
JOIN sys.trace_events TE ON T.EventClass = TE.trace_event_id
Post #520434
Posted Thursday, March 10, 2011 3:53 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Monday, December 12, 2011 2:03 AM
Points: 14, Visits: 48
If you are doing this on sql 2000 (some of us still use this). This script creates a temp table with the eventclass ids and names in. Left Join your trace table to this and you can display the names.

CREATE TABLE #EventClass (EventClass INT NOT NULL, EventName VARCHAR(255) NOT NULL)

INSERT INTO #EventClass (EventClass, EventName) VALUES (10, 'RPC:Completed')
INSERT INTO #EventClass (EventClass, EventName) VALUES (11, 'RPC:Starting')
INSERT INTO #EventClass (EventClass, EventName) VALUES (12, 'SQL:BatchCompleted')
INSERT INTO #EventClass (EventClass, EventName) VALUES (13, 'SQL:BatchStarting')
INSERT INTO #EventClass (EventClass, EventName) VALUES (14, 'Audit Login')
INSERT INTO #EventClass (EventClass, EventName) VALUES (15, 'Audit Logout')
INSERT INTO #EventClass (EventClass, EventName) VALUES (16, 'Attention')
INSERT INTO #EventClass (EventClass, EventName) VALUES (17, 'ExistingConnection')
INSERT INTO #EventClass (EventClass, EventName) VALUES (18, 'Audit Server Starts And Stops')
INSERT INTO #EventClass (EventClass, EventName) VALUES (19, 'DTCTransaction')
INSERT INTO #EventClass (EventClass, EventName) VALUES (20, 'Audit Login Failed')
INSERT INTO #EventClass (EventClass, EventName) VALUES (21, 'EventLog')
INSERT INTO #EventClass (EventClass, EventName) VALUES (22, 'ErrorLog')
INSERT INTO #EventClass (EventClass, EventName) VALUES (23, 'Lock:Released')
INSERT INTO #EventClass (EventClass, EventName) VALUES (24, 'Lock:Acquired')
INSERT INTO #EventClass (EventClass, EventName) VALUES (25, 'Lock:Deadlock')
INSERT INTO #EventClass (EventClass, EventName) VALUES (26, 'Lock:Cancel')
INSERT INTO #EventClass (EventClass, EventName) VALUES (27, 'Lock:Timeout')
INSERT INTO #EventClass (EventClass, EventName) VALUES (28, 'Degree of Parallelism (7.0 Insert)')
INSERT INTO #EventClass (EventClass, EventName) VALUES (33, 'Exception')
INSERT INTO #EventClass (EventClass, EventName) VALUES (34, 'SP:CacheMiss')
INSERT INTO #EventClass (EventClass, EventName) VALUES (35, 'SP:CacheInsert')
INSERT INTO #EventClass (EventClass, EventName) VALUES (36, 'SP:CacheRemove')
INSERT INTO #EventClass (EventClass, EventName) VALUES (37, 'SP:Recompile')
INSERT INTO #EventClass (EventClass, EventName) VALUES (38, 'SP:CacheHit')
INSERT INTO #EventClass (EventClass, EventName) VALUES (39, 'Deprecated')
INSERT INTO #EventClass (EventClass, EventName) VALUES (40, 'SQL:StmtStarting')
INSERT INTO #EventClass (EventClass, EventName) VALUES (41, 'SQL:StmtCompleted')
INSERT INTO #EventClass (EventClass, EventName) VALUES (42, 'SP:Starting')
INSERT INTO #EventClass (EventClass, EventName) VALUES (43, 'SP:Completed')
INSERT INTO #EventClass (EventClass, EventName) VALUES (44, 'SP:StmtStarting')
INSERT INTO #EventClass (EventClass, EventName) VALUES (45, 'SP:StmtCompleted')
INSERT INTO #EventClass (EventClass, EventName) VALUES (46, 'Object:Created')
INSERT INTO #EventClass (EventClass, EventName) VALUES (47, 'Object:Deleted')
INSERT INTO #EventClass (EventClass, EventName) VALUES (50, 'SQLTransaction')
INSERT INTO #EventClass (EventClass, EventName) VALUES (51, 'Scan:Started')
INSERT INTO #EventClass (EventClass, EventName) VALUES (52, 'Scan:Stopped')
INSERT INTO #EventClass (EventClass, EventName) VALUES (53, 'CursorOpen')
INSERT INTO #EventClass (EventClass, EventName) VALUES (54, 'TransactionLog')
INSERT INTO #EventClass (EventClass, EventName) VALUES (55, 'Hash Warning')
INSERT INTO #EventClass (EventClass, EventName) VALUES (58, 'Auto Stats')
INSERT INTO #EventClass (EventClass, EventName) VALUES (59, 'Lock:Deadlock Chain')
INSERT INTO #EventClass (EventClass, EventName) VALUES (60, 'Lock:Escalation')
INSERT INTO #EventClass (EventClass, EventName) VALUES (61, 'OLEDB Errors')
INSERT INTO #EventClass (EventClass, EventName) VALUES (67, 'Execution Warnings')
INSERT INTO #EventClass (EventClass, EventName) VALUES (68, 'Showplan Text (Unencoded)')
INSERT INTO #EventClass (EventClass, EventName) VALUES (69, 'Sort Warnings')
INSERT INTO #EventClass (EventClass, EventName) VALUES (70, 'CursorPrepare')
INSERT INTO #EventClass (EventClass, EventName) VALUES (71, 'Prepare SQL')
INSERT INTO #EventClass (EventClass, EventName) VALUES (72, 'Exec Prepared SQL')
INSERT INTO #EventClass (EventClass, EventName) VALUES (73, 'Unprepare SQL')
INSERT INTO #EventClass (EventClass, EventName) VALUES (74, 'CursorExecute')
INSERT INTO #EventClass (EventClass, EventName) VALUES (75, 'CursorRecompile')
INSERT INTO #EventClass (EventClass, EventName) VALUES (76, 'CursorImplicitConversion')
INSERT INTO #EventClass (EventClass, EventName) VALUES (77, 'CursorUnprepare')
INSERT INTO #EventClass (EventClass, EventName) VALUES (78, 'CursorClose')
INSERT INTO #EventClass (EventClass, EventName) VALUES (79, 'Missing Column Statistics')
INSERT INTO #EventClass (EventClass, EventName) VALUES (80, 'Missing Join Predicate')
INSERT INTO #EventClass (EventClass, EventName) VALUES (81, 'Server Memory Change')
INSERT INTO #EventClass (EventClass, EventName) VALUES (82, 'UserConfigurable:0')
INSERT INTO #EventClass (EventClass, EventName) VALUES (83, 'UserConfigurable:1')
INSERT INTO #EventClass (EventClass, EventName) VALUES (84, 'UserConfigurable:2')
INSERT INTO #EventClass (EventClass, EventName) VALUES (85, 'UserConfigurable:3')
INSERT INTO #EventClass (EventClass, EventName) VALUES (86, 'UserConfigurable:4')
INSERT INTO #EventClass (EventClass, EventName) VALUES (87, 'UserConfigurable:5')
INSERT INTO #EventClass (EventClass, EventName) VALUES (88, 'UserConfigurable:6')
INSERT INTO #EventClass (EventClass, EventName) VALUES (89, 'UserConfigurable:7')
INSERT INTO #EventClass (EventClass, EventName) VALUES (90, 'UserConfigurable:8')
INSERT INTO #EventClass (EventClass, EventName) VALUES (91, 'UserConfigurable:9')
INSERT INTO #EventClass (EventClass, EventName) VALUES (92, 'Data File Auto Grow')
INSERT INTO #EventClass (EventClass, EventName) VALUES (93, 'Log File Auto Grow')
INSERT INTO #EventClass (EventClass, EventName) VALUES (94, 'Data File Auto Shrink')
INSERT INTO #EventClass (EventClass, EventName) VALUES (95, 'Log File Auto Shrink')
INSERT INTO #EventClass (EventClass, EventName) VALUES (96, 'Showplan Text')
INSERT INTO #EventClass (EventClass, EventName) VALUES (97, 'Showplan All')
INSERT INTO #EventClass (EventClass, EventName) VALUES (98, 'Showplan Statistics Profile')
INSERT INTO #EventClass (EventClass, EventName) VALUES (100, 'RPC Output Parameter')
INSERT INTO #EventClass (EventClass, EventName) VALUES (102, 'Audit Database Scope GDR Event')
INSERT INTO #EventClass (EventClass, EventName) VALUES (103, 'Audit Schema Object GDR Event')
INSERT INTO #EventClass (EventClass, EventName) VALUES (104, 'Audit Addlogin Event')
INSERT INTO #EventClass (EventClass, EventName) VALUES (105, 'Audit Login GDR Event')
INSERT INTO #EventClass (EventClass, EventName) VALUES (106, 'Audit Login Change Property Event')
INSERT INTO #EventClass (EventClass, EventName) VALUES (107, 'Audit Login Change Password Event')
INSERT INTO #EventClass (EventClass, EventName) VALUES (108, 'Audit Add Login to Server Role Event')
INSERT INTO #EventClass (EventClass, EventName) VALUES (109, 'Audit Add DB User Event')
INSERT INTO #EventClass (EventClass, EventName) VALUES (110, 'Audit Add Member to DB Role Event')
INSERT INTO #EventClass (EventClass, EventName) VALUES (111, 'Audit Add Role Event')
INSERT INTO #EventClass (EventClass, EventName) VALUES (112, 'Audit App Role Change Password Event')
INSERT INTO #EventClass (EventClass, EventName) VALUES (113, 'Audit Statement Permission Event')
INSERT INTO #EventClass (EventClass, EventName) VALUES (114, 'Audit Schema Object Access Event')
INSERT INTO #EventClass (EventClass, EventName) VALUES (115, 'Audit Backup/Restore Event')
INSERT INTO #EventClass (EventClass, EventName) VALUES (116, 'Audit DBCC Event')
INSERT INTO #EventClass (EventClass, EventName) VALUES (117, 'Audit Change Audit Event')
INSERT INTO #EventClass (EventClass, EventName) VALUES (118, 'Audit Object Derived Permission Event')
INSERT INTO #EventClass (EventClass, EventName) VALUES (119, 'OLEDB Call Event')
INSERT INTO #EventClass (EventClass, EventName) VALUES (120, 'OLEDB QueryInterface Event')
INSERT INTO #EventClass (EventClass, EventName) VALUES (121, 'OLEDB DataRead Event')
INSERT INTO #EventClass (EventClass, EventName) VALUES (122, 'Showplan XML')
INSERT INTO #EventClass (EventClass, EventName) VALUES (123, 'SQL:FullTextQuery')
INSERT INTO #EventClass (EventClass, EventName) VALUES (124, 'Broker:Conversation')
INSERT INTO #EventClass (EventClass, EventName) VALUES (125, 'Deprecation Announcement')
INSERT INTO #EventClass (EventClass, EventName) VALUES (126, 'Deprecation Final Support')
INSERT INTO #EventClass (EventClass, EventName) VALUES (127, 'Exchange Spill Event')
INSERT INTO #EventClass (EventClass, EventName) VALUES (128, 'Audit Database Management Event')
INSERT INTO #EventClass (EventClass, EventName) VALUES (129, 'Audit Database Object Management Event')
INSERT INTO #EventClass (EventClass, EventName) VALUES (130, 'Audit Database Principal Management Event')
INSERT INTO #EventClass (EventClass, EventName) VALUES (131, 'Audit Schema Object Management Event')
INSERT INTO #EventClass (EventClass, EventName) VALUES (132, 'Audit Server Principal Impersonation Event')
INSERT INTO #EventClass (EventClass, EventName) VALUES (133, 'Audit Database Principal Impersonation Event')
INSERT INTO #EventClass (EventClass, EventName) VALUES (134, 'Audit Server Object Take Ownership Event')
INSERT INTO #EventClass (EventClass, EventName) VALUES (135, 'Audit Database Object Take Ownership Event')
INSERT INTO #EventClass (EventClass, EventName) VALUES (136, 'Broker:Conversation Group')
INSERT INTO #EventClass (EventClass, EventName) VALUES (137, 'Blocked process report')
INSERT INTO #EventClass (EventClass, EventName) VALUES (138, 'Broker:Connection')
INSERT INTO #EventClass (EventClass, EventName) VALUES (139, 'Broker:Forwarded Message Sent')
INSERT INTO #EventClass (EventClass, EventName) VALUES (140, 'Broker:Forwarded Message Dropped')
INSERT INTO #EventClass (EventClass, EventName) VALUES (141, 'Broker:Message Classify')
INSERT INTO #EventClass (EventClass, EventName) VALUES (142, 'Broker:Transmission')
INSERT INTO #EventClass (EventClass, EventName) VALUES (143, 'Broker:Queue Disabled')
INSERT INTO #EventClass (EventClass, EventName) VALUES (144, 'Broker:Mirrored Route State Changed')
INSERT INTO #EventClass (EventClass, EventName) VALUES (146, 'Showplan XML Statistics Profile')
INSERT INTO #EventClass (EventClass, EventName) VALUES (148, 'Deadlock graph')
INSERT INTO #EventClass (EventClass, EventName) VALUES (149, 'Broker:Remote Message Acknowledgement')
INSERT INTO #EventClass (EventClass, EventName) VALUES (150, 'Trace File Close')
INSERT INTO #EventClass (EventClass, EventName) VALUES (152, 'Audit Change Database Owner')
INSERT INTO #EventClass (EventClass, EventName) VALUES (153, 'Audit Schema Object Take Ownership Event')
INSERT INTO #EventClass (EventClass, EventName) VALUES (155, 'FT:Crawl Started')
INSERT INTO #EventClass (EventClass, EventName) VALUES (156, 'FT:Crawl Stopped')
INSERT INTO #EventClass (EventClass, EventName) VALUES (157, 'FT:Crawl Aborted')
INSERT INTO #EventClass (EventClass, EventName) VALUES (158, 'Audit Broker Conversation')
INSERT INTO #EventClass (EventClass, EventName) VALUES (159, 'Audit Broker Login')
INSERT INTO #EventClass (EventClass, EventName) VALUES (160, 'Broker:Message Undeliverable')
INSERT INTO #EventClass (EventClass, EventName) VALUES (161, 'Broker:Corrupted Message')
INSERT INTO #EventClass (EventClass, EventName) VALUES (162, 'User Error Message')
INSERT INTO #EventClass (EventClass, EventName) VALUES (163, 'Broker:Activation')
INSERT INTO #EventClass (EventClass, EventName) VALUES (164, 'Object:Altered')
INSERT INTO #EventClass (EventClass, EventName) VALUES (165, 'Performance statistics')
INSERT INTO #EventClass (EventClass, EventName) VALUES (166, 'SQL:StmtRecompile')
INSERT INTO #EventClass (EventClass, EventName) VALUES (167, 'Database Mirroring State Change')
INSERT INTO #EventClass (EventClass, EventName) VALUES (168, 'Showplan XML For Query Compile')
INSERT INTO #EventClass (EventClass, EventName) VALUES (169, 'Showplan All For Query Compile')
INSERT INTO #EventClass (EventClass, EventName) VALUES (170, 'Audit Server Scope GDR Event')
INSERT INTO #EventClass (EventClass, EventName) VALUES (171, 'Audit Server Object GDR Event')
INSERT INTO #EventClass (EventClass, EventName) VALUES (172, 'Audit Database Object GDR Event')
INSERT INTO #EventClass (EventClass, EventName) VALUES (173, 'Audit Server Operation Event')
INSERT INTO #EventClass (EventClass, EventName) VALUES (175, 'Audit Server Alter Trace Event')
INSERT INTO #EventClass (EventClass, EventName) VALUES (176, 'Audit Server Object Management Event')
INSERT INTO #EventClass (EventClass, EventName) VALUES (177, 'Audit Server Principal Management Event')
INSERT INTO #EventClass (EventClass, EventName) VALUES (178, 'Audit Database Operation Event')
INSERT INTO #EventClass (EventClass, EventName) VALUES (180, 'Audit Database Object Access Event')
INSERT INTO #EventClass (EventClass, EventName) VALUES (181, 'TM: Begin Tran starting')
INSERT INTO #EventClass (EventClass, EventName) VALUES (182, 'TM: Begin Tran completed')
INSERT INTO #EventClass (EventClass, EventName) VALUES (183, 'TM: Promote Tran starting')
INSERT INTO #EventClass (EventClass, EventName) VALUES (184, 'TM: Promote Tran completed')
INSERT INTO #EventClass (EventClass, EventName) VALUES (185, 'TM: Commit Tran starting')
INSERT INTO #EventClass (EventClass, EventName) VALUES (186, 'TM: Commit Tran completed')
INSERT INTO #EventClass (EventClass, EventName) VALUES (187, 'TM: Rollback Tran starting')
INSERT INTO #EventClass (EventClass, EventName) VALUES (188, 'TM: Rollback Tran completed')
INSERT INTO #EventClass (EventClass, EventName) VALUES (189, 'Lock:Timeout (timeout > 0)')
INSERT INTO #EventClass (EventClass, EventName) VALUES (190, 'Progress Report: Online Index Operation')
INSERT INTO #EventClass (EventClass, EventName) VALUES (191, 'TM: Save Tran starting')
INSERT INTO #EventClass (EventClass, EventName) VALUES (192, 'TM: Save Tran completed')
INSERT INTO #EventClass (EventClass, EventName) VALUES (193, 'Background Job Error')
INSERT INTO #EventClass (EventClass, EventName) VALUES (194, 'OLEDB Provider Information')
INSERT INTO #EventClass (EventClass, EventName) VALUES (195, 'Mount Tape')
INSERT INTO #EventClass (EventClass, EventName) VALUES (196, 'Assembly Load')
INSERT INTO #EventClass (EventClass, EventName) VALUES (198, 'XQuery Static Type')
INSERT INTO #EventClass (EventClass, EventName) VALUES (199, 'QN: Subscription')
INSERT INTO #EventClass (EventClass, EventName) VALUES (200, 'QN: Parameter table')
INSERT INTO #EventClass (EventClass, EventName) VALUES (201, 'QN: Template')
INSERT INTO #EventClass (EventClass, EventName) VALUES (202, 'QN: Dynamics')

Post #1076100
Posted Thursday, March 10, 2011 4:39 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Yesterday @ 2:55 PM
Points: 41,570, Visits: 34,495
Please note: 3 year old thread


Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1076126
Posted Tuesday, August 09, 2011 9:23 PM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Sunday, May 27, 2012 3:06 PM
Points: 59, Visits: 58
Thanks for the helpful tip! :)

@GilaMonster - For most of us these forums are not social forums, but rather a place to seek answers. Who cares if this thread was 3 years old? An alternative solution was presented, one that is the only solution presented for those still on SQL Server 2000 and provides a handy reference to the what the EventClasses mean. Keep in mind many people use Search Engines to find solutions to their questions, and do not care when the answers are posted as long as they are relevant to their situation and still work. Please do the SSC and DBA communities a favor and climb off of your High Horse.
Post #1157398
Posted Friday, January 20, 2012 11:44 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Friday, March 21, 2014 3:24 PM
Points: 53, Visits: 233
I would consider it helpful to know that the link had aged 3 years.
Not sure I understand the response to the member who added that "information".



Post #1239654
Posted Monday, June 17, 2013 1:41 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Wednesday, September 18, 2013 10:23 AM
Points: 1, Visits: 189
I got the answer I need after the question was asked 5 years ago
Post #1464346
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse