Database.EnumMatchingSPs 方法 (String, Boolean)

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

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
Public Function EnumMatchingSPs ( _
    description As String, _
    includeSystem As Boolean _
) As UrnCollection
用法
Dim instance As Database 
Dim description As String 
Dim includeSystem As Boolean 
Dim returnValue As UrnCollection 

returnValue = instance.EnumMatchingSPs(description, _
    includeSystem)
public UrnCollection EnumMatchingSPs(
    string description,
    bool includeSystem
)
public:
UrnCollection^ EnumMatchingSPs(
    String^ description, 
    bool includeSystem
)
member EnumMatchingSPs : 
        description:string * 
        includeSystem:bool -> UrnCollection
public function EnumMatchingSPs(
    description : String, 
    includeSystem : boolean
) : UrnCollection

参数

  • description
    类型:System.String
    A String value that specifies the text to find a match for in the stored procedure definition.
  • includeSystem
    类型: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.

返回值

类型: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.

请参阅

参考

Database 类

EnumMatchingSPs 重载

Microsoft.SqlServer.Management.Smo 命名空间

其他资源

使用数据库对象

创建、更改和删除存储过程

创建、更改和删除数据库

CREATE DATABASE (Transact-SQL)