다음을 통해 공유


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)