Export (0) Print
Expand All

JobServer.EnumPerformanceCounters Method (String, String, String)

Enumerates a list of SQL Server Agent performance counter information for the specified object, specified counter, and specified instance of SQL Server.

Namespace:  Microsoft.SqlServer.Management.Smo.Agent
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

public DataTable EnumPerformanceCounters(
	string objectName,
	string counterName,
	string instanceName
)

Parameters

objectName
Type: String
A String value that specifies the object for which the performance counter information is required.
counterName
Type: String
A String value that specifies the counter name for which the performance counter information is required.
instanceName
Type: String
A String value that specifies the instance of SQL Server.

Return Value

Type: DataTable
A DataTable object value that contains a table of information about SQL Server Agent performance counters.

Community Additions

ADD
Show:
© 2014 Microsoft