Export (0) Print
Expand All

Database.EnumMatchingSPs Method

 

Applies To: SQL Server 2016 Preview

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

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

NameDescription
System_CAPS_pubmethodEnumMatchingSPs(String)

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

System_CAPS_pubmethodEnumMatchingSPs(String, Boolean)

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

Return to top

Database.EnumMatchingSPs Method (String)

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

public UrnCollection EnumMatchingSPs(
	string description
)

Parameters

description
Type: System.String

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

Return Value

Type: Microsoft.SqlServer.Management.Smo.UrnCollection

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

The stored procedure is defined in the TextBody property.

Return to top

Database.EnumMatchingSPs Method (String, Boolean)

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

public UrnCollection EnumMatchingSPs(
	string description,
	bool includeSystem
)

Parameters

description
Type: System.String

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

includeSystem
Type: System.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.

Return Value

Type: Microsoft.SqlServer.Management.Smo.UrnCollection

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

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.

Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft