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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.