Monitoring and Troubleshooting Managed Database Objects
This topic provides information about the tools that can be used to monitor and troubleshoot managed database objects and assemblies running in SQL Server.
SQL Server provides SQL Trace and event notifications to monitor events that occur in the Database Engine. By recording specified events, SQL Trace helps you troubleshoot performance, audit database activity, gather sample data for a test environment, debug Transact-SQL statements and stored procedures, and gather data for performance analysis tools. For more information, see Monitoring Events.
Used to monitor assembly load requests (success and failures).
Provides information about Transact-SQL batches that have started or completed.
Used to monitor the execution of Transact-SQL stored procedures.
Used to monitor the execution of CLR and Transact-SQL routines.
SQL Server provides objects and counters that can be used by System Monitor to monitor activity in computers running an instance of SQL Server. An object is any SQL Server resource, such as a SQL Server lock or a Windows XP process. Each object contains one or more counters that determine various aspects of the objects to monitor. For more information, see Using SQL Server Objects.
Total time spent in CLR execution.
The Windows System Monitor (PERFMON.EXE) tool has several performance counters that can be used to monitor CLR integration applications. The .NET CLR performance counters can be filtered by the "sqlservr" process name to track CLR integration applications that are currently running.
Provides CPU statistics for the server.
.NET CLR Exceptions
Tracks the number of exceptions per second.
.NET CLR Loading
Provides information about the AppDomains and assemblies loaded in the server.
.NET CLR Memory
Provides information about CLR memory usage. This object can be used to flag alerts if memory usage gets too large.
.NET Data Provider for SQL Server
Tracks the number of connects and disconnects per second. This object can be used for monitoring the level of database activity.
Catalog views return information that is used by the SQL Server Database Engine. We recommend that you use catalog views because they are the most general interface to the catalog metadata and provide the most efficient way to obtain, transform, and present customized forms of this information. All user-available catalog metadata is exposed through catalog views. For more information, see Catalog Views (Transact-SQL).
Returns information about the assemblies registered in a database.
Identifies assemblies that reference other assemblies.
Returns information about each function, stored procedure, and trigger defined in an assembly.
Returns information about the assembly files registered in the database.
Identifies the user-defined types (UDTs) defined by an assembly.
Identifies the assemblies that CLR modules are defined in.
Returns information about parameters that are user-defined types.
Identifies the assembly that a CLR trigger is defined in.
Identifies the server-level DDL triggers on a server, including CLR triggers.
Identifies the assemblies that user-defined types are defined in.
Returns the system and user-defined types registered in the database.
Dynamic management views and functions return server state information that can be used to monitor the health of a server instance, diagnose problems, and tune performance. For more information, see Dynamic Management Views and Functions (Transact-SQL).
Provides information about each application domain in the server.
Identifies each managed assembly registered on the server.
Returns information about the hosted CLR.
Identifies all the CLR tasks that are currently running.
Returns information about the query execution plans that are cached by SQL Server for faster query execution.
Returns aggregate performance statistics for cached query plans.
Returns information about each request that is executing within SQL Server.
Returns all the memory clerks currently active in the SQL Server instance, including CLR memory clerks.