Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Parser Class

SQL Server 2012

Defines the methods that control the parser behavior.

System.Object
  ManagedBatchParser.Parser

Namespace:  ManagedBatchParser
Assembly:  Microsoft.SqlServer.BatchParser (in Microsoft.SqlServer.BatchParser.dll)
public class Parser : IDisposable

The Parser type exposes the following members.

  NameDescription
Public methodParserInitializes a new instance of the Parser class.
Top
  NameDescription
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.)
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.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.