[Description] Occurs when a query is compiled or recompiled on SQL Server. This is the compile time counterpart of the Showplan XML event. Showplan XML occurs when a query is executed. Showplan XML For Query Compile occurs when a query is compiled. For more information, see Showplan XML for Query Compile Event Class. [Event class] 
Showplan XML For Query Compile