C# 클래스 System.Data.SqlClient.TdsParser

파일 보기 프로젝트 열기: dotnet/corefx 1 사용 예제들

Private Properties

프로퍼티 타입 설명
AdjustDecimalScale decimal
AdjustSqlDecimalScale System.Data.SqlTypes.SqlDecimal
CheckResetConnection void
Connect void
ConsumePreLoginHandshake PreLoginHandshakeStatus
CopyCharsToBytes void
CopyStringToBytes void
CreateSession System.Data.SqlClient.TdsParserStateObject
Deactivate void
DecrementNonTransactedOpenResultCount void
Disconnect void
DisconnectTransaction void
DrainData void
EnableMars void
ExecuteFlushTaskCallback void
FailureCleanup void
FinalizeExecuteRPC void
FireInfoMessageEvent void
GetCodePage int
GetEncodingCharLength int
GetNullSqlValue object
GetSession System.Data.SqlClient.TdsParserStateObject
GetTerminationTask System.Threading.Task
IncrementNonTransactedOpenResultCount int
IsBOMNeeded bool
IsNull bool
IsValidTdsToken bool
IsVarTimeTds bool
LoadSSPILibrary void
NullIfCompletedWriteTask System.Threading.Task
PlpBytesLeft ulong
PlpBytesTotalLength ulong
PrepareResetConnection void
ProcessAttention void
ProcessPendingAck void
ProcessSNIError SqlError
ProcessSSPI void
ProcessSqlStatistics void
PutSession void
ReadPlpAnsiChars int
ReadPlpUnicodeChars int
RemoveEncryption void
RollbackOrphanedAPITransactions void
Run bool
SNISSPIData void
SSPIData void
SSPIError void
SendPreLoginHandshake void
SkipPlpValue ulong
StateValueLength int
TdsExecuteRPC System.Threading.Task
TdsExecuteRPC_OnFailure void
TdsExecuteSQLBatch System.Threading.Task
TdsExecuteTransactionManagerRequest System.Data.SqlClient.SqlDataReader
TdsLogin void
TdsParser System.Collections.Generic
TdsParser System.Collections.Generic
ThrowExceptionAndWarning void
ThrowUnsupportedCollationEncountered void
TryCommonProcessMetaData bool
TryGetAltRowId bool
TryGetDataLength bool
TryGetTokenLength bool
TryPlpBytesLeft bool
TryProcessAltMetaData bool
TryProcessColInfo bool
TryProcessCollation bool
TryProcessColumnHeader bool
TryProcessColumnHeaderNoNBC bool
TryProcessDone bool
TryProcessEnvChange bool
TryProcessError bool
TryProcessFeatureExtAck bool
TryProcessLoginAck bool
TryProcessMetaData bool
TryProcessOneTable bool
TryProcessReturnValue bool
TryProcessRow bool
TryProcessSessionState bool
TryProcessUDTMetaData bool
TryReadDecimalBits bool
TryReadPlpUnicodeChars bool
TryReadPlpUnicodeCharsChunk bool
TryReadSqlDateTime bool
TryReadSqlDecimal bool
TryReadSqlStringValue bool
TryReadSqlValue bool
TryReadSqlValueInternal bool
TryReadSqlVariant bool
TryReadTwoBinaryFields bool
TryReadTwoStringFields bool
TryRun bool
TrySkipPlpValue bool
TrySkipRow bool
TrySkipRow bool
TrySkipValue bool
WriteBulkCopyDone System.Threading.Task
WriteBulkCopyMetaData void
WriteBulkCopyValue System.Threading.Task
WriteBulkCopyValueSetupContinuation System.Threading.Task
WriteCharArray System.Threading.Task
WriteCollation void
WriteCurrency void
WriteDate void
WriteDateTime2 void
WriteDateTimeOffset void
WriteDecimal void
WriteDouble void
WriteEncodingChar System.Threading.Task
WriteEncodingChar System.Threading.Task
WriteFloat void
WriteIdentifier void
WriteIdentifierWithShortLength void
WriteInt void
WriteLong void
WriteMarsHeaderData void
WriteParameterName void
WriteParameterVarLen void
WritePartialLong void
WriteRPCBatchHeaders void
WriteSessionRecoveryFeatureRequest int
WriteShort void
WriteSmiParameter void
WriteSmiParameterMetaData void
WriteSmiTypeInfo void
WriteSqlDecimal void
WriteSqlMoney void
WriteSqlValue System.Threading.Task
WriteSqlVariantDataRowValue System.Threading.Task
WriteSqlVariantDate void
WriteSqlVariantDateTime2 void
WriteSqlVariantHeader void
WriteSqlVariantValue System.Threading.Task
WriteStreamFeed System.Threading.Task
WriteString System.Threading.Task
WriteString System.Threading.Task
WriteTextFeed System.Threading.Task
WriteTime void
WriteTokenLength void
WriteTvpColumnMetaData void
WriteTvpOrderUnique void
WriteTvpTypeInfo void
WriteUnsignedInt void
WriteUnsignedLong void
WriteUnsignedShort void
WriteUnterminatedSqlValue Task
WriteUnterminatedValue Task
WriteValue Task
WriteXmlFeed Task

비공개 메소드들

메소드 설명
AdjustDecimalScale ( decimal value, int newScale ) : decimal
AdjustSqlDecimalScale ( SqlDecimal d, int newScale ) : SqlDecimal
CheckResetConnection ( System.Data.SqlClient.TdsParserStateObject stateObj ) : void
Connect ( System.Data.SqlClient.ServerInfo serverInfo, System.Data.SqlClient.SqlInternalConnectionTds connHandler, bool ignoreSniOpenTimeout, long timerExpire, bool encrypt, bool trustServerCert, bool integratedSecurity, bool withFailover ) : void
ConsumePreLoginHandshake ( bool encrypt, bool trustServerCert, bool integratedSecurity, bool &marsCapable ) : PreLoginHandshakeStatus
CopyCharsToBytes ( char source, int sourceOffset, byte dest, int destOffset, int charLength ) : void
CopyStringToBytes ( string source, int sourceOffset, byte dest, int destOffset, int charLength ) : void
CreateSession ( ) : System.Data.SqlClient.TdsParserStateObject
Deactivate ( bool connectionIsDoomed ) : void
DecrementNonTransactedOpenResultCount ( ) : void
Disconnect ( ) : void
DisconnectTransaction ( System.Data.SqlClient.SqlInternalTransaction internalTransaction ) : void
DrainData ( System.Data.SqlClient.TdsParserStateObject stateObj ) : void
EnableMars ( ) : void
ExecuteFlushTaskCallback ( System.Threading.Task tsk, System.Data.SqlClient.TdsParserStateObject stateObj, TaskCompletionSource completion, bool releaseConnectionLock ) : void
FailureCleanup ( System.Data.SqlClient.TdsParserStateObject stateObj, Exception e ) : void
FinalizeExecuteRPC ( System.Data.SqlClient.TdsParserStateObject stateObj ) : void
FireInfoMessageEvent ( SqlConnection connection, System.Data.SqlClient.TdsParserStateObject stateObj, SqlError error ) : void
GetCodePage ( SqlCollation collation, System.Data.SqlClient.TdsParserStateObject stateObj ) : int
GetEncodingCharLength ( string value, int numChars, int charOffset, Encoding encoding ) : int
GetNullSqlValue ( SqlBuffer nullVal, SqlMetaDataPriv md ) : object
GetSession ( object owner ) : System.Data.SqlClient.TdsParserStateObject
GetTerminationTask ( System.Threading.Task unterminatedWriteTask, object value, MetaType type, int actualLength, System.Data.SqlClient.TdsParserStateObject stateObj, bool isDataFeed ) : System.Threading.Task
IncrementNonTransactedOpenResultCount ( ) : int
IsBOMNeeded ( MetaType type, object value ) : bool
IsNull ( MetaType mt, ulong length ) : bool
IsValidTdsToken ( byte token ) : bool

Checks if the given token is a valid TDS token

IsVarTimeTds ( byte tdsType ) : bool
LoadSSPILibrary ( ) : void
NullIfCompletedWriteTask ( System.Threading.Task task ) : System.Threading.Task
PlpBytesLeft ( System.Data.SqlClient.TdsParserStateObject stateObj ) : ulong
PlpBytesTotalLength ( System.Data.SqlClient.TdsParserStateObject stateObj ) : ulong
PrepareResetConnection ( ) : void
ProcessAttention ( System.Data.SqlClient.TdsParserStateObject stateObj ) : void
ProcessPendingAck ( System.Data.SqlClient.TdsParserStateObject stateObj ) : void
ProcessSNIError ( System.Data.SqlClient.TdsParserStateObject stateObj ) : SqlError
ProcessSSPI ( int receivedLength ) : void
ProcessSqlStatistics ( ushort curCmd, ushort status, int count ) : void
PutSession ( System.Data.SqlClient.TdsParserStateObject session ) : void
ReadPlpAnsiChars ( char &buff, int offst, int len, SqlMetaDataPriv metadata, System.Data.SqlClient.TdsParserStateObject stateObj ) : int
ReadPlpUnicodeChars ( char &buff, int offst, int len, System.Data.SqlClient.TdsParserStateObject stateObj ) : int
RemoveEncryption ( ) : void
RollbackOrphanedAPITransactions ( ) : void
Run ( RunBehavior runBehavior, SqlCommand cmdHandler, System.Data.SqlClient.SqlDataReader dataStream, System.Data.SqlClient.BulkCopySimpleResultSet bulkCopyHandler, System.Data.SqlClient.TdsParserStateObject stateObj ) : bool
SNISSPIData ( byte receivedBuff, UInt32 receivedLength, byte sendBuff, UInt32 &sendLength ) : void
SSPIData ( byte receivedBuff, UInt32 receivedLength, byte sendBuff, UInt32 &sendLength ) : void
SSPIError ( string error, string procedure ) : void
SendPreLoginHandshake ( byte instanceName, bool encrypt ) : void
SkipPlpValue ( ulong cb, System.Data.SqlClient.TdsParserStateObject stateObj ) : ulong
StateValueLength ( int dataLen ) : int
TdsExecuteRPC ( _SqlRPC rpcArray, int timeout, bool inSchema, System.Data.SqlClient.TdsParserStateObject stateObj, bool isCommandProc, bool sync = true, TaskCompletionSource completion = null, int startRpc, int startParam ) : System.Threading.Task
TdsExecuteRPC_OnFailure ( Exception exc, System.Data.SqlClient.TdsParserStateObject stateObj ) : void
TdsExecuteSQLBatch ( string text, int timeout, System.Data.SqlClient.TdsParserStateObject stateObj, bool sync, bool callerHasConnectionLock = false ) : System.Threading.Task
TdsExecuteTransactionManagerRequest ( byte buffer, System.Data.SqlClient.TdsEnums request, string transactionName, System.Data.SqlClient.TdsEnums isoLevel, int timeout, System.Data.SqlClient.SqlInternalTransaction transaction, System.Data.SqlClient.TdsParserStateObject stateObj ) : System.Data.SqlClient.SqlDataReader
TdsLogin ( SqlLogin rec, System.Data.SqlClient.TdsEnums requestedFeatures, System.Data.SqlClient.SessionData recoverySessionData ) : void
TdsParser ( ) : System.Collections.Generic
TdsParser ( bool MARS, bool fAsynchronous ) : System.Collections.Generic
ThrowExceptionAndWarning ( System.Data.SqlClient.TdsParserStateObject stateObj, bool callerHasConnectionLock = false, bool asyncClose = false ) : void
ThrowUnsupportedCollationEncountered ( System.Data.SqlClient.TdsParserStateObject stateObj ) : void
TryCommonProcessMetaData ( System.Data.SqlClient.TdsParserStateObject stateObj, _SqlMetaData col ) : bool
TryGetAltRowId ( System.Data.SqlClient.TdsParserStateObject stateObj, int &id ) : bool
TryGetDataLength ( SqlMetaDataPriv colmeta, System.Data.SqlClient.TdsParserStateObject stateObj, ulong &length ) : bool
TryGetTokenLength ( byte token, System.Data.SqlClient.TdsParserStateObject stateObj, int &tokenLength ) : bool
TryPlpBytesLeft ( System.Data.SqlClient.TdsParserStateObject stateObj, ulong &left ) : bool
TryProcessAltMetaData ( int cColumns, System.Data.SqlClient.TdsParserStateObject stateObj, _SqlMetaDataSet &metaData ) : bool
TryProcessColInfo ( _SqlMetaDataSet columns, System.Data.SqlClient.SqlDataReader reader, System.Data.SqlClient.TdsParserStateObject stateObj, _SqlMetaDataSet &metaData ) : bool
TryProcessCollation ( System.Data.SqlClient.TdsParserStateObject stateObj, SqlCollation &collation ) : bool
TryProcessColumnHeader ( SqlMetaDataPriv col, System.Data.SqlClient.TdsParserStateObject stateObj, int columnOrdinal, bool &isNull, ulong &length ) : bool
TryProcessColumnHeaderNoNBC ( SqlMetaDataPriv col, System.Data.SqlClient.TdsParserStateObject stateObj, bool &isNull, ulong &length ) : bool
TryProcessDone ( SqlCommand cmd, System.Data.SqlClient.SqlDataReader reader, RunBehavior &run, System.Data.SqlClient.TdsParserStateObject stateObj ) : bool
TryProcessEnvChange ( int tokenLength, System.Data.SqlClient.TdsParserStateObject stateObj, SqlEnvChange &sqlEnvChange ) : bool
TryProcessError ( byte token, System.Data.SqlClient.TdsParserStateObject stateObj, SqlError &error ) : bool
TryProcessFeatureExtAck ( System.Data.SqlClient.TdsParserStateObject stateObj ) : bool
TryProcessLoginAck ( System.Data.SqlClient.TdsParserStateObject stateObj, SqlLoginAck &sqlLoginAck ) : bool
TryProcessMetaData ( int cColumns, System.Data.SqlClient.TdsParserStateObject stateObj, _SqlMetaDataSet &metaData ) : bool
TryProcessOneTable ( System.Data.SqlClient.TdsParserStateObject stateObj, int &length, MultiPartTableName &multiPartTableName ) : bool
TryProcessReturnValue ( int length, System.Data.SqlClient.TdsParserStateObject stateObj, SqlReturnValue &returnValue ) : bool
TryProcessRow ( _SqlMetaDataSet columns, object buffer, int map, System.Data.SqlClient.TdsParserStateObject stateObj ) : bool
TryProcessSessionState ( System.Data.SqlClient.TdsParserStateObject stateObj, int length, System.Data.SqlClient.SessionData sdata ) : bool
TryProcessUDTMetaData ( SqlMetaDataPriv metaData, System.Data.SqlClient.TdsParserStateObject stateObj ) : bool
TryReadDecimalBits ( int length, System.Data.SqlClient.TdsParserStateObject stateObj, int &bits ) : bool
TryReadPlpUnicodeChars ( char &buff, int offst, int len, System.Data.SqlClient.TdsParserStateObject stateObj, int &totalCharsRead ) : bool
TryReadPlpUnicodeCharsChunk ( char buff, int offst, int len, System.Data.SqlClient.TdsParserStateObject stateObj, int &charsRead ) : bool
TryReadSqlDateTime ( SqlBuffer value, byte tdsType, int length, byte scale, System.Data.SqlClient.TdsParserStateObject stateObj ) : bool
TryReadSqlDecimal ( SqlBuffer value, int length, byte precision, byte scale, System.Data.SqlClient.TdsParserStateObject stateObj ) : bool
TryReadSqlStringValue ( SqlBuffer value, byte type, int length, Encoding encoding, bool isPlp, System.Data.SqlClient.TdsParserStateObject stateObj ) : bool
TryReadSqlValue ( SqlBuffer value, SqlMetaDataPriv md, int length, System.Data.SqlClient.TdsParserStateObject stateObj ) : bool
TryReadSqlValueInternal ( SqlBuffer value, byte tdsType, int length, System.Data.SqlClient.TdsParserStateObject stateObj ) : bool
TryReadSqlVariant ( SqlBuffer value, int lenTotal, System.Data.SqlClient.TdsParserStateObject stateObj ) : bool
TryReadTwoBinaryFields ( SqlEnvChange env, System.Data.SqlClient.TdsParserStateObject stateObj ) : bool
TryReadTwoStringFields ( SqlEnvChange env, System.Data.SqlClient.TdsParserStateObject stateObj ) : bool
TryRun ( RunBehavior runBehavior, SqlCommand cmdHandler, System.Data.SqlClient.SqlDataReader dataStream, System.Data.SqlClient.BulkCopySimpleResultSet bulkCopyHandler, System.Data.SqlClient.TdsParserStateObject stateObj, bool &dataReady ) : bool
TrySkipPlpValue ( ulong cb, System.Data.SqlClient.TdsParserStateObject stateObj, ulong &totalBytesSkipped ) : bool
TrySkipRow ( _SqlMetaDataSet columns, System.Data.SqlClient.TdsParserStateObject stateObj ) : bool
TrySkipRow ( _SqlMetaDataSet columns, int startCol, System.Data.SqlClient.TdsParserStateObject stateObj ) : bool
TrySkipValue ( SqlMetaDataPriv md, int columnOrdinal, System.Data.SqlClient.TdsParserStateObject stateObj ) : bool

This method skips bytes of a single column value from the media. It supports NBCROW and handles all types of values, including PLP and long

WriteBulkCopyDone ( System.Data.SqlClient.TdsParserStateObject stateObj ) : System.Threading.Task
WriteBulkCopyMetaData ( _SqlMetaDataSet metadataCollection, int count, System.Data.SqlClient.TdsParserStateObject stateObj ) : void
WriteBulkCopyValue ( object value, SqlMetaDataPriv metadata, System.Data.SqlClient.TdsParserStateObject stateObj, bool isSqlType, bool isDataFeed, bool isNull ) : System.Threading.Task
WriteBulkCopyValueSetupContinuation ( System.Threading.Task internalWriteTask, Encoding saveEncoding, SqlCollation saveCollation, int saveCodePage, int saveLCID ) : System.Threading.Task
WriteCharArray ( char carr, int length, int offset, System.Data.SqlClient.TdsParserStateObject stateObj, bool canAccumulate = true ) : System.Threading.Task
WriteCollation ( SqlCollation collation, System.Data.SqlClient.TdsParserStateObject stateObj ) : void
WriteCurrency ( Decimal value, int length, System.Data.SqlClient.TdsParserStateObject stateObj ) : void
WriteDate ( System.DateTime value, System.Data.SqlClient.TdsParserStateObject stateObj ) : void
WriteDateTime2 ( System.DateTime value, byte scale, int length, System.Data.SqlClient.TdsParserStateObject stateObj ) : void
WriteDateTimeOffset ( DateTimeOffset value, byte scale, int length, System.Data.SqlClient.TdsParserStateObject stateObj ) : void
WriteDecimal ( decimal value, System.Data.SqlClient.TdsParserStateObject stateObj ) : void
WriteDouble ( double v, System.Data.SqlClient.TdsParserStateObject stateObj ) : void
WriteEncodingChar ( string s, Encoding encoding, System.Data.SqlClient.TdsParserStateObject stateObj, bool canAccumulate = true ) : System.Threading.Task
WriteEncodingChar ( string s, int numChars, int offset, Encoding encoding, System.Data.SqlClient.TdsParserStateObject stateObj, bool canAccumulate = true ) : System.Threading.Task
WriteFloat ( float v, System.Data.SqlClient.TdsParserStateObject stateObj ) : void
WriteIdentifier ( string s, System.Data.SqlClient.TdsParserStateObject stateObj ) : void
WriteIdentifierWithShortLength ( string s, System.Data.SqlClient.TdsParserStateObject stateObj ) : void
WriteInt ( int v, System.Data.SqlClient.TdsParserStateObject stateObj ) : void
WriteLong ( long v, System.Data.SqlClient.TdsParserStateObject stateObj ) : void
WriteMarsHeaderData ( System.Data.SqlClient.TdsParserStateObject stateObj, System.Data.SqlClient.SqlInternalTransaction transaction ) : void
WriteParameterName ( string parameterName, System.Data.SqlClient.TdsParserStateObject stateObj ) : void
WriteParameterVarLen ( MetaType type, int size, bool isNull, System.Data.SqlClient.TdsParserStateObject stateObj, bool unknownLength = false ) : void
WritePartialLong ( long v, int length, System.Data.SqlClient.TdsParserStateObject stateObj ) : void
WriteRPCBatchHeaders ( System.Data.SqlClient.TdsParserStateObject stateObj ) : void
WriteSessionRecoveryFeatureRequest ( System.Data.SqlClient.SessionData reconnectData, bool write ) : int
WriteShort ( int v, System.Data.SqlClient.TdsParserStateObject stateObj ) : void
WriteSmiParameter ( SqlParameter param, int paramIndex, bool sendDefault, System.Data.SqlClient.TdsParserStateObject stateObj ) : void
WriteSmiParameterMetaData ( Microsoft.SqlServer.Server metaData, bool sendDefault, System.Data.SqlClient.TdsParserStateObject stateObj ) : void
WriteSmiTypeInfo ( Microsoft.SqlServer.Server metaData, System.Data.SqlClient.TdsParserStateObject stateObj ) : void
WriteSqlDecimal ( SqlDecimal d, System.Data.SqlClient.TdsParserStateObject stateObj ) : void
WriteSqlMoney ( SqlMoney value, int length, System.Data.SqlClient.TdsParserStateObject stateObj ) : void
WriteSqlValue ( object value, MetaType type, int actualLength, int codePageByteSize, int offset, System.Data.SqlClient.TdsParserStateObject stateObj ) : System.Threading.Task
WriteSqlVariantDataRowValue ( object value, System.Data.SqlClient.TdsParserStateObject stateObj, bool canAccumulate = true ) : System.Threading.Task
WriteSqlVariantDate ( System.DateTime value, System.Data.SqlClient.TdsParserStateObject stateObj ) : void
WriteSqlVariantDateTime2 ( System.DateTime value, System.Data.SqlClient.TdsParserStateObject stateObj ) : void
WriteSqlVariantHeader ( int length, byte tdstype, byte propbytes, System.Data.SqlClient.TdsParserStateObject stateObj ) : void
WriteSqlVariantValue ( object value, int length, int offset, System.Data.SqlClient.TdsParserStateObject stateObj, bool canAccumulate = true ) : System.Threading.Task
WriteStreamFeed ( StreamDataFeed feed, System.Data.SqlClient.TdsParserStateObject stateObj, int len ) : System.Threading.Task
WriteString ( string s, System.Data.SqlClient.TdsParserStateObject stateObj, bool canAccumulate = true ) : System.Threading.Task
WriteString ( string s, int length, int offset, System.Data.SqlClient.TdsParserStateObject stateObj, bool canAccumulate = true ) : System.Threading.Task
WriteTextFeed ( TextDataFeed feed, Encoding encoding, bool needBom, System.Data.SqlClient.TdsParserStateObject stateObj, int size ) : System.Threading.Task
WriteTime ( System.TimeSpan value, byte scale, int length, System.Data.SqlClient.TdsParserStateObject stateObj ) : void
WriteTokenLength ( byte token, int length, System.Data.SqlClient.TdsParserStateObject stateObj ) : void
WriteTvpColumnMetaData ( Microsoft.SqlServer.Server md, bool isDefault, System.Data.SqlClient.TdsParserStateObject stateObj ) : void
WriteTvpOrderUnique ( Microsoft.SqlServer.Server metaData, System.Data.SqlClient.TdsParserStateObject stateObj ) : void
WriteTvpTypeInfo ( Microsoft.SqlServer.Server metaData, System.Data.SqlClient.TdsParserStateObject stateObj ) : void
WriteUnsignedInt ( uint i, System.Data.SqlClient.TdsParserStateObject stateObj ) : void
WriteUnsignedLong ( ulong uv, TdsParserStateObject stateObj ) : void
WriteUnsignedShort ( ushort us, TdsParserStateObject stateObj ) : void
WriteUnterminatedSqlValue ( object value, MetaType type, int actualLength, int codePageByteSize, int offset, TdsParserStateObject stateObj ) : Task
WriteUnterminatedValue ( object value, MetaType type, byte scale, int actualLength, int encodingByteSize, int offset, TdsParserStateObject stateObj, int paramSize, bool isDataFeed ) : Task
WriteValue ( object value, MetaType type, byte scale, int actualLength, int encodingByteSize, int offset, TdsParserStateObject stateObj, int paramSize, bool isDataFeed ) : Task
WriteXmlFeed ( XmlDataFeed feed, TdsParserStateObject stateObj, bool needBom, Encoding encoding, int size ) : Task