Sei sulla pagina 1di 57

WHAT IS ODBC ?

Open Da tabases connecti vity, or ODBC is a standar

d for accessing data. It was designed toallow t

he progr ammer to use a co mmon se t of routi nes to

access the data stored in database s,regardl ess of

the type of database in which thed a t a was stor

ed. This meant th at once t h e progra mmer was

connecte d to the datab ase usingODN C, they c

ould man ipulate t he data withoutw orrying exactly

where the data was stored, orwhich type of

database was storing it. It providedi nterface

transpare ncy so the progr ammer couldacce ss an

Oracle database in the same way thatthey accessed

a SQL Server Database . So, ODBCallo ws you to

get at the basic informati on held ina n y d a tabase.

This give s the pro grammer s freedom to concentra

te onto functiona lity of theapplic ation without

worrying too much about theunderl ying data, or even

how to access it.

WHAT IS OLEDB ?

OLEDB is not next ste p in the e volution of theano

nymous data stor e. As wel l as bein g morege neric tha

n ODBC, Microsoft has done a greatd eal of work to

ensure that OLE_DB is faster andeasier to used

that ODBC. Eventuall y it may wellrepla ce ODBC,

although that wont be for a longtime yet, if

only for the reasons that you oftenhav e to rely

on third parties writing new OLEDBprovid es and

then when they are available theyare o ften mor

e expens ive than existing ODBCdriv ers. So, c onseque

ntly, ther es a lot moreODB C drivers out ther e still in

use. The ideabehi nd OLEDB is very similar to

the idea behindOD BCbut in fa ct it allo ws acces

s to a m uchbroad er range of data stores. In fact,

youll noticetha t OLE-DB that effectivel y

your lega cy databaset hrough your existing

ODBC connectio ns.

SOFTW ARE PRINCI

PLE USED
The project uses the Data

Access Objects (DAO)and ADO ActiveX data

Object. To interact with theD atabase Engine

which handles the mechanic s of

storing, r etrieving and upd ating dat a. It also handles

indexing , locking , securit y a n d ref erential integrity

program ming interfaces thatgives a comple te contro

l of the D atabase. TheDAO model is collectio n of obje

ct classe s thatCor responds to the st ructure o f a Relati

onalData base Syst em. Each of the cla sses prov idesprop

erties an d method s that all ow perfo rmingope rations li

ke Creati ng Datab ase, Defi ningTabl es, Fields and

indexes, Establishi ng Relationb etween tables,

querying the database and so on.T h i s project

uses OO PS Obje ct Orien t e d Progr amming.

DATAB ASE (OVERV IEW)

First of all lets talk about the database, whichgiv

es us a st rong plat form to s tore the officialde tails.

Using Oracle 8 as a backend gives us animmen

se securi ty featur es and re liable da tas o u r c e . With it

s most u nique CO MMIT an d

Potrebbero piacerti anche