SqlBatch Class
Represents the information about a batch.
Assembly: Microsoft.SqlServer.Management.BatchParser (in Microsoft.SqlServer.Management.BatchParser.dll)
| 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. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | (Inherited from Object.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | ToString() | (Inherited from Object.) |
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

