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
- ViewGenResults.cs
- CompositeDesignerAccessibleObject.cs
- MetadataArtifactLoader.cs
- StateManagedCollection.cs
- HtmlInputText.cs
- DrawingBrush.cs
- TypeEnumerableViewSchema.cs
- Bitmap.cs
- ScriptServiceAttribute.cs
- HtmlImage.cs
- FragmentQuery.cs
- EntityClientCacheEntry.cs
- AtomEntry.cs
- XPathNodeList.cs
- DoubleLinkList.cs
- ParallelTimeline.cs
- ProbeDuplexCD1AsyncResult.cs
- ActivatableWorkflowsQueryResult.cs
- WizardPanelChangingEventArgs.cs
- SrgsToken.cs
- DetailsViewDeleteEventArgs.cs
- HttpException.cs
- XsltArgumentList.cs
- AttachmentService.cs
- TabControl.cs
- RenderContext.cs
- ScrollEvent.cs
- NativeMethodsCLR.cs
- FontDriver.cs
- OpacityConverter.cs
- MembershipSection.cs
- WebEvents.cs
- CategoryGridEntry.cs
- grammarelement.cs
- DmlSqlGenerator.cs
- BrushMappingModeValidation.cs
- PermissionSet.cs
- SystemDropShadowChrome.cs
- EnumerationRangeValidationUtil.cs
- DefaultPropertyAttribute.cs
- CompiledQueryCacheEntry.cs
- WebServiceReceive.cs
- LineSegment.cs
- StylusCollection.cs
- LambdaCompiler.Expressions.cs
- WebColorConverter.cs
- ReadOnlyCollection.cs
- DropDownList.cs
- WebServiceClientProxyGenerator.cs
- IList.cs
- SchemaManager.cs
- DateRangeEvent.cs
- SimpleApplicationHost.cs
- SqlUtil.cs
- KnownBoxes.cs
- HtmlTableCellCollection.cs
- RadioButtonDesigner.cs
- KnowledgeBase.cs
- SoapAttributeAttribute.cs
- OdbcFactory.cs
- HwndKeyboardInputProvider.cs
- BooleanFunctions.cs
- PbrsForward.cs
- WebPartMenu.cs
- Shape.cs
- XmlEncodedRawTextWriter.cs
- Int32AnimationUsingKeyFrames.cs
- FontDriver.cs
- UpdateTranslator.cs
- Content.cs
- FilteredReadOnlyMetadataCollection.cs
- PointAnimationUsingPath.cs
- Control.cs
- AsyncOperation.cs
- ToolboxComponentsCreatingEventArgs.cs
- SharedStatics.cs
- FormParameter.cs
- RenderTargetBitmap.cs
- ApplicationId.cs
- CustomAttributeBuilder.cs
- TextSearch.cs
- SetIterators.cs
- TextEndOfLine.cs
- HwndMouseInputProvider.cs
- WorkerRequest.cs
- TransportDefaults.cs
- ReferenceEqualityComparer.cs
- ConsoleTraceListener.cs
- WsdlBuildProvider.cs
- CommentEmitter.cs
- SQLResource.cs
- Thread.cs
- SafeNativeMemoryHandle.cs
- JavaScriptSerializer.cs
- WindowsListViewItem.cs
- EditorBrowsableAttribute.cs
- XmlUrlResolver.cs
- WebOperationContext.cs
- MarkupObject.cs
- QuaternionAnimation.cs