Compartir a través de


Database.EnumMatchingSPs Método (String, Boolean)

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

Espacio de nombres:  Microsoft.SqlServer.Management.Smo
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
Public Function EnumMatchingSPs ( _
    description As String, _
    includeSystem As Boolean _
) As UrnCollection
'Uso
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

Parámetros

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

Valor devuelto

Tipo: Microsoft.SqlServer.Management.Smo.UrnCollection
A UrnCollection object value that contains a list of matching stored procedures for the database.

Comentarios

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.

Vea también

Referencia

Database Clase

Sobrecarga de EnumMatchingSPs

Espacio de nombres Microsoft.SqlServer.Management.Smo

Otros recursos

Trabajar con objetos de bases de datos

Crear, modificar y eliminar los procedimientos almacenados

Crear, modificar y eliminar bases de datos

CREATE DATABASE (Transact-SQL)