JobServer.EnumPerformanceCounters JobServer.EnumPerformanceCounters JobServer.EnumPerformanceCounters Method

Definition

Enumerates a list of SQL Server Agent performance counter information.

Overloads

EnumPerformanceCounters(String, String, String) EnumPerformanceCounters(String, String, String) EnumPerformanceCounters(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.

EnumPerformanceCounters(String, String) EnumPerformanceCounters(String, String) EnumPerformanceCounters(String, String)

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

EnumPerformanceCounters() EnumPerformanceCounters() EnumPerformanceCounters()

Enumerates a list of SQL Server Agent performance counter information.

EnumPerformanceCounters(String) EnumPerformanceCounters(String) EnumPerformanceCounters(String)

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

Remarks

This method was introduced in SQL Server 2005.

EnumPerformanceCounters(String, String, String) EnumPerformanceCounters(String, String, String) EnumPerformanceCounters(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.

public:
 System::Data::DataTable ^ EnumPerformanceCounters(System::String ^ objectName, System::String ^ counterName, System::String ^ instanceName);
public System.Data.DataTable EnumPerformanceCounters (string objectName, string counterName, string instanceName);
Public Function EnumPerformanceCounters (objectName As String, counterName As String, instanceName As String) As DataTable
Parameters
objectName
String String String

A String value that specifies the object for which the performance counter information is required.

counterName
String String String

A String value that specifies the counter name for which the performance counter information is required.

instanceName
String String String

A String value that specifies the instance of SQL Server.

Returns

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

Examples

Scheduling Automatic Administrative Tasks in SQL Server Agent

EnumPerformanceCounters(String, String) EnumPerformanceCounters(String, String) EnumPerformanceCounters(String, String)

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

public:
 System::Data::DataTable ^ EnumPerformanceCounters(System::String ^ objectName, System::String ^ counterName);
public System.Data.DataTable EnumPerformanceCounters (string objectName, string counterName);
Public Function EnumPerformanceCounters (objectName As String, counterName As String) As DataTable
Parameters
objectName
String String String

A String value that specifies the object for which the performance counter information is required.

counterName
String String String

A String value that specifies the counter name for which the performance counter information is required.

Returns

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

Examples

Scheduling Automatic Administrative Tasks in SQL Server Agent

EnumPerformanceCounters() EnumPerformanceCounters() EnumPerformanceCounters()

Enumerates a list of SQL Server Agent performance counter information.

public:
 System::Data::DataTable ^ EnumPerformanceCounters();
public System.Data.DataTable EnumPerformanceCounters ();
Public Function EnumPerformanceCounters () As DataTable
Returns

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

Examples

Scheduling Automatic Administrative Tasks in SQL Server Agent

EnumPerformanceCounters(String) EnumPerformanceCounters(String) EnumPerformanceCounters(String)

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

public:
 System::Data::DataTable ^ EnumPerformanceCounters(System::String ^ objectName);
public System.Data.DataTable EnumPerformanceCounters (string objectName);
Public Function EnumPerformanceCounters (objectName As String) As DataTable
Parameters
objectName
String String String

A String value that specifies the object for which the performance counter information is required.

Returns

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

Examples

Scheduling Automatic Administrative Tasks in SQL Server Agent

Applies to