Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / Data / Microsoft / SqlServer / Server / SmiContext.cs / 1 / SmiContext.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //[....] //----------------------------------------------------------------------------- namespace Microsoft.SqlServer.Server { using System; using System.Data; using System.Data.Sql; using System.Data.SqlTypes; using System.Security.Principal; // NOTE: connection, transaction and context pipe operations could be // encapsulated in their own classes, and should if they get complex // (transaction is borderline at this point). internal abstract class SmiContext { internal abstract event EventHandler OutOfScope; internal abstract SmiConnection ContextConnection { get; } internal abstract long ContextTransactionId { get; } internal abstract System.Transactions.Transaction ContextTransaction { get; } internal abstract bool HasContextPipe { get; } internal abstract WindowsIdentity WindowsIdentity { get; } internal abstract SmiRecordBuffer CreateRecordBuffer ( SmiExtendedMetaData[] columnMetaData, // Extended metadata because it requires names, udttypename and xmlschemaname ignored SmiEventSink eventSink ); internal abstract SmiRequestExecutor CreateRequestExecutor ( string commandText, CommandType commandType, SmiParameterMetaData[] parameterMetaData, SmiEventSink eventSink ); // internal abstract object GetContextValue ( int key ); internal abstract void GetTriggerInfo ( SmiEventSink eventSink, out bool[] columnsUpdated, out TriggerAction action, out SqlXml eventInstanceData ); internal abstract void SendMessageToPipe( string message, SmiEventSink eventSink ); internal abstract void SendResultsStartToPipe( SmiRecordBuffer recordBuffer, SmiEventSink eventSink ); internal abstract void SendResultsRowToPipe( SmiRecordBuffer recordBuffer, SmiEventSink eventSink ); internal abstract void SendResultsEndToPipe( SmiRecordBuffer recordBuffer, SmiEventSink eventSink ); internal abstract void SetContextValue ( int key, object value ); // Scratch LOB storage region internal virtual SmiStream GetScratchStream( SmiEventSink sink ) { // 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, but negotiated V3+. System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); return null; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //[....] //----------------------------------------------------------------------------- namespace Microsoft.SqlServer.Server { using System; using System.Data; using System.Data.Sql; using System.Data.SqlTypes; using System.Security.Principal; // NOTE: connection, transaction and context pipe operations could be // encapsulated in their own classes, and should if they get complex // (transaction is borderline at this point). internal abstract class SmiContext { internal abstract event EventHandler OutOfScope; internal abstract SmiConnection ContextConnection { get; } internal abstract long ContextTransactionId { get; } internal abstract System.Transactions.Transaction ContextTransaction { get; } internal abstract bool HasContextPipe { get; } internal abstract WindowsIdentity WindowsIdentity { get; } internal abstract SmiRecordBuffer CreateRecordBuffer ( SmiExtendedMetaData[] columnMetaData, // Extended metadata because it requires names, udttypename and xmlschemaname ignored SmiEventSink eventSink ); internal abstract SmiRequestExecutor CreateRequestExecutor ( string commandText, CommandType commandType, SmiParameterMetaData[] parameterMetaData, SmiEventSink eventSink ); // internal abstract object GetContextValue ( int key ); internal abstract void GetTriggerInfo ( SmiEventSink eventSink, out bool[] columnsUpdated, out TriggerAction action, out SqlXml eventInstanceData ); internal abstract void SendMessageToPipe( string message, SmiEventSink eventSink ); internal abstract void SendResultsStartToPipe( SmiRecordBuffer recordBuffer, SmiEventSink eventSink ); internal abstract void SendResultsRowToPipe( SmiRecordBuffer recordBuffer, SmiEventSink eventSink ); internal abstract void SendResultsEndToPipe( SmiRecordBuffer recordBuffer, SmiEventSink eventSink ); internal abstract void SetContextValue ( int key, object value ); // Scratch LOB storage region internal virtual SmiStream GetScratchStream( SmiEventSink sink ) { // 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, but negotiated V3+. System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); return null; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- UpDownBase.cs
- RawUIStateInputReport.cs
- DurableServiceAttribute.cs
- StreamAsIStream.cs
- DispatcherTimer.cs
- XmlHierarchicalEnumerable.cs
- TableAutomationPeer.cs
- ObjectStateFormatter.cs
- TraceUtility.cs
- thaishape.cs
- UInt32Converter.cs
- DataListItemEventArgs.cs
- ToolBar.cs
- XslVisitor.cs
- WebPartMinimizeVerb.cs
- DoubleCollection.cs
- ReadWriteObjectLock.cs
- SystemIcmpV4Statistics.cs
- ScalarConstant.cs
- DataMisalignedException.cs
- Ops.cs
- MobileListItem.cs
- CallbackBehaviorAttribute.cs
- TreeBuilder.cs
- NamedPipeWorkerProcess.cs
- InputScopeNameConverter.cs
- ToolStripSplitButton.cs
- SimpleTypesSurrogate.cs
- IntSecurity.cs
- NativeMethods.cs
- If.cs
- SocketPermission.cs
- WindowsFormsHostPropertyMap.cs
- SequentialUshortCollection.cs
- SQLByte.cs
- TypeElement.cs
- SynthesizerStateChangedEventArgs.cs
- ToolCreatedEventArgs.cs
- HtmlShim.cs
- ObjectToken.cs
- MessagingDescriptionAttribute.cs
- EntityCommand.cs
- ArgumentNullException.cs
- QilInvokeEarlyBound.cs
- HtmlAnchor.cs
- ValidatedControlConverter.cs
- WebPageTraceListener.cs
- HttpContext.cs
- ContentElementAutomationPeer.cs
- HostDesigntimeLicenseContext.cs
- InternalBufferOverflowException.cs
- PassportAuthenticationEventArgs.cs
- CharAnimationUsingKeyFrames.cs
- OrderPreservingSpoolingTask.cs
- Schema.cs
- WSFederationHttpBindingCollectionElement.cs
- ProxyWebPartManager.cs
- FontDifferentiator.cs
- PropagatorResult.cs
- QuaternionRotation3D.cs
- BindingValueChangedEventArgs.cs
- XmlILConstructAnalyzer.cs
- FormClosingEvent.cs
- DefinitionUpdate.cs
- AuthorizationSection.cs
- NativeMethods.cs
- StaticFileHandler.cs
- RequestCachingSection.cs
- FormatVersion.cs
- ComponentCommands.cs
- ConfigurationLoader.cs
- MailWriter.cs
- ProjectionNode.cs
- MetadataCache.cs
- StringReader.cs
- DesignerActionItemCollection.cs
- XsdBuilder.cs
- PermissionListSet.cs
- JulianCalendar.cs
- MetabaseSettingsIis7.cs
- DateTimeFormat.cs
- HostingPreferredMapPath.cs
- PathGradientBrush.cs
- RequestCacheManager.cs
- NotificationContext.cs
- TypeElement.cs
- RSAProtectedConfigurationProvider.cs
- Preprocessor.cs
- TdsRecordBufferSetter.cs
- ListContractAdapter.cs
- VectorAnimationUsingKeyFrames.cs
- PolicyStatement.cs
- DoubleAnimationUsingPath.cs
- CodeTypeMemberCollection.cs
- ListQueryResults.cs
- XmlSerializationWriter.cs
- EventData.cs
- NavigatorInput.cs
- SmtpMail.cs
- SimpleRecyclingCache.cs