版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
1/1ADO對(duì)象模型的概要////////////////////////////////////////////////////////////ADO對(duì)象模型的概要下圖是ADO模型中的對(duì)象示意圖,白色的是Collection。
ADOObjectSummaryObjectDescriptionCommandDefinesaspecificcommandthatyouintendtoexecuteagainstadatasource.ConnectionRepresentsanopenconnectiontoadatasource.DataControl(RDS)BindsadataqueryRecordsettooneormorecontrols(forexample,atextbox,gridcontrol,orcombobox)todisplaytheRecordsetdataonaWebpage.DataFactory(RDSServer)Implementsmethodsthatprovideread/writedataaccesstospecifieddatasourcesforclient-sideapplications.DataSpace(RDS)Createsclient-sideproxiestocustombusinessobjectslocatedonthemiddletier.ErrorContainsdetailsaboutdataaccesserrorsthatpertaintoasingleoperationinvolvingtheprovider.FieldRepresentsacolumnofdatawithacommondatatype.ParameterRepresentsaparameterorargumentassociatedwithaCommandobjectbasedonaparameterizedqueryorstoredprocedure.PropertyRepresentsadynamiccharacteristicofanADOobjectthatisdefinedbytheprovider.RecordRepresentsarowofaRecordset,oradirectoryorfileinafilesystem.RecordsetRepresentstheentiresetofrecordsfromabasetableortheresultsofanexecutedcommand.Atanytime,theRecordsetobjectreferstoonlyasinglerecordwithinthesetasthecurrentrecord.StreamRepresentsabinarystreamofdata.ADOCollectionSummaryCollectionDescriptionErrorsContainsalltheErrorobjectscreatedinresponsetoasingleprovider-relatedfailure.FieldsContainsalltheFieldobjectsofaRecordsetobject.ParametersContainsalltheParameterobjectsofaCommandobject.PropertiesContainsallthePropertyobjectsforaspecificinstanceofanobject.ADOPropertySummaryPropertyDescriptionAbsolutePageIndicatesonwhichpagethecurrentrecordresides.AbsolutePositionIndicatestheordinalpositionofaRecordsetobject’scurrentrecord.ActiveCommandIndicatestheCommandobjectthatcreatedtheassociatedRecordsetobject.ActiveConnectionIndicatestowhichConnectionobjectthespecifiedCommand,Recordset,orRecordobjectcurrentlybelongs.ActualSizeIndicatestheactuallengthofafield’svalue.AttributesIndicatesoneormorecharacteristicsofanobject.BOFandEOFBOFindicatesthatthecurrentrecordpositionisbeforethefirstrecordinaRecordsetobject.EOFindicatesthatthecurrentrecordpositionisafterthelastrecordinaRecordsetobject.BookmarkIndicatesabookmarkthatuniquelyidentifiesthecurrentrecordinaRecordsetobjectorsetsthecurrentrecordinaRecordsetobjecttotherecordidentifiedbyavalidbookmark.CacheSizeIndicatesthenumberofrecordsfromaRecordsetobjectthatarecachedlocallyinmemory.CharSetIndicatesthecharactersetintowhichthecontentsofatextStreamshouldbetranslated.CommandTextIndicatesthetextofacommandtobeissuedagainstaprovider.CommandTimeoutIndicateshowlongtowaitwhileexecutingacommandbeforeterminatingtheattemptandgeneratinganerror.CommandTypeIndicatesthetypeofaCommandobject.Connect(RDS)Indicatesthedatabasenamefromwhichthequeryandupdateoperationsarerun.ConnectionStringPropertyIndicatestheinformationusedtoestablishaconnectiontoadatasource.ConnectionTimeoutIndicateshowlongtowaitwhileestablishingaconnectionbeforeterminatingtheattemptandgeneratinganerror.CountIndicatesthenumberofobjectsinacollection.CursorLocationIndicatesthelocationofthecursorservice.CursorTypeIndicatesthetypeofcursorusedinaRecordsetobject.DataMemberIndicatesthenameofthedatamemberthatwillberetrievedfromtheobjectreferencedbytheDataSourceproperty.DataSourceIndicatesanobjectthatcontainsdatatoberepresentedasaRecordsetobject.DefaultDatabaseIndicatesthedefaultdatabaseforaConnectionobject.DefinedSizeIndicatesthedatacapacityofaFieldobject.DescriptionDescribesanErrorobject.DirectionIndicateswhethertheParameterrepresentsaninputparameter,anoutputparameter,orboth,oriftheparameteristhereturnvaluefromastoredprocedure.EditModeIndicatestheeditingstatusofthecurrentrecord.EOSIndicateswhetherthecurrentpositionisattheendofthestream.ExecuteOptions(RDS)Indicateswhetherasynchronousexecutionisenabled.FetchOptions(RDS)Indicatesthetypeofasynchronousfetching.FilterIndicatesafilterfordatainaRecordset.FilterColumn(RDS)Indicatesthecolumnonwhichtoevaluatethefiltercriteria.FilterCriterion(RDS)Indicatestheevaluationoperatortouseinthefiltervalue.FilterValue(RDS)Indicatesthevaluetofilterrecords.Handler(RDS)Indicatesthenameofaserver-sidecustomizationprogram(handler)thatextendsthefunctionalityoftheRDSServer.DataFactory,andanyparametersusedbythehandler.HelpContextandHelpFileIndicatesthehelpfileandtopicassociatedwithanErrorobject.HelpContextIDreturnsacontextID,asaLongvalue,foratopicinaHelpfile.HelpFilereturnsaStringvaluethatevaluatestoafullyresolvedpathtoaHelpfile.IndexIndicatesthenameoftheindexcurrentlyineffectforaRecordsetobject.InternetTimeout(RDS)Indicatesthenumberofmillisecondstowaitbeforearequesttimesout.IsolationLevelIndicatesthelevelofisolationforaConnectionobject.ItemIndicatesaspecificmemberofacollection,bynameorordinalnumber.LineSeparatorIndicatesthebinarycharactertobeusedasthelineseparatorintextStreamobjects.LockTypeIndicatesthetypeoflocksplacedonrecordsduringediting.MarshalOptionsIndicateswhichrecordsaretobemarshaledbacktotheserver.MaxRecordsIndicatesthemaximumnumberofrecordstoreturntoaRecordsetfromaquery.ModeIndicatestheavailablepermissionsformodifyingdatainaConnection,Record,orStreamobject.NameIndicatesthenameofanobject.NativeErrorIndicatestheprovider-specificerrorcodeforagivenErrorobject.NumberIndicatesthenumberthatuniquelyidentifiesanErrorobject.NumericScaleIndicatesthescaleofnumericvaluesinaParameterorFieldobject.OriginalValueIndicatesthevalueofaFieldthatexistedintherecordbeforeanychangesweremade.PageCountIndicateshowmanypagesofdatatheRecordsetobjectcontains.PageSizeIndicateshowmanyrecordsconstituteonepageintheRecordset.ParentURLIndicatesanabsoluteURLstringthatpointstotheparentRecordofthecurrentRecordobject.PositionIndicatesthecurrentpositionwithinaStreamobject.PrecisionIndicatesthedegreeofprecisionfornumericvaluesinaParameterobjectorfornumericFieldobjects.PreparedIndicateswhethertosaveacompiledversionofacommandbeforeexecution.ProviderIndicatesthenameoftheproviderforaConnectionobject.ReadyState(RDS)IndicatestheprogressofaDataControlobjectasitfetchesdataintoitsRecordsetobject.RecordCountIndicatesthenumberofrecordsinaRecordsetobject.RecordsetandSourceRecordset(RDS)IndicatestheRecordsetobjectreturnedfromacustombusinessobject.RecordTypeIndicatesthetypeofRecordobject.Server(RDS)IndicatestheInternetInformationServices(IIS)nameandcommunicationprotocol.SizeIndicatesthemaximumsize,inbytesorcharacters,ofaParameterobject.Size(ADOStream)Indicatesthetotalsizeofthestreaminnumberofbytes.SortIndicatesoneormorefieldnamesonwhichtheRecordsetissorted,andwhethereachfieldissortedinascendingordescendingorder.SortColumn(RDS)Indicatesbywhichcolumntosorttherecords.SortDirection(RDS)Indicateswhetherasortorderisascendingordescending.Source(ADOError)Indicatesthenameoftheobjectorapplicationthatoriginallygeneratedanerror.Source(ADORecord)IndicatestheentityrepresentedbytheRecordobject.Source(ADORecordset)IndicatesthesourceforthedatainaRecordsetobjectSQL(RDS)IndicatesthequerystringusedtoretrievetheRecordset.SQLStateIndicatestheSQLstateforagivenErrorobject.StateIndicatesforallapplicableobjectswhetherthestateoftheobjectisopenorclosed.Indicatesforallapplicableobjectsexecutinganasynchronousmethod,whetherthecurrentstateoftheobjectisconnecting,executing,orretrievingStatus(ADOField)IndicatesthestatusofaFieldobject.Status(ADORecordset)Indicatesthestatusofthecurrentrecordwithrespecttobatchupdatesorotherbulkoperations.StayInSyncIndicates,inahierarchicalRecordsetobject,whetherthereferencetotheunderlyingchildrecords(thatis,thechapter)changeswhentheparentrowpositionchanges.TypeIndicatestheoperationaltypeordatatypeofaParameter,Field,orPropertyobject.Type(ADOStream)IndicatesthetypeofdatacontainedintheStream(binaryortext).UnderlyingValueIndicatesaFieldobject’scurrentvalueinthedatabase.URL(RDS)IndicatesastringthatcontainsarelativeorabsoluteURL.ValueIndicatesthevalueassignedtoaField,Parameter,orPropertyobject.VersionIndicatestheADOversionnumber.ADODynamicPropertySummaryDynamicpropertiescanbeaddedtothePropertiescollectionsoftheConnection,Command,orRecordsetobjects.Thesourceforthesepropertiesiseitheradataprovider,suchastheOLEDBProviderforSQLServer,oraserviceprovider,suchastheMicrosoftCursorServiceforOLEDB.Refertotheappropriatedataproviderorserviceproviderdocumentationformoreinformationaboutaspecificdynamicproperty.TheADODynamicPropertyIndexprovidesacross-referencebetweentheADOandOLEDBnamesforeachstandardOLEDBproviderdynamicproperty.Thefollowingdynamicpropertiesareofspecialinterest,andarealsodocumentedinthesourcesmentionedabove.SpecialfunctionalitywithADOisdocumentedintheADOhelptopicslistedbelow.PropertyDescriptionOptimizeSpecifieswhetheranindexshouldbecreatedonthisfield.PromptSpecifieswhethertheOLEDBprovidershouldprompttheuserforinitializationinformation.ReshapeNameSpecifiesanamefortheRecordsetobject.ResyncCommandSpecifiesauser-suppliedcommandstringthattheResyncmethodissuestorefreshthedatainthetablenamedintheUniqueTabledynamicproperty.UniqueTable,UniqueSchema,UniqueCatalogUniqueTablespecifiesthenameofthebasetableuponwhichupdates,insertions,anddeletionsareallowed.UniqueSchemaspecifiestheschema,ornameoftheownerofthetable.UniqueCatalogspecifiesthecatalog,ornameofthedatabasecontainingthetable.UpdateResyncSpecifieswhethertheUpdateBatchmethodisfollowedbyanimplicitResyncmethodoperation,andifso,thescopeofthatoperation.ADOMethodSummaryMethodDescriptionAddNewCreatesanewrecordforanupdatableRecordsetobject.AppendAppendsanobjecttoacollection.IfthecollectionisFields,anewFieldobjectmaybecreatedbeforeitisappendedtothecollection.AppendChunkAppendsdatatoalargetextorbinarydataField,ortoaParameterobject.BeginTrans,CommitTrans,andRollbackTransManagestransactionprocessingwithinaConnectionobjectasfollows:BeginTransBeginsanewtransaction.CommitTransSavesanychangesandendsthecurrenttransaction.Itmayalsostartanewtransaction.RollbackTransCancelsanychangesandendsthecurrenttransaction.Itmayalsostartanewtransaction.Cancel(ADO)Cancelsexecutionofapending,asynchronousmethodcall.Cancel(RDS)Cancelsexecutionofapending,asynchronousmethodcall.CancelBatchCancelsapendingbatchupdate.CancelUpdate(ADO)CancelsanychangesmadetothecurrentornewrowofaRecordsetobject,ortheFieldscollectionofaRecordobject,beforecallingtheUpdatemethod.CancelUpdate(RDS)CancelsanychangesmadetothecurrentornewrowofaRecordsetobject.ClearRemovesalltheErrorobjectsfromtheErrorscollection.CloneCreatesaduplicateRecordsetobjectfromanexistingRecordsetobject.Optionally,specifiesthatthecloneberead-only.CloseClosesanopenobjectandanydependentobjects.CompareBookmarksComparestwobookmarksandreturnsanindicationoftheirrelativevalues.ConvertToString(RDS)ConvertsaRecordsettoaMIMEstringthatrepresentstherecordsetdata.CopyRecordCopiesafileordirectory,anditscontents,toanotherlocation.CopyToCopiesthespecifiednumberofcharactersorbytes(dependingonType)intheStreamtoanotherStreamobject.CreateObject(RDS)Createstheproxyforthetargetbusinessobjectandreturnsapointertoit.CreateParameterCreatesanewParameterobjectwiththespecifiedproperties.CreateRecordset(RDS)Createsanempty,disconnectedRecordset.Delete(ADOParametersCollection)DeletesanobjectfromtheParameterscollection.Delete(ADOFieldsCollection)DeletesanobjectfromtheFieldscollection.Delete(ADORecordset)Deletesthecurrentrecordoragroupofrecords.DeleteRecordDeletesafileordirectory,andallitssubdirectories.Execute(ADOCommand)Executesthequery,SQLstatement,orstoredprocedurespecifiedintheCommandTextproperty.Execute(ADOConnection)Executesthespecifiedquery,SQLstatement,storedprocedure,orprovider-specifictext.FindSearchesaRecordsetfortherowthatsatisfiesthespecifiedcriteria.FlushForcesthecontentsoftheStreamremainingintheADObuffertotheunderlyingobjectwithwhichtheStreamisassociated.GetChildrenReturnsaRecordsetwhoserowsrepresentthefilesandsubdirectoriesinthedirectoryrepresentedbythisRecord.GetChunkReturnsall,oraportionof,thecontentsofalargetextorbinarydataFieldobject.GetRowsRetrievesmultiplerecordsofaRecordsetobjectintoanarray.GetStringReturnstheRecordsetasastring.LoadFromFileLoadsthecontentsofanexistingfileintoaStream.MoveMovesthepositionofthecurrentrecordinaRecordsetobject.MoveFirst,MoveLast,MoveNext,andMovePrevious(ADO)Movestothefirst,last,next,orpreviousrecordinaspecifiedRecordsetobjectandmakesthatrecordthecurrentrecord.MoveFirst,MoveLast,MoveNext,MovePrevious(RDS)Movestothefirst,last,next,orpreviousrecordinaspecifiedRecordsetobject.MoveRecordMovesafile,oradirectoryanditscontents,toanotherlocation.NextRecordsetClearsthecurrentRecordsetobjectandreturnsthenextRecordsetbyadvancingthroughaseriesofcommands.Open(ADOConnection)Opensaconnectiontoadatasource.Open(ADORecord)OpensanexistingRecordobject,orcreatesanewfileordirectory.Open(ADORecordset)Opensacursor.Open(ADOStream)OpensaStreamobjecttomanipulatestreamsofbinaryortextdata.OpenSchemaObtainsdatabaseschemainformationfromtheprovider.Query(RDS)UsesavalidSQLquerystringtoreturnaRecordset.ReadReadsaspecifiednumberofbytesfromaStreamobject.ReadTextReadsaspecifiednumberofcharactersfromatextStreamobject.Refresh(ADO)Updatestheobjectsinacollectiontoreflectobjectsavailablefrom,andspecificto,theprovider.Refresh(RDS)RequeriesthedatasourcespecifiedintheConnectpropertyandupdatesthequeryresults.RequeryUpdatesthedatainaRecordsetobjectbyre-executingthequeryonwhichtheobjectisbased.Reset(RDS)Executesthesortorfilteronaclient-sideRecordset,basedonthespecifiedsortandfilterproperties.ResyncRefreshesthedatainthecurrentRecordsetobject,orFieldscollectionofaRecordobject,fromtheunderlyingdatabase.SaveSavestheRecordsetinafileorStreamobject.SaveToFileSavesthebinarycontentsofaStreamtoafile.SeekSearchestheindexofaRecordsettoquicklylocatetherowthatmatchesthespecifiedvalues,andchangesthecurrentrowpositiontothatrow.SetEOSSetsthepositionthatistheendofthestream.SkipLineSkipsoneentirelinewhenreadingatextstream.SubmitChanges(RDS)SubmitspendingchangesofthelocallycachedandupdatableRecordsettothedatasourcespecifiedintheConnectproperty.SupportsDetermineswhetheraspecifiedRecordsetobjectsupportsaparticulartypeoffunctionality.UpdateSavesanychangesyoumaketothecurrentrowofaRecordsetobject,ortheFieldscollectionofaRecordobject.UpdateBatchWritesallpendingbatchupdatestodisk.WriteWritesbinarydatatoaStreamobject.WriteTextWritesaspecifiedtextstringtoaStreamobject.ADOEventSummaryEventDescriptionBeginTransCompleteCalledaftertheBeginTransoperation.CommitTransCompleteCalledaftertheCommitTransoperation.ConnectCompleteCalledafteraconnectionstarts.DisconnectCalledafteraconnectionends.EndOfRecordsetCalledwhenthereisanattempttomovetoarowpasttheendoftheRecordset.ExecuteCompleteCalledafteracommandhasfinishedexecuting.FetchCompleteCalledafteralltherecordsinalengthyasynchronousoperationhavebeenretrievedintotheRecordset.FetchProgressCalledperiodicallyduringalengthyasynchronousoperationtoreporthowmanyrowshavecurrentlybeenretrievedintotheRecordset.FieldChangeCompleteCalledafterthevalueofoneormoreFieldobjectshaschanged.InfoMessageCalledwheneverawarningoccursduringaConnectionEventoperation.MoveCompleteCalledafterthecurrentpositionintheRecordsetchanges.onError(RDS)Calledwheneveranerroroccursduringanoperation.onReadyStateChange(RDS)CalledwheneverthevalueoftheReadyStatepropertychanges.RecordChangeCompleteCalledafteroneormorerecordschange.RecordsetChangeCompleteCalledaftertheRecordsethaschanged.RollbackTransCompleteCalledaftertheRollbackTransoperation.WillChangeFieldCalledbeforeapendingoperationchangesthevalueofoneormoreFieldobjectsintheRecordset.WillChangeRecordCalledbeforeoneormorerecords(rows)intheRecordsetchange.WillChangeRecordsetCalledbeforeapendingoperationchangestheRecordset.WillConnectCalledbeforeaconnectionstarts.WillExecuteCalledjustbeforeapendingcommandexecutesonthisconnectionandaffordstheuseranopportunitytoexamineandmodifythependingexecutionparameters.WillMoveTheWillMoveeventiscalledbeforeapendingoperationchangesthecurrentpositionintheRecordset.ADOEnumeratedConstantSummaryEnumerationDescriptionADCPROP_ASYNCTHREADPRIORITY_ENUMForanRDSRecordsetobject,specifiestheexecutionpriorityoftheasynchronousthreadthatretrievesdata.ADCPROP_AUTORECALC_ENUMSpecifieswhentheMSDataShapeproviderre-calculatesaggregateandcalculatedcolumnsinahierarchicalRecordset.ADCPROP_UPDATECRITERIA_ENUMSpecifieswhichfieldscanbeusedtodetectconflictsduringanoptimisticupdateofarowofthedatasourcewithaRecordsetobject.ADCPROP_UPDATERESYNC_ENUMSpecifieswhethertheUpdateBatchmethodisfollowedbyanimplicitResyncmethodoperationandifso,thescopeofthatoperation.AffectEnumSpecifieswhichrecordsareaffectedbyanoperation.BookmarkEnumSpecifiesabookmarkindicatingwheretheoperationshouldbegin.CommandTypeEnumSpecifieshowacommandargumentshouldbeinterpreted.CompareEnumSpecifiestherelativepositionoftworecordsrepresentedbytheirbookmarks.ConnectModeEnumSpecifiestheavailablepermissionsformodifyingdatainaConnection,openingaRecord,orspecifyingvaluesfortheModepropertyoftheRecordandStreamobjects.ConnectOptionEnumSpecifieswhethertheOpenmethodofaConnectionobjectshouldreturnafter(synchronously)orbefore(asynchronously)theconnectionisestablished.ConnectPromptEnumSpecifieswhetheradialogboxshouldbedisplayedtopromptformissingparameterswhenopeningaconnectiontoanODBCdatasource.CopyRecordOptionsEnumSpecifiesthebehavioroftheCopyRecordmethod.CursorLocationEnumSpecifiesthelocationofthecursorengine.CursorOptionEnumSpecifieswhatfunctionalitytheSupportsmethodshouldtestfor.CursorTypeEnumSpecifiesthetypeofcursorusedinaRecordsetobject.DataTypeEnumSpecifiesthedatatypeofaField,Parameter,orProperty.EditModeEnumSpecifiestheeditingstatusofarecord.ErrorValueEnumSpecifiesthetypeofADOrun-timeerror.EventReasonEnumSpecifiesthereasonthatcausedaneventtooccur.EventStatusEnumSpecifiesthecurrentstatusoftheexecutionofanevent.ExecuteOptionEnumSpecifieshowaprovidershouldexecuteacommand.FieldEnumSpecifiesthespecialfieldsreferencedinaRecordobject’sFieldscollection.FieldAttributeEnumSpecifiesoneormoreattributesofaFieldobject.FilterGroupEnumSpecifiesthegroupofrecordstobefilteredfromaRecordset.GetRowsOptionEnumSpecifieshowmanyrecordstoretrievefromaRecordset.IsolationLevelEnumSpecifiestheleveloftransactionisolationforaConnectionobject.LineSeparatorsEnumSpecifiesthecharacterusedasalineseparatorintextStreamobjects.LockTypeEnumSpecifiesthetypeoflockplacedonrecordsduringediting.MarshalOptionsEnumSpecifieswhichrecordsshouldbereturnedtotheserver.MoveRecordOptionsEnumSpecifiesthebehavioroftheRecordobjectMoveRecordmethod.ObjectStateEnumSpecifieswhetheranobjectisopenorclosed,connectingtoadatasource,executingacommand,orfetchingdata.ParameterAttributesEnumSpecifiestheattributesofaParameterobject.ParameterDirectionEnumSpecifieswhethertheParameterrepresentsaninputparameter,anoutputparameter,orboth,oriftheparameteristhereturnvaluefromastoredprocedure.PersistFormatEnumSpecifiestheformatinwhichtosaveaRecordset.PositionEnumSpecifiesthecurrentpositionoftherecordpointerwithinaRecordset.PropertyAttributesEnumSpecifiestheattributesofaPropertyobject.RecordCreateOptionsEnumSpecifiesfortheRecordobjectOpenmethodwhetheranexistingRecordshouldbeopened,oranewRecordshouldbecreated.RecordOpenOptionsEnumSpecifiesoptionsforopeningaRecord.ThesevaluesmaybecombinedbyusinganORoperator.RecordStatusEnumSpecifiesthestatusofarecordwithregardtobatchupdatesandotherbulkoperations.RecordTypeEnumSpecifiesthetypeofRecordobject.ResyncEnumSpecifieswhetherunderlyingvaluesareoverwrittenbyacalltoResync.SaveOptionsEnumSpecifieswhetherafileshouldbecreatedoroverwrittenwhensavingfromaStreamobject.ThevaluescanbecombinedwithanANDoperator.SchemaEnumSpecifiesthetypeofschemaRecordsetthattheOpenSchemamethodretrieves.SearchDirectionEnumSpecifiesthedirectionofarecordsearchwithinaRecordset.SeekEnumSpecifiesthetypeofSeektoexecute.StreamOpenOptionsEnumSpecifiesoptionsforopeningaStreamobject.ThevaluescanbecombinedwithanANDoperator.StreamReadEnumSpecifieswhetherthewholestreamorthenextlineshouldbereadfromaStreamobject.StreamTypeEnumSpecifiesthetypeofdatastoredinaStreamobject.StreamWriteEnumSpecifieswhetheralineseparatorisappendedtothestringwrittentoaStreamobject.StringFormatEnumSpecifiestheformatwhenretrievingaRecordsetasastring.XactAttributeEnumSpecifiesthetransactionattributesofaConnectionobject.ADOErrorCodeListErrorValueEnumSpecifiesthetypeofADOrun-timeerror.Threeformsoftheerrornumberarelisted:Positivedecimalthelowtwobytesofthefullnumberindecimalformat.ThisnumberisdisplayedinthedefaultVisualBasicerrormessagedialogbox.Forexample,Run-timeerror‘3707’.NegativedecimalThedecimaltranslationofthefullerrornumber.HexadecimalThehexadecimalrepresentationofthefullerrornumber.TheWindowsfacilitycodeisinthefourthdigit.ThefacilitycodeforADOerrornumbersisA.Forexample:0x800A0E7B.NoteOLEDBerrorsmaybepassedtoyourADOapplication.Typically,thesecanbeidentifiedbyaWindowsfacilitycodeof4.Forexample,0x8004Formoreinformationaboutthesenumbers,seeChapter16oftheOLEDBProgrammer’sReference.ConstantValueDescriptionadErrBoundToCommand3707-21468245810x800A0E7BCannotchangetheActiveConnectionpropertyofaRecordsetobjectwhichhasaCommandobjectasitssource.adErrCannotComplete3732-21468245560x800A0E94Servercannotcompletetheoperation.adErrCantChangeConnection3748-21468245400x800A0EA4Connectionwasdenied.Newconnectionyourequestedhasdifferentcharacteristicsthantheonealreadyinuse.adErrCantChangeProvider3220-21468250680X800A0C94Suppliedproviderisdifferentfromtheonealreadyinuse.adErrCantConvertvalue3724-21468245640x800A0E8CDatavaluecannotbeconvertedforreasonsotherthansignmismatchordataoverflow.Forexample,conversionwouldhavetruncateddata.adErrCantCreate3725-21468245630x800A0E8DDatavaluecannotbesetorretrievedbecausethefielddatatypewasunknown,ortheproviderhadinsufficientresourcestoperformtheoperation.adErrCatalogNotSet3747-21468245410x800A0EA3OperationrequiresavalidParentCatalog.adErrColumnNotOnThisRow3726-21468245620x800A0E8ERecorddoesnotcontainthisfield.adErrDataConversion3421-21468248670x800A0D5DApplicationusesavalueofthewrongtypeforthecurrentoperation.adErrDataOverflow3721-21468245670x800A0E89Datavalueistoolargetoberepresentedbythefielddatatype.adErrDelResOutOfScope3738-21468245500x800A0E9AURLoftheobjecttobedeletedisoutsidethescopeofthecurrentrecord.adErrDenyNotSupported3750-21468245380x800A0EA6Providerdoesnotsupportsharingrestrictions.adErrDenyTypeNotSupported3751-21468245370x800A0EA7Providerdoesnotsupporttherequestedkindofsharingrestriction.adErrFeatureNotAvailable3251-21468250370x800A0CB3Objectorproviderisnotcapableofperformingrequestedoperation.adErrFieldsUpdateFailed3749-21468245390x800A0EA5Fieldsupdatefailed.Forfurtherinformation,examinetheStatuspropertyofindividualfieldobjects.adErrIllegalOperation3219-21468250690x800A0C93Operationisnotallowedinthiscontext.adErrIntegrityViolation3719-21468245690x800A0E87Datavalueconflictswiththeintegrityconstraintsofthefield.adErrInTransaction3246-21468250420x800A0CAEConnectionobjectcannotbeexplicitlyclosedwhileinatransaction.adErrInvalidArgument3001-21468252870x800A0BB9Argumentsareofthewrongtype,areoutofacceptablerange,orareinconflictwithoneanother.adErrInvalidConnection3709-21468245790x800A0E7DOperationisnotallowedonanobjectreferencingaclosedorinvalidconnection.adErrInvalidParamInfo3708-21468245800x800A0E7CParameterobjectisimproperlydefined.Inconsistentorincompleteinformati
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 衛(wèi)生院勞動(dòng)合同模板
- 勞動(dòng)合同變更協(xié)議書
- 酒水銷售協(xié)議合同范本
- 物理真題:2024年高考遼寧卷物理真題
- 2024年中考物理(長沙卷)真題詳細(xì)解讀及評(píng)析
- 進(jìn)戶門購銷合同
- 2025標(biāo)準(zhǔn)網(wǎng)站開發(fā)合同
- 2025軟件購買合同
- 育兒嫂家政服務(wù)勞動(dòng)合同協(xié)議
- 技能培訓(xùn)對(duì)員工職業(yè)素質(zhì)的影響
- 醫(yī)院6s管理成果匯報(bào)護(hù)理課件
- 微整培訓(xùn)課件
- SYT 0447-2014《 埋地鋼制管道環(huán)氧煤瀝青防腐層技術(shù)標(biāo)準(zhǔn)》
- 第19章 一次函數(shù) 單元整體教學(xué)設(shè)計(jì) 【 學(xué)情分析指導(dǎo) 】 人教版八年級(jí)數(shù)學(xué)下冊(cè)
- 電梯結(jié)構(gòu)與原理-第2版-全套課件
- IEC-62368-1-差異分享解讀
- 2022-2023學(xué)年廣東省佛山市順德區(qū)高三(下)模擬英語試卷
- 節(jié)后復(fù)工培訓(xùn)內(nèi)容五篇
- GB/T 33322-2016橡膠增塑劑芳香基礦物油
- GA 1051-2013槍支彈藥專用保險(xiǎn)柜
- 某水毀公路維修工程施工方案
評(píng)論
0/150
提交評(píng)論