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 Function PrepareSqlBatch ( _
    lengthEstimate As Integer _
) As SqlCommand
protected SqlCommand PrepareSqlBatch(
    int lengthEstimate
)
protected:
SqlCommand^ PrepareSqlBatch(
    int lengthEstimate
)
member 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