Presentation is loading. Please wait.

Presentation is loading. Please wait.

What is database?  Any Method for access info into Application from DataBase?  ODBC is standard for Accessing Data.  Problem with ODBC:  Information.

Similar presentations


Presentation on theme: "What is database?  Any Method for access info into Application from DataBase?  ODBC is standard for Accessing Data.  Problem with ODBC:  Information."— Presentation transcript:

1

2 What is database?  Any Method for access info into Application from DataBase?  ODBC is standard for Accessing Data.  Problem with ODBC:  Information contained in each of other media does not fit into database type format.

3 What is OLE-DB?  Object linking and Embedding database.  Standardized interface that allows programmers to use a standard set of programming tools to refer to data from any source  Faster and Easier than ODBC.  OLE DB is designed for relational and non-relational information sources, including e-mail and file system stores; text, graphical etc.

4 OLE DB  OLE DB defines a collection of COM interfaces that encapsulate various database management system services.  OLE DB components consist of data providers, which contain and expose data; data consumers, which use data; and service components, which process and transport data (such as ado object in asp page ).

5 What is ADO?  ADO is API (application programming interface) introduced by Microsoft in October 1996.  Data access interface exposed by OLE DB providers.  Supports all languages that support COM  Visual Basic, Visual C++, Visual Basic Scripting Edition  Simple object model  ADO automatically installed with IIS

6 Where ADO fit? ODBC data Access SQL Server Oracle Excel ODBC OLE DB provider OLE DB APPLICATION ADO API

7 ADO Software Architecture VC++VBScriptJava ADO OLE DB RDBMSE-mail Directory Services

8 ADO and ASP ?  ADO and ASP are different technology. PRODUCTSRELEASED WITH IIS 3.0ADO 1.0 IIS 4.0ADO 1.5 WINDOWS 98ADO 1.5 Visual StudioADO 2.0 WINDOW 2000 And IIS 5.0ADO 2.5

9 ADO 2.5 – Object Model Connection Command Recordset Errors Fields Parameters RecordStream

10 Some ADO Objects Connection Link between program and data-store. Command Allow you to run command against data store. Recordset Return data from specific action on data store. Stream Allow data manipulation of web resources.

11 Connection object  High level object in ADO.  It can be used with multiple RECORDSET objects.  Declared as the Dim conn as ADODB.CONNECTION and open with conn.OPEN “Microsoft.Jet.OLEDB.4.0” &_Data Source=“……/jay.mdb”

12 Recordset object BOF - Beginning of file EOF - End of file RecordCount - The number of records in the RecordSet Open - Open the Recordset Close - Close the RecordSet Move - Move to a specific record MoveFirst - Move to the first record MoveNext - Move forward one record Move Previous - Move backwards one record MoveLast - Move to the last record AddNew - Add a new record to the RecordSet Update - Update the current recor d Properties Methods

13 Database connection steps 1.Create an ADO connection to a database 2.Open the database connection 3.Create an ADO recordset 4.Open the recordset 5.Extract the data need from the recordset 6.Close the recordset 7.Close the connection

14 ADO and ODBC ADO JETSQLOracle JETSQLOracle ODBC AccessSQLOracleAccessSQLOracle OLE DB Providers ODBC Drivers

15 ADO 2.8  ADO  enable your client applications to access and manipulate data from a variety of sources through an OLE DB provider.  ADO MD  access to data from languages such as Microsoft Visual Basic®, Microsoft Visual C++®  RDS Remote Data Service (RDS) is a feature of ADO, with which you can move data from a server to a client application or Web page, manipulate the data on the client, and return updates to the server in a single round trip.  ADOX Data Definition Language and Security

16 Advantage  Enables your client applications to access and manipulate data in a database [server] through any OLE DB provider.  Benefits are ease of use, high speed, low memory overhead  Client/Server and web base application  Flat hierarcy.  Support non relation database.  Reduce complexity of OLE-DB.

17 Disadvantage of ADO ADO works great, but: a) Requires COM and Windows b) Recordsets don’t travel well over the Internet. c) Connected behavior is hard to work with data-store.

18 All About ADO To learn more about goto: www.w3schools.com www.wikipedia.com www.aspwebpro.com

19

20


Download ppt "What is database?  Any Method for access info into Application from DataBase?  ODBC is standard for Accessing Data.  Problem with ODBC:  Information."

Similar presentations


Ads by Google