| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864 |
- //------------------------------------------------------------------------------
- // <copyright file="SmiRequestExecutor.cs" company="Microsoft">
- // Copyright (c) Microsoft Corporation. All rights reserved.
- // </copyright>
- // <owner current="true" primary="true">Microsoft</owner>
- // <owner current="true" primary="false">Microsoft</owner>
- //------------------------------------------------------------------------------
- namespace Microsoft.SqlServer.Server {
- using System;
- using System.Data;
- using System.Data.SqlTypes;
- using System.Transactions;
- internal abstract class SmiRequestExecutor : SmiTypedGetterSetter, ITypedSettersV3, ITypedSetters, ITypedGetters, IDisposable {
- #region SMI active methods as of V210
- #region Overall control methods
- public virtual void Close(
- SmiEventSink eventSink
- ) {
- // Adding as of V3
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V2- and hasn't implemented V3 yet.
- // 2) Server didn't implement V3 on some interface, but negotiated V3+.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- internal virtual SmiEventStream Execute (
- SmiConnection connection, // Assigned connection
- long transactionId, // Assigned transaction
- Transaction associatedTransaction, // SysTx transaction associated with request, if any.
- CommandBehavior behavior, // CommandBehavior,
- SmiExecuteType executeType // Type of execute called (NonQuery/Pipe/Reader/Row, etc)
- ) {
- // Adding as of V210
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V200- and hasn't implemented V210 yet.
- // 2) Server didn't implement V210 on some interface, but negotiated V210+.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- #endregion
- #region Supported access method types (Get] vs. Set)
- // RequestExecutor only supports setting parameter values, not getting
- internal override bool CanGet {
- get {
- return false;
- }
- }
- internal override bool CanSet {
- get {
- return true;
- }
- }
- #endregion
- // SmiRequestExecutor and it's subclasses should NOT override Getters from SmiTypedGetterSetter
- // Calls against those methods on a Request Executor are not allowed.
- #region Value setters
- // Set DEFAULT bit for parameter
- internal abstract void SetDefault( int ordinal );
- // SmiRequestExecutor subclasses must implement all Setters from SmiTypedGetterSetter
- // SmiRequestExecutor itself does not need to implement these, since it inherits the default implementation from
- // SmiTypedGetterSetter
- #endregion
- #endregion
- #region Obsolete as of V210
- internal virtual SmiEventStream Execute (
- SmiConnection connection, // Assigned connection
- long transactionId, // Assigned transaction
- CommandBehavior behavior, // CommandBehavior,
- SmiExecuteType executeType // Type of execute called (NonQuery/Pipe/Reader/Row, etc)
- ) {
- // Obsoleting as of V210
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V210+ (and doesn't implement it).
- // 2) Server doesn't implement this method, but negotiated V200-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- #endregion
- #region OBSOLETE STUFF that never shipped without obsolete attribute
- //
- // IDisposable
- //
- public virtual void Dispose( ) {
- // ******** OBSOLETING from SMI -- use close instead.
- // Intended to be removed (along with removing inheriting IDisposable) prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- // Check to see if parameter's DEFAULT bit is set
- internal virtual bool IsSetAsDefault( int ordinal ) {
- // ******** OBSOLETING from SMI -- Not needed.
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- // Get the count of parameters
- public virtual int Count {
- get {
- // ******** OBSOLETING from SMI -- front end needs to keep track of input param metadata itself. Outparam metadata comes with ParametersAvailable event.
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- }
- // Get the meta data associated with the parameter.
- public virtual SmiParameterMetaData GetMetaData( int ordinal ) {
- // ******** OBSOLETING from SMI -- front end needs to keep track of input param metadata itself. Outparam metadata comes with ParametersAvailable event.
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- //
- // ITypedGetters methods (for output parameters) (OBSOLETE)
- //
- public virtual bool IsDBNull( int ordinal ) {
- // ******** OBSOLETING from SMI -- use ITypedGettersV3 in ParametersAvailable event instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual SqlDbType GetVariantType( int ordinal ) {
- // ******** OBSOLETING from SMI -- use ITypedGettersV3 in ParametersAvailable event instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual Boolean GetBoolean( int ordinal ) {
- // ******** OBSOLETING from SMI -- use ITypedGettersV3 in ParametersAvailable event instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual Byte GetByte( int ordinal ) {
- // ******** OBSOLETING from SMI -- use ITypedGettersV3 in ParametersAvailable event instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual long GetBytes( int ordinal, long fieldOffset, byte[] buffer, int bufferOffset, int length ) {
- // ******** OBSOLETING from SMI -- use ITypedGettersV3 in ParametersAvailable event instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual Char GetChar( int ordinal ) {
- // ******** OBSOLETING from SMI -- use ITypedGettersV3 in ParametersAvailable event instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual long GetChars( int ordinal, long fieldOffset, char[] buffer, int bufferOffset, int length ) {
- // ******** OBSOLETING from SMI -- use ITypedGettersV3 in ParametersAvailable event instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual Int16 GetInt16( int ordinal ) {
- // ******** OBSOLETING from SMI -- use ITypedGettersV3 in ParametersAvailable event instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual Int32 GetInt32( int ordinal ) {
- // ******** OBSOLETING from SMI -- use ITypedGettersV3 in ParametersAvailable event instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual Int64 GetInt64( int ordinal ) {
- // ******** OBSOLETING from SMI -- use ITypedGettersV3 in ParametersAvailable event instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual Single GetFloat( int ordinal ) {
- // ******** OBSOLETING from SMI -- use ITypedGettersV3 in ParametersAvailable event instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual Double GetDouble( int ordinal ) {
- // ******** OBSOLETING from SMI -- use ITypedGettersV3 in ParametersAvailable event instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual String GetString( int ordinal ) {
- // ******** OBSOLETING from SMI -- use ITypedGettersV3 in ParametersAvailable event instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual Decimal GetDecimal( int ordinal ) {
- // ******** OBSOLETING from SMI -- use ITypedGettersV3 in ParametersAvailable event instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual DateTime GetDateTime( int ordinal ) {
- // ******** OBSOLETING from SMI -- use ITypedGettersV3 in ParametersAvailable event instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual Guid GetGuid( int ordinal ) {
- // ******** OBSOLETING from SMI -- use ITypedGettersV3 in ParametersAvailable event instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual SqlBoolean GetSqlBoolean( int ordinal ) {
- // ******** OBSOLETING from SMI -- use ITypedGettersV3 in ParametersAvailable event instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual SqlByte GetSqlByte( int ordinal ) {
- // ******** OBSOLETING from SMI -- use ITypedGettersV3 in ParametersAvailable event instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual SqlInt16 GetSqlInt16( int ordinal ) {
- // ******** OBSOLETING from SMI -- use ITypedGettersV3 in ParametersAvailable event instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual SqlInt32 GetSqlInt32( int ordinal ) {
- // ******** OBSOLETING from SMI -- use ITypedGettersV3 in ParametersAvailable event instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual SqlInt64 GetSqlInt64( int ordinal ) {
- // ******** OBSOLETING from SMI -- use ITypedGettersV3 in ParametersAvailable event instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual SqlSingle GetSqlSingle( int ordinal ) {
- // ******** OBSOLETING from SMI -- use ITypedGettersV3 in ParametersAvailable event instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual SqlDouble GetSqlDouble( int ordinal ) {
- // ******** OBSOLETING from SMI -- use ITypedGettersV3 in ParametersAvailable event instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual SqlMoney GetSqlMoney( int ordinal ) {
- // ******** OBSOLETING from SMI -- use ITypedGettersV3 in ParametersAvailable event instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual SqlDateTime GetSqlDateTime( int ordinal ) {
- // ******** OBSOLETING from SMI -- use ITypedGettersV3 in ParametersAvailable event instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual SqlDecimal GetSqlDecimal( int ordinal ) {
- // ******** OBSOLETING from SMI -- use ITypedGettersV3 in ParametersAvailable event instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual SqlString GetSqlString( int ordinal ) {
- // ******** OBSOLETING from SMI -- use ITypedGettersV3 in ParametersAvailable event instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual SqlBinary GetSqlBinary( int ordinal ) {
- // ******** OBSOLETING from SMI -- use ITypedGettersV3 in ParametersAvailable event instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual SqlGuid GetSqlGuid( int ordinal ) {
- // ******** OBSOLETING from SMI -- use ITypedGettersV3 in ParametersAvailable event instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual SqlChars GetSqlChars( int ordinal ) {
- // ******** OBSOLETING from SMI -- use ITypedGettersV3 in ParametersAvailable event instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual SqlBytes GetSqlBytes( int ordinal ) {
- // ******** OBSOLETING from SMI -- use ITypedGettersV3 in ParametersAvailable event instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual SqlXml GetSqlXml( int ordinal ) {
- // ******** OBSOLETING from SMI -- use ITypedGettersV3 in ParametersAvailable event instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual SqlXml GetSqlXmlRef( int ordinal ) {
- // ******** OBSOLETING from SMI -- use ITypedGettersV3 in ParametersAvailable event instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual SqlBytes GetSqlBytesRef( int ordinal ) {
- // ******** OBSOLETING from SMI -- use ITypedGettersV3 in ParametersAvailable event instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual SqlChars GetSqlCharsRef( int ordinal ) {
- // ******** OBSOLETING from SMI -- use ITypedGettersV3 in ParametersAvailable event instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- //
- // ITypedSetters methods
- //
- public virtual void SetDBNull( int ordinal ) {
- // ******** OBSOLETING from SMI -- use related ITypedSettersV3 method instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual void SetBoolean( int ordinal, Boolean value ) {
- // ******** OBSOLETING from SMI -- use related ITypedSettersV3 method instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual void SetByte( int ordinal, Byte value ) {
- // ******** OBSOLETING from SMI -- use related ITypedSettersV3 method instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual void SetBytes( int ordinal, long fieldOffset, byte[] buffer, int bufferOffset, int length ) {
- // ******** OBSOLETING from SMI -- use related ITypedSettersV3 method instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual void SetChar( int ordinal, char value ) {
- // ******** OBSOLETING from SMI -- use related ITypedSettersV3 method instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual void SetChars( int ordinal, long fieldOffset, char[] buffer, int bufferOffset, int length ) {
- // ******** OBSOLETING from SMI -- use related ITypedSettersV3 method instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual void SetInt16( int ordinal, Int16 value ) {
- // ******** OBSOLETING from SMI -- use related ITypedSettersV3 method instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual void SetInt32( int ordinal, Int32 value ) {
- // ******** OBSOLETING from SMI -- use related ITypedSettersV3 method instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual void SetInt64( int ordinal, Int64 value ) {
- // ******** OBSOLETING from SMI -- use related ITypedSettersV3 method instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual void SetFloat( int ordinal, Single value ) {
- // ******** OBSOLETING from SMI -- use related ITypedSettersV3 method instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual void SetDouble( int ordinal, Double value ) {
- // ******** OBSOLETING from SMI -- use related ITypedSettersV3 method instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual void SetString( int ordinal, string value )
- {
- // Implemented as virtual method to allow transport to remove it's implementation
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V2 and dropped support for V1.
- // 2) Server didn't implement V1 on some interface and negotiated V1.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual void SetString( int ordinal, string value, int offset ) {
- // ******** OBSOLETING from SMI -- use related ITypedSettersV3 method instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual void SetDecimal( int ordinal, Decimal value ) {
- // ******** OBSOLETING from SMI -- use related ITypedSettersV3 method instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual void SetDateTime( int ordinal, DateTime value ) {
- // ******** OBSOLETING from SMI -- use related ITypedSettersV3 method instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual void SetGuid( int ordinal, Guid value ) {
- // ******** OBSOLETING from SMI -- use related ITypedSettersV3 method instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual void SetSqlBoolean( int ordinal, SqlBoolean value ) {
- // ******** OBSOLETING from SMI -- use related ITypedSettersV3 method instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual void SetSqlByte( int ordinal, SqlByte value ) {
- // ******** OBSOLETING from SMI -- use related ITypedSettersV3 method instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual void SetSqlInt16( int ordinal, SqlInt16 value ) {
- // ******** OBSOLETING from SMI -- use related ITypedSettersV3 method instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual void SetSqlInt32( int ordinal, SqlInt32 value ) {
- // ******** OBSOLETING from SMI -- use related ITypedSettersV3 method instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual void SetSqlInt64( int ordinal, SqlInt64 value ) {
- // ******** OBSOLETING from SMI -- use related ITypedSettersV3 method instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual void SetSqlSingle( int ordinal, SqlSingle value ) {
- // ******** OBSOLETING from SMI -- use related ITypedSettersV3 method instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual void SetSqlDouble( int ordinal, SqlDouble value ) {
- // ******** OBSOLETING from SMI -- use related ITypedSettersV3 method instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual void SetSqlMoney( int ordinal, SqlMoney value ) {
- // ******** OBSOLETING from SMI -- use related ITypedSettersV3 method instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual void SetSqlDateTime( int ordinal, SqlDateTime value ) {
- // ******** OBSOLETING from SMI -- use related ITypedSettersV3 method instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual void SetSqlDecimal( int ordinal, SqlDecimal value ) {
- // ******** OBSOLETING from SMI -- use related ITypedSettersV3 method instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual void SetSqlString( int ordinal, SqlString value )
- {
- // Implemented as empty virtual method to allow transport to remove it's implementation
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V2 and dropped support for V1.
- // 2) Server didn't implement V1 on some interface and negotiated V1.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual void SetSqlString( int ordinal, SqlString value, int offset ) {
- // ******** OBSOLETING from SMI -- use related ITypedSettersV3 method instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual void SetSqlBinary( int ordinal, SqlBinary value )
- {
- // Implemented as empty virtual method to allow transport to remove it's implementation
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V2 and dropped support for V1.
- // 2) Server didn't implement V1 on some interface and negotiated V1.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual void SetSqlBinary( int ordinal, SqlBinary value, int offset ) {
- // ******** OBSOLETING from SMI -- use related ITypedSettersV3 method instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual void SetSqlGuid( int ordinal, SqlGuid value ) {
- // ******** OBSOLETING from SMI -- use related ITypedSettersV3 method instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual void SetSqlChars( int ordinal, SqlChars value )
- {
- // Implemented as empty virtual method to allow transport to remove it's implementation
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V2 and dropped support for V1.
- // 2) Server didn't implement V1 on some interface and negotiated V1.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual void SetSqlChars( int ordinal, SqlChars value, int offset ) {
- // ******** OBSOLETING from SMI -- use related ITypedSettersV3 method instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual void SetSqlBytes( int ordinal, SqlBytes value )
- {
- // Implemented as empty virtual method to allow transport to remove it's implementation
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V2 and dropped support for V1.
- // 2) Server didn't implement V1 on some interface and negotiated V1.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual void SetSqlBytes( int ordinal, SqlBytes value, int offset ) {
- // ******** OBSOLETING from SMI -- use related ITypedSettersV3 method instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- public virtual void SetSqlXml( int ordinal, SqlXml value ) {
- // ******** OBSOLETING from SMI -- use related ITypedSettersV3 method instead
- // Intended to be removed prior to RTM.
- // Implement body with throw because there are only a couple of ways to get to this code:
- // 1) Client is calling this method even though the server negotiated for V3+ and dropped support for V2-.
- // 2) Server didn't implement V2- on some interface and negotiated V2-.
- throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
- }
- #endregion
- }
- }
|