Compartir a través de


TeamFoundationSqlResourceComponent.PrepareSqlBatch (Método) (Int32, Boolean)

Configurar para ejecutar un lote de instrucciones SQL. Este método se cerrará todo el comando o lector existente.

Espacio de nombres:  Microsoft.TeamFoundation.Framework.Server
Ensamblado:  Microsoft.TeamFoundation.Framework.Server (en Microsoft.TeamFoundation.Framework.Server.dll)

Sintaxis

'Declaración
Protected Function PrepareSqlBatch ( _
    lengthEstimate As Integer, _
    bindPartitionId As Boolean _
) As SqlCommand
protected SqlCommand PrepareSqlBatch(
    int lengthEstimate,
    bool bindPartitionId
)

Parámetros

  • lengthEstimate
    Tipo: System.Int32
    La aproximación mejor del número de caracteres de instrucciones SQL que se ejecutarán.No tiene que ser exacto.
  • bindPartitionId
    Tipo: System.Boolean
    Si es true, el id. de partición actual del host de servicio se enlaza al @partitionId

Valor devuelto

Tipo: System.Data.SqlClient.SqlCommand
El objeto de SqlCommand inicializa que

Seguridad de .NET Framework

Vea también

Referencia

TeamFoundationSqlResourceComponent Clase

PrepareSqlBatch (Sobrecarga)

Microsoft.TeamFoundation.Framework.Server (Espacio de nombres)