2. Introduction to data access
• Remote applications may have different
format of data
• Stand alone application has same format
• ADO.net used to connect remote applications
• Ado.net Activex DataObjects
3. History of Data Access
• Before access to database was performed by
native libraries
• Eg.OCI (Oracle Call Interface) for Oracle
• Advantage was fast access no extra layer of
software was needed
• DisAdvantage was programmer had to learn
different languages
4. ODBC
• 1990 Microsoft and other companies decided and
prepared ODBC
• Open Database Connectivity
• Used to access any and every RDBMS
• ODBC uses specific RDBMS driver
• Database driver is a program that will translate
data between front end and backend
• Front end: language
• Back end : database
5. Contd
• Drivers are laoded and managed by the ODBC
Driver Manager.
• Uses connection pooling: resuability of
connection.
• No need to create and destroy connection
each time.
• It can be updated easily.
6. DAO
• Data Access Objects
• ODBC was used with low level languages C++
• As VB grew DAO came into existence
• DAO connects with Jet Microsoft database
• DAO connects fastest with Microsoft Access
7. RDO
• DAO was very slow when used with ODBC
data source.
• Remote Dataobjects invented by Microsoft
• To work with other then microsoft databse
• Thin wrapper over ODBC api
8. OLE DB
• Having similar resemblance to ODBC
• Implements set of COM interfaces
• Allows access to data in the format of
rows/columns
• Application making use of OLE DB is called its
CONSUMER
• OLE DB performs various fucntions
• Connection pooling,transaction enlisting,data
persistence,client side data manipulation
9. Contd
• OLE DB also referred as universal data access
• Data may be stored in many places in
email,excel,web pages.
• All data should be accessed by a single
universal technology.
• OLE DB providers are increasing for the
RDBMS and the non RDBMS
• The version provided by microsoft supports
many models
10. ADO
• Activex Data Objects
• It is an OLE DB consumer
• Thin layer allowing user to use high level
languages VB.net and other scripting
languages.
• ADO is to OLE DB what RDO was to ODBC
11. Introduction to ADO.net
• Manipulation of data
• Robust
• Hierarchical
• Offline support
• Multi language support
• Garbage collection
• JIT
• OOP design
• Dynamic Cache
12.
13. ADO.net Architecture
• 2 main parts
• Data Provider(Connected Objects)(online)
• Data set ( Disconnected Objects)(offline)
14. Data Provider
• Data manipulation.
• Read only access.
• Executing commands and retrieving results.
• Light weight component
• Increases performances
15. Data Provider :4 core objects
1.Connection
2. Command
3. Data Reader
4. DataAdapter
16. Data Set
• Data Set represents complete set of data
• including related tables constraints
• and relationship among tables.
17. Data Set:2 components
• 1 Data Table Collection: Row and column
• 2 Data RelationCollection:relation between
row and column