毕业论文外文文献翻译VB的数据库编程分析及数据库的发展应用和基本原理.docx

上传人:b****1 文档编号:1029579 上传时间:2022-10-15 格式:DOCX 页数:14 大小:33.23KB
下载 相关 举报
毕业论文外文文献翻译VB的数据库编程分析及数据库的发展应用和基本原理.docx_第1页
第1页 / 共14页
毕业论文外文文献翻译VB的数据库编程分析及数据库的发展应用和基本原理.docx_第2页
第2页 / 共14页
毕业论文外文文献翻译VB的数据库编程分析及数据库的发展应用和基本原理.docx_第3页
第3页 / 共14页
毕业论文外文文献翻译VB的数据库编程分析及数据库的发展应用和基本原理.docx_第4页
第4页 / 共14页
毕业论文外文文献翻译VB的数据库编程分析及数据库的发展应用和基本原理.docx_第5页
第5页 / 共14页
点击查看更多>>
下载资源
资源描述

毕业论文外文文献翻译VB的数据库编程分析及数据库的发展应用和基本原理.docx

《毕业论文外文文献翻译VB的数据库编程分析及数据库的发展应用和基本原理.docx》由会员分享,可在线阅读,更多相关《毕业论文外文文献翻译VB的数据库编程分析及数据库的发展应用和基本原理.docx(14页珍藏版)》请在冰豆网上搜索。

毕业论文外文文献翻译VB的数据库编程分析及数据库的发展应用和基本原理.docx

毕业论文外文文献翻译VB的数据库编程分析及数据库的发展应用和基本原理

 

毕业设计(论文)

外文文献翻译

 

文献、资料中文题目:

1.VB的数据库编程分析

2.数据库的发展、应用和基本原理

文献、资料英文题目:

文献、资料来源:

文献、资料发表(出版)日期:

院(部):

专业:

软件工程

班级:

姓名:

学号:

指导教师:

翻译日期:

2017.02.14

 

学生公寓智能化管理系统——学生与房间管理子系统外文文献及翻译

专业:

软件工程

ANALYSISOFDATABASEPROGRAMMINGINVB

VB(VisualBasic)isavisualizationprogrammingenvironmentthatMicrosoftCorporationpromotesbasedontheBasiclanguage.Itissimpleandeasytostudy.Ithasformidablefunctionsothatmanycomputeramateursreallylikeit.AlotofapplicationsoftwaresalluseVBasthesoftwaredevelopmentplatform.WhenweuseVBtodeveloptheapplicationsoftware,howtousethedatabaseandcarryonthemanagementofthedatabaseisconcernedbyallexploiters.VBhasprovidedmanytoolsandmethodsfordatabaseprogramming.Whatmethodisusedtovisitthedatabasedependsonusers’differentdemands,asimpleanalysisoftheVBdatabaseprogrammingisexplainedasfollowings.

1.DAOTechnology

ByusingMicrosoftcompany’sJetDatabaseEngine(Jetdatabaseengine),DAO(DataAccessObject)thetechnologymainlyprovidesvisittoISAM(smoothindexsearchmethod)typedatabase,suchastherealizationofthevisittodatabaselikeFoxPro,Access,Dbase.

1.1UseDataControls

Datacontrolsareproducedbyusing“Data”buttoninthetoolbox.Ithas3basicattributes:

Connect,DatabaseNameandRecordSource.Connectattributespecifysthedatabasetypethatdatacontrolsvisit,thedefaultdatabaseistheAccessdatabase.ThevalueoftheDatabaseNameattributeisthedatabasefilenamewhichcontainsthecompletepath.TheRecordSourceattributeistherecordsetthatwevisit,alsocanbetablesorSQLsentences.IfwewillvisittablestudofdatabasefileteachermdbofTEMPfolderunderDplate,thenDatacontrols’sConnectattributeisnull,andtheDatabaseNameattributeis“D:

\temp\teachermdb”,thevalueoftheRecordSourceattributeis“stud”.ThiscanaccomplishthebindingbetweenDatacontrolsanddatabaserecords.ThroughthemethodsofDatacontrolslikeAddnew,Update,Delete,Movelast,wecanvisitthedatabaseaseveryrequest.Whenwebrowsethecontentindatabase,DatacontrollsisusedfrequentlywithDBGrid,itprovidesdatainquiryingridway.

1.2UseDAOObjectStorehouse

ThemodeloftheDAOobjectstorehouseismainlyusinghierarchicalstructure,Dentineistheobjectinthetopmoststory,belowitaretwoobjectsets,Errorsandworkspace,undertheworkspaceobject,istheDatabasesset.WhentheapplicationprocedurequotestheDAOobjectstorehouse,itproducesonlyaDentineobject,andproducesadefaultautomaticalworkingspaceobjectnamedworkspace.Whennotmentioned,alldatabaseoperationsareallworkinworkspace(0),whichisadefaultworkarea.Butwemustpayattention:

TheJetenginewillnotstartsautomaticallyafterVBhasbeenloaded.OnlywhenwechooseReferencesinthemenuofProjectcanweselectMicrosoftDAO3.5ObjectLibrarytouse.Wecreatedatabaseswiththemethod“CreateDatabase”inDAO,use“CreateTable”methodtobulidtables,usethe“OpenDatabase”toopenthedatabase,use“Openrecordset”methodtoopenrecordset,useAddnew,Update,Delete,Movefirst,Editmethodstorealizeeachkindofoperationsabouttables.

2.RDOTechnology

RDOprovidesaconnectiontorelatedODBCdatapool.WhenweneedtovisitotherdatabaseslikeSQLServer,Oracle,especiallytoestablishthecustomer/serverapplicationprocedure,wemayusethelongrangedatacontrolsRDC(RemoteDataControl)andlongrangedataobjectsRDO(RemoteDataControl)torealizethevisittothedatabasethroughtheODBCdriver.

ByusingODBCtovisitsomedatabasewemustfirstinstallthecorrespondingdrivers,likeestablishadatapool,throughassigneddatapooltovisitcorrespondingdatabase.ToestablishtheODBCdatapoolisopenthewindowof“thecontrolpanel”,double-clickstheiconofODBCexecutiveprogram,single-click“Add”buttontocreatethedatapooloftheopeningODBCdatapoolsupervisordialogbox,andchoosecorrespondingdatabase.

2.1UseRDCControls

SimilartotheuseofDATAControls,weuseDatasourcenameattributestoassignthedatasourcenamethatcontrolsbind,andweuseSQLattributestoassigntherecordset,Thedifferenceisthat,wehavetousetheSQLsentencestoassigntheSQLattributeinRDCControls.WhenwebrowsethedatabasewemayfinditisusedwithDBGridfrequently.

2.2UseRDOObjectStorehouse

BeforeweuseRDOobject,weshouldchooseReferencesinthemenuofProject,click”MicrosoftRemoteDataObject2.0”,thenwecancontinue.

ThestepweuseRDOtovisittheODBCdatapoolis:

(1)SetaRDOenvironmentobject.

(2)OpenanODBCdatapoolwiththemethodofOpenconnection.

(3)EstablisharesultobjectwiththemethodofOpenResultset.

(4)Useassignedmethodtooperatetherecordsofresultset.

Aft

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 党团工作 > 入党转正申请

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1