Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlValidatingReader.cs
- InternalConfigHost.cs
- HtmlContainerControl.cs
- IdentitySection.cs
- CacheModeValueSerializer.cs
- SpecialFolderEnumConverter.cs
- ZeroOpNode.cs
- AnimationClockResource.cs
- SqlWebEventProvider.cs
- Message.cs
- Component.cs
- PrintDialogDesigner.cs
- XmlCustomFormatter.cs
- DesignerDeviceConfig.cs
- DataControlHelper.cs
- PassportAuthenticationModule.cs
- ConnectionPoint.cs
- InternalBufferOverflowException.cs
- XpsS0ValidatingLoader.cs
- StringDictionaryWithComparer.cs
- BounceEase.cs
- Int64Storage.cs
- _UncName.cs
- Quaternion.cs
- WebBrowserUriTypeConverter.cs
- RbTree.cs
- SecuritySessionSecurityTokenProvider.cs
- EdmEntityTypeAttribute.cs
- XmlConvert.cs
- DataContext.cs
- PreviewPrintController.cs
- URLAttribute.cs
- PlaceHolder.cs
- StringWriter.cs
- XmlWhitespace.cs
- BitmapImage.cs
- ProvidersHelper.cs
- WMICapabilities.cs
- LinqDataSource.cs
- URLString.cs
- DropShadowEffect.cs
- ValueQuery.cs
- CodeTypeMember.cs
- SchemaExporter.cs
- XmlSchemaAttributeGroup.cs
- SystemInfo.cs
- ImageField.cs
- TdsParserStateObject.cs
- FormViewInsertedEventArgs.cs
- userdatakeys.cs
- Touch.cs
- CompilerErrorCollection.cs
- AdornerDecorator.cs
- SQLBinaryStorage.cs
- MessageSmuggler.cs
- MetadataExchangeClient.cs
- FontResourceCache.cs
- ObjectQuery.cs
- DataServiceClientException.cs
- CategoryAttribute.cs
- AtomMaterializerLog.cs
- TemplateControl.cs
- ExpressionTextBoxAutomationPeer.cs
- ToolStripControlHost.cs
- sqlstateclientmanager.cs
- DictionaryGlobals.cs
- SamlAuthorizationDecisionStatement.cs
- UInt32.cs
- XmlDocument.cs
- VisualProxy.cs
- ArithmeticException.cs
- RectAnimationUsingKeyFrames.cs
- DataGridViewColumnCollection.cs
- NativeMethodsOther.cs
- AmbientProperties.cs
- XmlEntityReference.cs
- CatalogZone.cs
- ObjectDesignerDataSourceView.cs
- XmlDictionaryReader.cs
- RequestUriProcessor.cs
- WsdlParser.cs
- XPathChildIterator.cs
- SqlAggregateChecker.cs
- SmiEventSink.cs
- RawStylusInputCustomData.cs
- ProxyWebPart.cs
- UdpRetransmissionSettings.cs
- SamlAttributeStatement.cs
- RenderOptions.cs
- DBConcurrencyException.cs
- SafeBitVector32.cs
- DataExpression.cs
- CounterSample.cs
- SqlDataSource.cs
- DataMemberConverter.cs
- ExecutionTracker.cs
- MenuItemCollection.cs
- LightweightEntityWrapper.cs
- IgnoreFileBuildProvider.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs