Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 12

Allow VB applications to talk to a database (the

JET Engine) via ODBC (Open Database


Connectivity). DAO was Microsoft's first object
oriented solution for the manipulation of
databases using the Jet Database Engine.
Allow VB applications to talk to a relational
database (various Relational DBMSs) via
ODBC. RDO is an interface to remote RDBMS
via OBDC
Allow VB/Other Web Tools (Browsers) to
interface with different kinds of data sources.
ADO is a more recent Microsoft Data Access
technology designed to replace DAO and RDO.
ADO is designed to be simpler to use and more
powerful than DAO/RDO. Serves an interface
to Microsoft's new OLE-DB technology
(thinner than ODBC). Can be used to access all
sorts of "non traditional data" (e.g., web
pages/documents, etc.).
ADO is designed as an easy-to-use application level
interface to Microsoft's newest and most powerful data
access paradigm, OLE DB. OLE DB provides high-
performance access to any data source, including
relational and non-relational databases, email and file
systems, text and graphics, custom business objects,
and more. ADO is implemented for minimal network
traffic in key Internet scenarios, and a minimal number
of layers between the front-end and data source all
to provide a lightweight, high-performance interface.
ADO is called using a familiar metaphor the OLE
Automation interface. And ADO uses conventions and
features similar to DAO and RDO, with simplified
semantics that make it easy to learn.
Structure


Set <Connection Name> = New ADODB.Connection
<Connection Name>.ConnectionString =
<connection string>"
<Connection Name>. Open
Set con = New ADODB.Connection
con.ConnectionString =
"Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\tb.mdb;"
con.Open
Set con = New ADODB.Connection
con.ConnectionString =
"Provider=Microsoft.ACE.OLEDB.12.0;Data
Source=C:\tb.accdb;"
con.Open

Structure


Set <Recordset Name> = New ADODB.Recordset
<Record Name>.Open <Query>, <Connection Name>.ConnectionString
Set res = New ADODB.Recordset
Strl = "Select * from tb where ID ='" & Text1 &
"'"
res.Open Strl, con.ConnectionString
EOF End of file
BOF Beginning of file

You might also like