DAO, ODBC Connectivity
DAO, ODBC Connectivity
DAO, ODBC Connectivity
Data Control
It is a Visual object that said to be data aware.
It may include checkboxes, images, labels, picture boxes, and text boxes.
It binds data-aware controls to Microsoft Access and Other ODBC Data sources.
ODBC direct
It allows accessing of ODBC data sources through the RDO with DAO objects,
bypassing the JET database engine.
Goal of ODBC
Access any data from any application, regardless of which DBMS is handling the data
Insert a middle layer(database driver) between an application and the database
management system (DBMS)
A database driver
This layer translates the application's data queries into commands that the DBMS
understands
Allow application programs to use SQL to access data from any kinds of sources
ODBC Components
ODBC Application
ODBC Driver
ODBC Driver Manager
ODBC Data Source
An example program using Adodc connectivity Vb with MS Access for employee details
Step1: Create the database with the name emp.mdb in MSACCESS (by saving 2002-2003
format in ms access).
Step2: Create the table with the fields Empno, Empname, designation, designation, and
Basic.
Step3: Add the details in the table
Step4: Goto Control Panel->System and Security=>Administrative Tools => select data
sources (ODBC)
Step5: select data sources (ODBC)=> MS Access Database
Step6: Create a new Data source using by selecting Driver do Microsoft Access (.mdb)
Step7: Enter the data source name in the following screen and select the database file (.mdb)
Step9: Design the form along with ADODC tool as per given figure
Step10: Select the Adodc in form1 and select its properties to add the data source in vb