Code:
/ FX-1434 / FX-1434 / 1.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
- DebuggerAttributes.cs
- MimeMultiPart.cs
- SafeHandles.cs
- PenThreadWorker.cs
- MarkupExtensionParser.cs
- QueryPageSettingsEventArgs.cs
- CatalogPartChrome.cs
- CharacterBuffer.cs
- ResolveInfo.cs
- ClientSideProviderDescription.cs
- WebPartsSection.cs
- ConnectionStringEditor.cs
- TextReader.cs
- SpnEndpointIdentity.cs
- EncryptedData.cs
- BaseProcessProtocolHandler.cs
- ExternalFile.cs
- CqlParserHelpers.cs
- ToolStripLocationCancelEventArgs.cs
- BoundPropertyEntry.cs
- EmptyReadOnlyDictionaryInternal.cs
- DetailsViewDeleteEventArgs.cs
- MediaPlayer.cs
- TextProperties.cs
- FontUnitConverter.cs
- BindValidationContext.cs
- SelectionPattern.cs
- FontStretch.cs
- ContextInformation.cs
- AutomationElementIdentifiers.cs
- HyperLinkStyle.cs
- WmfPlaceableFileHeader.cs
- OleAutBinder.cs
- DataListGeneralPage.cs
- PolygonHotSpot.cs
- TextAutomationPeer.cs
- PasswordBox.cs
- ChannelPoolSettings.cs
- CompareInfo.cs
- SeverityFilter.cs
- CommandDevice.cs
- RelationshipConstraintValidator.cs
- EntityReference.cs
- safelinkcollection.cs
- ClientApiGenerator.cs
- FormsAuthentication.cs
- CircleHotSpot.cs
- FindCriteria.cs
- XpsFontSerializationService.cs
- ListItemParagraph.cs
- LinqDataSourceDisposeEventArgs.cs
- DomainConstraint.cs
- figurelengthconverter.cs
- SqlDataReader.cs
- UserMapPath.cs
- AppDomainProtocolHandler.cs
- Columns.cs
- SystemWebSectionGroup.cs
- CompressionTracing.cs
- EntityProviderFactory.cs
- ColumnProvider.cs
- PackagePartCollection.cs
- Encoder.cs
- CryptoConfig.cs
- Identity.cs
- UiaCoreTypesApi.cs
- ZoneIdentityPermission.cs
- ListViewInsertEventArgs.cs
- DBPropSet.cs
- ReferencedAssembly.cs
- Expander.cs
- ToolStripDropDownItem.cs
- PolicyStatement.cs
- ListParagraph.cs
- TemplatedWizardStep.cs
- ProxyWebPartManager.cs
- SmtpAuthenticationManager.cs
- PrePostDescendentsWalker.cs
- TransactionBridge.cs
- XamlNamespaceHelper.cs
- GregorianCalendarHelper.cs
- _CommandStream.cs
- GridViewRowEventArgs.cs
- ConstraintCollection.cs
- followingsibling.cs
- FontWeightConverter.cs
- AssemblySettingAttributes.cs
- AddIn.cs
- PropertyGridView.cs
- XmlSchemaInclude.cs
- SortedSetDebugView.cs
- DeclaredTypeElementCollection.cs
- SqlBulkCopyColumnMapping.cs
- CodeDirectoryCompiler.cs
- FunctionImportElement.cs
- PackageFilter.cs
- TypeForwardedFromAttribute.cs
- ContractBase.cs
- ListControl.cs
- SmiContext.cs