Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- Menu.cs
- BreadCrumbTextConverter.cs
- RIPEMD160Managed.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- ToolStripHighContrastRenderer.cs
- CanonicalXml.cs
- ListDesigner.cs
- LeaseManager.cs
- ListViewGroup.cs
- TitleStyle.cs
- SpellerHighlightLayer.cs
- WebServiceTypeData.cs
- StringHandle.cs
- DecimalConverter.cs
- CompensateDesigner.cs
- WsatTransactionFormatter.cs
- SqlServer2KCompatibilityAnnotation.cs
- LoginAutoFormat.cs
- filewebresponse.cs
- ImportContext.cs
- ApplicationServiceManager.cs
- Activator.cs
- SignalGate.cs
- ServerProtocol.cs
- ColorConvertedBitmap.cs
- TransformConverter.cs
- DataGridViewRowConverter.cs
- StringInfo.cs
- EntitySqlQueryState.cs
- TextElementEditingBehaviorAttribute.cs
- UIPropertyMetadata.cs
- DataGridCaption.cs
- SymbolDocumentGenerator.cs
- XmlValidatingReaderImpl.cs
- ToolStripHighContrastRenderer.cs
- SoapSchemaImporter.cs
- DrawingAttributesDefaultValueFactory.cs
- DrawingAttributesDefaultValueFactory.cs
- LinkClickEvent.cs
- SpellerHighlightLayer.cs
- TreeViewItemAutomationPeer.cs
- wmiprovider.cs
- FixUp.cs
- EventTrigger.cs
- ListManagerBindingsCollection.cs
- TreeNode.cs
- XPathMessageFilterElementCollection.cs
- XmlILIndex.cs
- SqlEnums.cs
- XmlC14NWriter.cs
- ManagementPath.cs
- StylusButtonCollection.cs
- TextRangeBase.cs
- Selection.cs
- NumericExpr.cs
- PermissionSetTriple.cs
- Point3DValueSerializer.cs
- DataSourceProvider.cs
- RegistryKey.cs
- PropertyConverter.cs
- DataSourceControlBuilder.cs
- QuinticEase.cs
- RtfToken.cs
- AncillaryOps.cs
- ConvertersCollection.cs
- ButtonField.cs
- ThreadSafeList.cs
- FunctionNode.cs
- TableDetailsCollection.cs
- AssemblyInfo.cs
- Label.cs
- SQLRoleProvider.cs
- MobileControlsSectionHandler.cs
- TabletDeviceInfo.cs
- ClientSession.cs
- NonBatchDirectoryCompiler.cs
- DropDownHolder.cs
- ComboBox.cs
- PageParserFilter.cs
- DotExpr.cs
- VerticalAlignConverter.cs
- IPPacketInformation.cs
- DrawingAttributes.cs
- CompositeFontInfo.cs
- ToolBarButtonDesigner.cs
- SqlUserDefinedAggregateAttribute.cs
- PerfService.cs
- PolicyManager.cs
- SqlOuterApplyReducer.cs
- XmlNamespaceMappingCollection.cs
- RegexMatchCollection.cs
- EventDescriptor.cs
- BrushMappingModeValidation.cs
- ResolvedKeyFrameEntry.cs
- BindingListCollectionView.cs
- MissingManifestResourceException.cs
- DbTransaction.cs
- TypeElement.cs
- WmpBitmapEncoder.cs
- TagPrefixInfo.cs