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

TSqlParser Class

SQL Server 2012

Represents the Transact-SQL parser.

Namespace:  Microsoft.SqlServer.TransactSql.ScriptDom
Assembly:  Microsoft.SqlServer.TransactSql.ScriptDom (in Microsoft.SqlServer.TransactSql.ScriptDom.dll)
public abstract class TSqlParser

The TSqlParser type exposes the following members.

  NameDescription
Public propertyQuotedIdentifierGets a value that indicates whether the quoted identifier is on.
Top
  NameDescription
Public methodCreateCreates a Transact-SQL parser for the specified version.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetTokenStream(TextReader, IList(ParseError))Returns a list of parser tokens and a list of errors by using the provided text reader.
Public methodGetTokenStream(TextReader, IList(ParseError), Int32, Int32, Int32)Returns a list of parser tokens and a list of errors by using the provided text reader.
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodParse(TextReader, IList(ParseError))Returns a script fragment and a list of errors by using the provided text reader.
Public methodParse(IList(TSqlParserToken), IList(ParseError))Returns a script fragment and a list of errors by using the provided tokens.
Public methodParse(TextReader, IList(ParseError), Int32, Int32, Int32)Returns a script fragment and a list of errors by using the provided values.
Public methodParseBooleanExpression(TextReader, IList(ParseError))Returns a Boolean expression and a list of errors by using the provided text reader.
Public methodParseBooleanExpression(TextReader, IList(ParseError), Int32, Int32, Int32)Returns a Boolean expression and a list of errors by using the provided values.
Public methodParseChildObjectName(TextReader, IList(ParseError))Returns a child object name and a list of errors by using the provided text reader.
Public methodParseChildObjectName(TextReader, IList(ParseError), Int32, Int32, Int32)Returns a child object name and a list of errors by using the provided values.
Public methodParseConstantOrIdentifier(TextReader, IList(ParseError))Returns a constant or identifier and a list of errors by using the provided text reader.
Public methodParseConstantOrIdentifier(TextReader, IList(ParseError), Int32, Int32, Int32)Returns a constant or identifier and a list of errors by using the provided values.
Public methodParseConstantOrIdentifierWithDefault(TextReader, IList(ParseError))Returns a constant or identifier with default values and a list of errors by using the provided text reader.
Public methodParseConstantOrIdentifierWithDefault(TextReader, IList(ParseError), Int32, Int32, Int32)Returns a constant or identifier with default values and a list of errors.
Public methodParseExpression(TextReader, IList(ParseError))Returns an expression and a list of errors by using the provided text reader.
Public methodParseExpression(TextReader, IList(ParseError), Int32, Int32, Int32)Returns an expression and a list of errors by using the provided values.
Public methodParseScalarDataType(TextReader, IList(ParseError))Returns a scalar data type and a list of errors by using the provided text reader.
Public methodParseScalarDataType(TextReader, IList(ParseError), Int32, Int32, Int32)Returns a scalar data type and a list of errors by using the provided values.
Public methodParseSchemaObjectName(TextReader, IList(ParseError))Returns a schema object name and a list of errors by using the provided text reader.
Public methodParseSchemaObjectName(TextReader, IList(ParseError), Int32, Int32, Int32)Returns a schema object name and a list of errors by using the provided values.
Public methodParseStatementList(TextReader, IList(ParseError))Returns a statement list and a list of errors by using the provided text reader.
Public methodParseStatementList(TextReader, IList(ParseError), Int32, Int32, Int32)Returns a statement list and a list of errors by using the provided values.
Public methodParseSubQueryExpressionWithOptionalCTE(TextReader, IList(ParseError))Parses an input string to get a subquery expression with optional common table expression and xml namespaces with the specified input reader.
Public methodParseSubQueryExpressionWithOptionalCTE(TextReader, IList(ParseError), Int32, Int32, Int32)Parses an input string to get a subquery expression with optional common table expression and xml namespaces with the specified input reader.
Public methodToString (Inherited from Object.)
Public methodTryParseSqlModuleObjectNameIndicates whether the input script contains a SQL module object name.
Public methodTryParseTriggerModuleIndicates whether the input script contains a trigger module.
Public methodValidateIdentifierReturns whether a name is a valid SQL identifier.
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.