Export (0) Print
Expand All

Parser Class

Defines the methods that control the parser behavior.


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

public class Parser : IDisposable

The Parser type exposes the following members.

Public methodParserInitializes a new instance of the Parser class.

Public methodCleanupCleans up the internal state, and prepares for a new parse.
Public methodDisableVariableSubstitutionDisables variable substitution in the lexer.
Public methodDispose()Releases all resources used by the current instance of the Parser.
Protected methodDispose(Boolean)Releases all resources used by the current instance of the Parser.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetLastCommandLineNumberReturns the line number of the last encountered command.
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodParseStarts the parsing.
Public methodParserDisposeCleans up the parser state.
Public methodSetBatchDelimiterSets the new batch delimiter. By default, the batch delimiter is GO.
Public methodSetBatchSourceSets the batch source interface, which is used to feed text into the parser.
Public methodSetCommandExecuterSets the command executer interface, which processes sqlcmd commands and the batch delimiter.
Public methodSetParseModeSets the parser mode.
Public methodSetRecognizeOnlyVariablesSets the parser mode to recognize only variables.
Public methodSetVariableResolverSets the variable resolver interface.
Public methodToString (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.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft