Database.EnumMatchingSPs Database.EnumMatchingSPs Database.EnumMatchingSPs Method

Definition

Enumerates a list of stored procedures that contain the specified string in the definition.

Overloads

EnumMatchingSPs(String) EnumMatchingSPs(String) EnumMatchingSPs(String)

Enumerates a list of stored procedures that contain the specified string in the definition.

EnumMatchingSPs(String, Boolean) EnumMatchingSPs(String, Boolean) EnumMatchingSPs(String, Boolean)

Enumerates a list of stored procedures that contain the specified string in the definition.

EnumMatchingSPs(String) EnumMatchingSPs(String) EnumMatchingSPs(String)

Enumerates a list of stored procedures that contain the specified string in the definition.

public:
 Microsoft::SqlServer::Management::Smo::UrnCollection ^ EnumMatchingSPs(System::String ^ description);
public Microsoft.SqlServer.Management.Smo.UrnCollection EnumMatchingSPs (string description);
Public Function EnumMatchingSPs (description As String) As UrnCollection
Parameters
description
String String String

A String value that specifies the text to find a match for in the stored procedure definition.

Returns

A UrnCollection object value that contains a list of matching stored procedures for the database.

Remarks

The stored procedure is defined in the TextBody property.

EnumMatchingSPs(String, Boolean) EnumMatchingSPs(String, Boolean) EnumMatchingSPs(String, Boolean)

Enumerates a list of stored procedures that contain the specified string in the definition.

public:
 Microsoft::SqlServer::Management::Smo::UrnCollection ^ EnumMatchingSPs(System::String ^ description, bool includeSystem);
public Microsoft.SqlServer.Management.Smo.UrnCollection EnumMatchingSPs (string description, bool includeSystem);
Public Function EnumMatchingSPs (description As String, includeSystem As Boolean) As UrnCollection
Parameters
description
String String String

A String value that specifies the text to find a match for in the stored procedure definition.

includeSystem
Boolean Boolean Boolean

A Boolean value that specifies whether to include system stored procedures in the returned list.

If True, system stored procedures are included. Otherwise, False.

Returns

A UrnCollection object value that contains a list of matching stored procedures for the database.

Remarks

The stored procedure is defined in the TextBody property. It is the text in the TextBody property that is compared to the value in the description parameter.

Applies to