SqlBatch Class
SQL Server 2012
Represents the information about a batch.
Namespace: Microsoft.SqlServer.Management.BatchParser
Assembly: Microsoft.SqlServer.Management.BatchParser (in Microsoft.SqlServer.Management.BatchParser.dll)
The SqlBatch type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | CharCount | Returns the number of characters in the batch. |
![]() | Content | Returns the content of the batch. |
![]() | ExecutionCount | Returns the number of times this batch should repeat. |
![]() | LineCount | Returns the number of lines in the batch. |
![]() | NormalizedContent | Gets the batch content string where the line endings are normalized to CR/LF. This method normalizes all line endings except for those within a string literal or SQL identifier. |
![]() | StartLine | Returns the zero-based line number of the first line in the batch relative to the start of script. |
![]() | StartOffset | Returns the zero-based offset of the first character of the batch relative to the start of script. |

