다음을 통해 공유


TeamFoundationSqlResourceComponent.PrepareSqlBatch Method (Int32)

Setup to execute a batch of SQL statements. This method will close all existing commands or readers.

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
Protected Overridable Function PrepareSqlBatch ( _
    lengthEstimate As Integer _
) As SqlCommand
protected virtual SqlCommand PrepareSqlBatch(
    int lengthEstimate
)
protected:
virtual SqlCommand^ PrepareSqlBatch(
    int lengthEstimate
)
abstract PrepareSqlBatch : 
        lengthEstimate:int -> SqlCommand  
override PrepareSqlBatch : 
        lengthEstimate:int -> SqlCommand
protected function PrepareSqlBatch(
    lengthEstimate : int
) : SqlCommand

Parameters

  • lengthEstimate
    Type: System.Int32

    Best guess of the number of characters in the SQL statements to be executed. Does not have to be exact.

Return Value

Type: System.Data.SqlClient.SqlCommand
The SqlCommand object that is initialized.

.NET Framework Security

See Also

Reference

TeamFoundationSqlResourceComponent Class

PrepareSqlBatch Overload

Microsoft.TeamFoundation.Framework.Server Namespace