Partager via


Classe TSqlParser

Represents the Transact-SQL parser.

Hiérarchie d'héritage

System.Object
  Microsoft.SqlServer.TransactSql.ScriptDom.TSqlParser
    Microsoft.SqlServer.TransactSql.ScriptDom.TSql100Parser
    Microsoft.SqlServer.TransactSql.ScriptDom.TSql110Parser
    Microsoft.SqlServer.TransactSql.ScriptDom.TSql80Parser
    Microsoft.SqlServer.TransactSql.ScriptDom.TSql90Parser

Espace de noms :  Microsoft.SqlServer.TransactSql.ScriptDom
Assembly :  Microsoft.SqlServer.TransactSql.ScriptDom (en Microsoft.SqlServer.TransactSql.ScriptDom.dll)

Syntaxe

'Déclaration
<SerializableAttribute> _
Public MustInherit Class TSqlParser
'Utilisation
Dim instance As TSqlParser
[SerializableAttribute]
public abstract class TSqlParser
[SerializableAttribute]
public ref class TSqlParser abstract
[<AbstractClassAttribute>]
[<SerializableAttribute>]
type TSqlParser =  class end
public abstract class TSqlParser

Le type TSqlParser expose les membres suivants.

Propriétés

  Nom Description
Propriété publique QuotedIdentifier Gets a value that indicates whether the quoted identifier is on.

Haut de la page

Méthodes

  Nom Description
Méthode publique Create Creates a Transact-SQL parser for the specified version.
Méthode publique Equals (hérité de Object.)
Méthode protégée Finalize (hérité de Object.)
Méthode publique GetHashCode (hérité de Object.)
Méthode publique GetTokenStream(TextReader, IList<ParseError>%) Returns a list of parser tokens and a list of errors by using the provided text reader.
Méthode publique GetTokenStream(TextReader, IList<ParseError>%, Int32, Int32, Int32) Returns a list of parser tokens and a list of errors by using the provided text reader.
Méthode publique GetType (hérité de Object.)
Méthode protégée MemberwiseClone (hérité de Object.)
Méthode publique Parse(TextReader, IList<ParseError>%) Returns a script fragment and a list of errors by using the provided text reader.
Méthode publique Parse(IList<TSqlParserToken>, IList<ParseError>%) Returns a script fragment and a list of errors by using the provided tokens.
Méthode publique Parse(TextReader, IList<ParseError>%, Int32, Int32, Int32) Returns a script fragment and a list of errors by using the provided values.
Méthode publique ParseBooleanExpression(TextReader, IList<ParseError>%) Returns a Boolean expression and a list of errors by using the provided text reader.
Méthode publique ParseBooleanExpression(TextReader, IList<ParseError>%, Int32, Int32, Int32) Returns a Boolean expression and a list of errors by using the provided values.
Méthode publique ParseChildObjectName(TextReader, IList<ParseError>%) Returns a child object name and a list of errors by using the provided text reader.
Méthode publique ParseChildObjectName(TextReader, IList<ParseError>%, Int32, Int32, Int32) Returns a child object name and a list of errors by using the provided values.
Méthode publique ParseConstantOrIdentifier(TextReader, IList<ParseError>%) Returns a constant or identifier and a list of errors by using the provided text reader.
Méthode publique ParseConstantOrIdentifier(TextReader, IList<ParseError>%, Int32, Int32, Int32) Returns a constant or identifier and a list of errors by using the provided values.
Méthode publique ParseConstantOrIdentifierWithDefault(TextReader, IList<ParseError>%) Returns a constant or identifier with default values and a list of errors by using the provided text reader.
Méthode publique ParseConstantOrIdentifierWithDefault(TextReader, IList<ParseError>%, Int32, Int32, Int32) Returns a constant or identifier with default values and a list of errors.
Méthode publique ParseExpression(TextReader, IList<ParseError>%) Returns an expression and a list of errors by using the provided text reader.
Méthode publique ParseExpression(TextReader, IList<ParseError>%, Int32, Int32, Int32) Returns an expression and a list of errors by using the provided values.
Méthode publique ParseScalarDataType(TextReader, IList<ParseError>%) Returns a scalar data type and a list of errors by using the provided text reader.
Méthode publique ParseScalarDataType(TextReader, IList<ParseError>%, Int32, Int32, Int32) Returns a scalar data type and a list of errors by using the provided values.
Méthode publique ParseSchemaObjectName(TextReader, IList<ParseError>%) Returns a schema object name and a list of errors by using the provided text reader.
Méthode publique ParseSchemaObjectName(TextReader, IList<ParseError>%, Int32, Int32, Int32) Returns a schema object name and a list of errors by using the provided values.
Méthode publique ParseStatementList(TextReader, IList<ParseError>%) Returns a statement list and a list of errors by using the provided text reader.
Méthode publique ParseStatementList(TextReader, IList<ParseError>%, Int32, Int32, Int32) Returns a statement list and a list of errors by using the provided values.
Méthode publique ParseSubQueryExpressionWithOptionalCTE(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.
Méthode publique ParseSubQueryExpressionWithOptionalCTE(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.
Méthode publique ToString (hérité de Object.)
Méthode publique TryParseSqlModuleObjectName Indicates whether the input script contains a SQL module object name.
Méthode publique TryParseTriggerModule Indicates whether the input script contains a trigger module.
Méthode publique ValidateIdentifier Returns whether a name is a valid SQL identifier.

Haut de la page

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.

Voir aussi

Référence

Espace de noms Microsoft.SqlServer.TransactSql.ScriptDom