SPSqlQueryCounter Class

Represents a monitor that tracks information about the SQL queries that are made during an operation. For each query, this monitor tracks the SqlQueryData text, the call stack, and the duration.

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.Utilities.SPSqlQueryCounter

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Class SPSqlQueryCounter _
    Implements ISPScopedPerformanceMonitor, IDisposable, ISPPerformanceMonitor
'Usage
Dim instance As SPSqlQueryCounter
public class SPSqlQueryCounter : ISPScopedPerformanceMonitor, 
    IDisposable, ISPPerformanceMonitor

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

SPSqlQueryCounter Members

Microsoft.SharePoint.Utilities Namespace