Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Data / Microsoft / SqlServer / Server / SmiContext.cs / 1305376 / 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
- StrongNameKeyPair.cs
- DrawingAttributesDefaultValueFactory.cs
- XmlSchemaAttribute.cs
- EntityWrapper.cs
- EdmError.cs
- OracleCommandSet.cs
- StyleCollection.cs
- ParamArrayAttribute.cs
- NumberFormatter.cs
- UserInitiatedRoutedEventPermissionAttribute.cs
- StaticResourceExtension.cs
- InvalidDataException.cs
- XPathPatternParser.cs
- StrongNameUtility.cs
- UIElementIsland.cs
- ObjectPersistData.cs
- MsmqDiagnostics.cs
- TableProvider.cs
- SectionXmlInfo.cs
- EntityDataSourceWrapperCollection.cs
- ExpandoObject.cs
- WmlValidationSummaryAdapter.cs
- TreeWalker.cs
- AggregateNode.cs
- GridViewCancelEditEventArgs.cs
- XmlValidatingReaderImpl.cs
- SingleBodyParameterMessageFormatter.cs
- QilReplaceVisitor.cs
- Converter.cs
- IisTraceListener.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- StyleHelper.cs
- AesManaged.cs
- TdsParser.cs
- CodeArrayCreateExpression.cs
- ChtmlLinkAdapter.cs
- HybridCollection.cs
- ConfigXmlSignificantWhitespace.cs
- Base64Decoder.cs
- FormatStringEditor.cs
- SQLByte.cs
- RowType.cs
- ConfigurationStrings.cs
- MergePropertyDescriptor.cs
- ExpandCollapseProviderWrapper.cs
- ManagedIStream.cs
- CmsUtils.cs
- MetadataItemSerializer.cs
- DetailsViewUpdateEventArgs.cs
- Preprocessor.cs
- BitmapVisualManager.cs
- unsafenativemethodstextservices.cs
- Error.cs
- NullableDoubleMinMaxAggregationOperator.cs
- XPathDescendantIterator.cs
- EntityDataSourceUtil.cs
- ConfigurationStrings.cs
- ServiceAuthorizationBehavior.cs
- ErrorHandler.cs
- DrawingCollection.cs
- ObjectParameterCollection.cs
- NullableDecimalSumAggregationOperator.cs
- WebBodyFormatMessageProperty.cs
- TableStyle.cs
- LazyInitializer.cs
- CookieParameter.cs
- SerializationSectionGroup.cs
- DataGrid.cs
- BasePattern.cs
- SrgsRuleRef.cs
- CharacterHit.cs
- PackageRelationship.cs
- ExtensionDataObject.cs
- SizeAnimationUsingKeyFrames.cs
- InheritablePropertyChangeInfo.cs
- WebPartTransformerAttribute.cs
- SmtpLoginAuthenticationModule.cs
- WebBrowserBase.cs
- FloaterBaseParaClient.cs
- SqlSelectStatement.cs
- StringDictionaryEditor.cs
- SimpleExpression.cs
- SystemWebCachingSectionGroup.cs
- ProcessHost.cs
- SQLDecimalStorage.cs
- ImageKeyConverter.cs
- HashCodeCombiner.cs
- AtomPub10ServiceDocumentFormatter.cs
- EmptyImpersonationContext.cs
- Pen.cs
- PrintEvent.cs
- LocatorBase.cs
- DayRenderEvent.cs
- XPathQueryGenerator.cs
- TextFormatterContext.cs
- SymbolEqualComparer.cs
- FileDialog.cs
- BrowserDefinition.cs
- MatrixKeyFrameCollection.cs
- ComponentEvent.cs