资源描述:
《图书管理系统外文翻译.doc》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、VCdatabasewithADOaccesstoallRaiders1,ADOOverviewADOisMicrosoftforthelatestandmostpowerfuldataaccessparadigmdesignedOLEDBisaneasytouseapplicationlayerinterfaces.ADOallowsyoutowriteapplicationsthroughOLE.DBprovidertoaccessandmanipulatethedatainthedatabaseserver.ADO
2、Themainadvantageiseaseofuse,speed,memoryanddisklessexpenditureremainssmall.ADOincriticalapplicationsusingtheleastnetworktraffic,andfront-endanddatasourcesusedtheleastnumberoflayers,allofwhicharetoprovidealightweight,high-performanceinterface.IscalledADO,isafamili
3、armetaphor,OLEAutomationinterface.OLEDBisasetof"ComponentObjectModel"(COM)interface,anewdatabaselow-levelinterfacethatencapsulatestheODBCfunctions,andinauniformwaytoaccessinformationstoredindifferentdatasources.OLEDBisMicrosoftUDA(UniversalDataAccess)technologyba
4、sestrategy.OLEDBdatasourceprovidedforanyhigh-performanceaccesstothesedatasourcesincludingrelationalandnon-relationaldatabases,e-mailandfilesystems,textandgraphics,custombusinessobjects,andmore.Inotherwords,OLEDBisnotlimitedtoISAM,Jetandevenrelationaldatasource,it
5、canhandleanytypeofdata,regardlessoftheirformatandstoragemethods.Inpractice,thisdiversitymeanstoaccessresidesinExcelspreadsheets,textfiles,e-mail/directoryserviceore-mailserver,suchasMicrosoftExchangeinthedata.However,OLEDBapplicationprogramminginterfaceisintended
6、toprovidethebestvarietyofapplicationfunctions,itdoesnotmeettherequirementsofsimplicity.YouneedtobeanAPItoconnectapplicationsandOLEDBbridge,whichisActiveXDataObjects(ADO).Second,theuseofVCADO(developedasfollows:)1,theintroductionofADOlibraryUseADOintheworksbeforet
7、hestdafx.hheaderfile#importsymbolswiththeintroductionofdirectintroductionofADOlibrariestoenablethecompilertocompilecorrectly.Codeisasfollows:WiththeintroductionofADOlibraryfiles#import#Import"c:programfilescommonfilessystemadomsado15.dll"no_namespacesrename("EOF"
8、adoEOF")ThislinestatementusedintheprojectstatementADO,butADOdoesnotusethenamespace,andinordertoavoidconstantconflict,theconstantEOFrenamedadoEOF.Nownoneedtoadd