Export (0) Print
Expand All

SqlBatch Class

Represents the information about a batch.

Object
  Microsoft.SqlServer.Management.BatchParser.SqlBatch

Namespace:  Microsoft.SqlServer.Management.BatchParser
Assembly:  Microsoft.SqlServer.Management.BatchParser (in Microsoft.SqlServer.Management.BatchParser.dll)

public sealed class SqlBatch

The SqlBatch type exposes the following members.

  NameDescription
Public propertyCharCountReturns the number of characters in the batch.
Public propertyContentReturns the content of the batch.
Public propertyExecutionCountReturns the number of times this batch should repeat.
Public propertyLineCountReturns the number of lines in the batch.
Public propertyNormalizedContentGets 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.
Public propertyStartLineReturns the zero-based line number of the first line in the batch relative to the start of script.
Public propertyStartOffsetReturns the zero-based offset of the first character of the batch relative to the start of script.
Top

  NameDescription
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft