共用方式為


TSqlParser 類別

Represents the Transact-SQL parser.

繼承階層

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

命名空間:  Microsoft.SqlServer.TransactSql.ScriptDom
組件:  Microsoft.SqlServer.TransactSql.ScriptDom (在 Microsoft.SqlServer.TransactSql.ScriptDom.dll 中)

語法

'宣告
<SerializableAttribute> _
Public MustInherit Class TSqlParser
'用途
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

TSqlParser 型別公開下列成員。

屬性

  名稱 說明
公用屬性 QuotedIdentifier Gets a value that indicates whether the quoted identifier is on.

上層

方法

  名稱 說明
公用方法 Create Creates a Transact-SQL parser for the specified version.
公用方法 Equals (繼承自 Object。)
受保護的方法 Finalize (繼承自 Object。)
公用方法 GetHashCode (繼承自 Object。)
公用方法 GetTokenStream(TextReader, IList<ParseError>%) Returns a list of parser tokens and a list of errors by using the provided text reader.
公用方法 GetTokenStream(TextReader, IList<ParseError>%, Int32, Int32, Int32) Returns a list of parser tokens and a list of errors by using the provided text reader.
公用方法 GetType (繼承自 Object。)
受保護的方法 MemberwiseClone (繼承自 Object。)
公用方法 Parse(TextReader, IList<ParseError>%) Returns a script fragment and a list of errors by using the provided text reader.
公用方法 Parse(IList<TSqlParserToken>, IList<ParseError>%) Returns a script fragment and a list of errors by using the provided tokens.
公用方法 Parse(TextReader, IList<ParseError>%, Int32, Int32, Int32) Returns a script fragment and a list of errors by using the provided values.
公用方法 ParseBooleanExpression(TextReader, IList<ParseError>%) Returns a Boolean expression and a list of errors by using the provided text reader.
公用方法 ParseBooleanExpression(TextReader, IList<ParseError>%, Int32, Int32, Int32) Returns a Boolean expression and a list of errors by using the provided values.
公用方法 ParseChildObjectName(TextReader, IList<ParseError>%) Returns a child object name and a list of errors by using the provided text reader.
公用方法 ParseChildObjectName(TextReader, IList<ParseError>%, Int32, Int32, Int32) Returns a child object name and a list of errors by using the provided values.
公用方法 ParseConstantOrIdentifier(TextReader, IList<ParseError>%) Returns a constant or identifier and a list of errors by using the provided text reader.
公用方法 ParseConstantOrIdentifier(TextReader, IList<ParseError>%, Int32, Int32, Int32) Returns a constant or identifier and a list of errors by using the provided values.
公用方法 ParseConstantOrIdentifierWithDefault(TextReader, IList<ParseError>%) Returns a constant or identifier with default values and a list of errors by using the provided text reader.
公用方法 ParseConstantOrIdentifierWithDefault(TextReader, IList<ParseError>%, Int32, Int32, Int32) Returns a constant or identifier with default values and a list of errors.
公用方法 ParseExpression(TextReader, IList<ParseError>%) Returns an expression and a list of errors by using the provided text reader.
公用方法 ParseExpression(TextReader, IList<ParseError>%, Int32, Int32, Int32) Returns an expression and a list of errors by using the provided values.
公用方法 ParseScalarDataType(TextReader, IList<ParseError>%) Returns a scalar data type and a list of errors by using the provided text reader.
公用方法 ParseScalarDataType(TextReader, IList<ParseError>%, Int32, Int32, Int32) Returns a scalar data type and a list of errors by using the provided values.
公用方法 ParseSchemaObjectName(TextReader, IList<ParseError>%) Returns a schema object name and a list of errors by using the provided text reader.
公用方法 ParseSchemaObjectName(TextReader, IList<ParseError>%, Int32, Int32, Int32) Returns a schema object name and a list of errors by using the provided values.
公用方法 ParseStatementList(TextReader, IList<ParseError>%) Returns a statement list and a list of errors by using the provided text reader.
公用方法 ParseStatementList(TextReader, IList<ParseError>%, Int32, Int32, Int32) Returns a statement list and a list of errors by using the provided values.
公用方法 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.
公用方法 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.
公用方法 ToString (繼承自 Object。)
公用方法 TryParseSqlModuleObjectName Indicates whether the input script contains a SQL module object name.
公用方法 TryParseTriggerModule Indicates whether the input script contains a trigger module.
公用方法 ValidateIdentifier Returns whether a name is a valid SQL identifier.

上層

執行緒安全性

這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。

請參閱

參考

Microsoft.SqlServer.TransactSql.ScriptDom 命名空間