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
- PrivilegedConfigurationManager.cs
- DateTimeFormatInfo.cs
- BrowserCapabilitiesFactory.cs
- StyleXamlTreeBuilder.cs
- WhitespaceReader.cs
- RuleCache.cs
- MeshGeometry3D.cs
- EdmTypeAttribute.cs
- VirtualizedCellInfoCollection.cs
- ParentControlDesigner.cs
- CodeTypeDeclarationCollection.cs
- PeerHelpers.cs
- StringDictionaryCodeDomSerializer.cs
- MetadataHelper.cs
- TransactionFlowAttribute.cs
- Pair.cs
- TcpTransportSecurityElement.cs
- XsdDuration.cs
- ScrollData.cs
- ToolStripContainer.cs
- PackageRelationshipSelector.cs
- InfoCardSymmetricAlgorithm.cs
- SafeMarshalContext.cs
- ColorPalette.cs
- ModelVisual3D.cs
- DbConnectionClosed.cs
- odbcmetadatacolumnnames.cs
- RoutingConfiguration.cs
- IRCollection.cs
- AutoScrollExpandMessageFilter.cs
- StringDictionaryCodeDomSerializer.cs
- RichTextBoxAutomationPeer.cs
- Utils.cs
- UnitySerializationHolder.cs
- BreadCrumbTextConverter.cs
- WpfMemberInvoker.cs
- DesignerActionItemCollection.cs
- PointValueSerializer.cs
- ObjectStateEntryDbDataRecord.cs
- CasesDictionary.cs
- ISFTagAndGuidCache.cs
- Listbox.cs
- SpotLight.cs
- EqualityComparer.cs
- DbSourceParameterCollection.cs
- Byte.cs
- Attribute.cs
- SafeTimerHandle.cs
- Exceptions.cs
- FixedStringLookup.cs
- GenericEnumerator.cs
- Root.cs
- RenderOptions.cs
- ServicePoint.cs
- GridSplitterAutomationPeer.cs
- EncoderBestFitFallback.cs
- EventTrigger.cs
- CqlLexer.cs
- DataTemplateKey.cs
- InvokeFunc.cs
- FixedSOMFixedBlock.cs
- Type.cs
- KeyedHashAlgorithm.cs
- HttpResponseInternalBase.cs
- Column.cs
- EdmItemCollection.cs
- UnicodeEncoding.cs
- SecurityContext.cs
- SettingsPropertyWrongTypeException.cs
- FontStretch.cs
- XDRSchema.cs
- XmlAttributeAttribute.cs
- XamlFigureLengthSerializer.cs
- TypeUtil.cs
- XomlCompilerHelpers.cs
- LineServices.cs
- ChainOfResponsibility.cs
- FileChangesMonitor.cs
- PtsContext.cs
- ResXResourceSet.cs
- TransactionManager.cs
- XmlDictionaryReader.cs
- cookiecollection.cs
- MultiView.cs
- BindingSource.cs
- VisualProxy.cs
- BamlRecords.cs
- WebPartCatalogCloseVerb.cs
- ColorConverter.cs
- SmtpNetworkElement.cs
- ActiveXSite.cs
- WebPartConnectionsCancelEventArgs.cs
- ItemChangedEventArgs.cs
- Figure.cs
- BitmapEffectState.cs
- MSAANativeProvider.cs
- SettingsProviderCollection.cs
- NamespaceListProperty.cs
- BinaryObjectWriter.cs
- ModifiableIteratorCollection.cs