Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Thumb.cs
- ReliabilityContractAttribute.cs
- CacheOutputQuery.cs
- RuleSetReference.cs
- ImpersonationContext.cs
- KeySpline.cs
- PrivilegeNotHeldException.cs
- DataSourceBooleanViewSchemaConverter.cs
- TemplateKey.cs
- WebColorConverter.cs
- ItemsPanelTemplate.cs
- FormsIdentity.cs
- LeftCellWrapper.cs
- ProxyFragment.cs
- XmlDomTextWriter.cs
- TabItem.cs
- DBConcurrencyException.cs
- PaperSize.cs
- ConcurrentDictionary.cs
- SpellCheck.cs
- InProcStateClientManager.cs
- DataChangedEventManager.cs
- ComponentEditorForm.cs
- AspProxy.cs
- QilXmlReader.cs
- OdbcParameterCollection.cs
- Triangle.cs
- KnownTypesHelper.cs
- LabelDesigner.cs
- Simplifier.cs
- QilTernary.cs
- SpAudioStreamWrapper.cs
- DataBinder.cs
- DummyDataSource.cs
- HttpWriter.cs
- Interlocked.cs
- SqlUtil.cs
- ListView.cs
- MimeTypePropertyAttribute.cs
- WebServicesDescriptionAttribute.cs
- FormsAuthenticationUser.cs
- MediaContext.cs
- XmlSchemaType.cs
- DataList.cs
- SessionViewState.cs
- PropertyTabChangedEvent.cs
- BuilderPropertyEntry.cs
- ProtocolState.cs
- DBDataPermission.cs
- CommandDesigner.cs
- DiagnosticsConfiguration.cs
- EmptyCollection.cs
- SQLBytesStorage.cs
- ControlCachePolicy.cs
- LocalBuilder.cs
- WebPartVerbCollection.cs
- EdmFunctions.cs
- SafeProcessHandle.cs
- Rotation3D.cs
- RemoteHelper.cs
- DesignerVerb.cs
- SqlClientFactory.cs
- ObjectDataProvider.cs
- InputScopeAttribute.cs
- ProfileGroupSettings.cs
- EventHandlers.cs
- UpdateManifestForBrowserApplication.cs
- Console.cs
- DataServiceResponse.cs
- UnauthorizedWebPart.cs
- SqlTransaction.cs
- HeaderedItemsControl.cs
- DataGridCellAutomationPeer.cs
- StringInfo.cs
- LineVisual.cs
- StylusPlugInCollection.cs
- Size.cs
- SQLRoleProvider.cs
- AmbientValueAttribute.cs
- XPathNodePointer.cs
- SchemaElementLookUpTableEnumerator.cs
- ModelPerspective.cs
- ConfigXmlDocument.cs
- JsonWriterDelegator.cs
- FrameworkReadOnlyPropertyMetadata.cs
- AsyncPostBackErrorEventArgs.cs
- DefaultObjectMappingItemCollection.cs
- PolyBezierSegmentFigureLogic.cs
- FindCriteria.cs
- RolePrincipal.cs
- PublisherIdentityPermission.cs
- PersonalizationProvider.cs
- MenuCommand.cs
- CommonDialog.cs
- ServicePoint.cs
- SafeFileMappingHandle.cs
- TagMapCollection.cs
- TokenizerHelper.cs
- HybridCollection.cs
- PermissionSet.cs