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

Slides:



Advertisements
Similar presentations
Basics of Database Programming with VB6
Advertisements

Connecting to Databases. relational databases tables and relations accessed using SQL database -specific functionality –transaction processing commit.
Chapter 13 © 2000 Prentice Hall Chapter 13 Accessing the Database Server: ODBC, OLE DB, and ADO David M. Kroenke Database Processing © 2000 Prentice Hall.
1 Chapter 12 Working With Access 2000 on the Internet.
Fundamentals, Design, and Implementation, 9/e Chapter 12 ODBC, OLE DB, ADO, and ASP.
Prentice Hall © COS 346 Day Agenda Capstone Progress report due Assignment 9 not corrected yet Assignment 10 posted (last one!!!) –Due.
The ADO Data Control. Universal Data Access Open Database Connectivity (ODBC) –standard for accessing data in databases OLE-DB –allows access to data.
Using Visual Basic 6.0 to Create Web-Based Database Applications
14 1 Chapter 14 Database Connectivity and Web Development Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Fundamentals, Design, and Implementation, 9/e COS 346 DAY 22.
Visual Basic Database Access BICS546. Microsoft Universal Data Access OLE DB: The OLE database protocol –Allows a program to access information in any.
Database Programming (using ADO) Universal Data Access – Microsoft strategy for providing access to information across the enterprise. – UDA provides high-performance.
ASP.NET Programming with C# and SQL Server First Edition Chapter 8 Manipulating SQL Server Databases with ASP.NET.
Chapter 12 Database Connectivity with ASP.NET JavaScript, Third Edition.
Chapter 14 Database Connectivity and Web Technologies
Blue Group (ADO) 3/10/98 Universal Data Access with ActiveX Data Objects The Blue Group *Jennifer Kochan *Rebecca Orozco *Chris Papandria *Alicja Stanczak.
Objective In this session we will discuss about : What is ADO. NET ?
Visual Basic 6.0 Derived from BASIC Developed by Microsoft in 1998 An event driven programming language Associated with a development environment.
Slide 1 of 9 Presenting 24x7 Scheduler The art of computer automation Press PageDown key or click to advance.
Overview of Database Access in.Net Josh Bowen CIS 764-FS2008.
Microsoft Access Ervin Ha.
ODBC Open DataBase Connectivity a standard database access method developed by Microsoft to access data from any application regardless of which database.
CIS 764 – Presentation Somil Chandwani.  With Microsoft Data Access Components (MDAC), developers can connect to and use data from a wide variety of.
1 Web Database Processing. Web Database Applications Static Report Publishing a report is prepared from a database application and exported to HTML DB.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 12-1 David M. Kroenke’s Chapter Twelve: ODBC, OLE DB, ADO, and ASP Part.
ActiveX Data Object (ADO) in JavaScript J.L.Wang, Yen-Cheng Chen Dept. of Infomation Management Ming-Chuan University Jan
Basics of Web Databases With the advent of Web database technology, Web pages are no longer static, but dynamic with connection to a back-end database.
Irwin/McGraw-Hill Copyright© 2000 by the McGraw-Hill Companies, Inc. PowerPoint® Presentation to accompany prepared by James T. Perry University of San.
Using Visual Basic 6.0 to Create Web-Based Database Applications
COLD FUSION Deepak Sethi. What is it…. Cold fusion is a complete web application server mainly used for developing e-business applications. It allows.
Fundamentals of Database Chapter 7 Database Technologies.
9 Chapter Nine Compiled Web Server Programs. 9 Chapter Objectives Learn about Common Gateway Interface (CGI) Create CGI programs that generate dynamic.
Tutorial 10 by Sam ine1020 Introduction to Internet Engineering 1 Database & Server-side Scripting Tutorial 10.
File Processing Concepts – Field – combination of 1 or more characters that is the smallest unit of data to be accessed – Record – group of related fields.
Universal Data Access and OLE DB. Customer Requirements for Data Access Technologies High-Performance access to data Reliability Vendor Commitment Broad.
Relational Databases Database Driven Applications Retrieving Data Changing Data Analysing Data What is a DBMS An application that holds the data manages.
Introduction to ADO Y.-H. Chen International College Ming-Chuan University Fall, 2004.
Visual Basic ADO Programming 56:150 Information System Design.
CSS/417 Introduction to Database Management Systems Workshop 4.
What’s new in ADO 2.5 Greg Hinkel Program Manager Data Access Group
How to Connect to Database ODBC (Open Database Connectivity) ADO (ActiveX Data Object) ASP Code To Connect to Database Recordset Object Navigating through.
3-Tier Client/Server Internet Example. TIER 1 - User interface and navigation Labeled Tier 1 in the following graphic, this layer comprises the entire.
ActiveX Data Objects (ADO) is Microsoft’s latest database object model. The goal of ADO is to allow VB developers to use a standard set of objects to refer.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 12-1 David M. Kroenke’s Chapter Twelve: ODBC, OLE DB, ADO, and ASP Part.
Copyright © Curt Hill Connectivity Communicating with the Database.
ASP-12-1 Data Store Access Colorado Technical University IT420 Tim Peterson.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
Database Connectivity What is ADO. What is ADO? ADO is a Microsoft technology ADO stands for ActiveX Data Objects ADO is a Microsoft Active-X component.
Database Connectivity with ASP.NET. 2 Introduction Web pages commonly used to: –Gather information stored on a Web server database Most server-side scripting.
What’s new in ADO 2.5 Greg Hinkel Program Manager Data Access Group
ASP-2-1 SERVER AND CLIENT SIDE SCRITPING Colorado Technical University IT420 Tim Peterson.
Introduction Because database applications today reside in a complicated environment, various standards have been developed for accessing database servers.
7-1 Active Server and ADO Colorado Technical University IT420 Tim Peterson.
1 ADO Activex Data Objects. 2 ADO ADO allows users to access data easily from many existing databases (such as Access or Paradox) From ODBC compliant.
ADO & Recordsets. ADO Description & History  ActiveX Data Objects  History  1991 ODBC  Data Access Objects (DAO) for VB developers (JET)  Remote.
Using databases ActiveX Data Objects (ADO) Connecting to a database Reading data from a database Inserting, updating and deleting records Using databases.
Lecture 4 Manipulating Form Data using methods of Recordset and RecordsetClone in VBA Restrict data with filter 1 Rapid Application Development.
Generating XML Data from a Database Eugenia Fernandez IUPUI.
 2 Data Object Library approaches ◦ DAO (Data Access Objects)  Original access strategy (up to VB6)  Closely linked to MS Access ◦ ADO (ActiveX Data.
ASP.NET Programming with C# and SQL Server First Edition
Visual Basic Database Access
Accessing the Database Server: ODBC, OLE DB, and ADO
ActiveX Data Objects (ADO)
ADO.NET Accessing Databases in VS.NET
VISUAL BASIC INTRODUCTION TO DATA CONNECTIVITY.
Introduction of Week 11 Return assignment 9-1 Collect assignment 10-1
Chapter 10 ADO.
What’s new in ADO Greg Hinkel Program Manager Data Access Group
Database Processing: David M. Kroenke’s Chapter Twelve: Part One
Presentation transcript:

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.

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 and file system stores; text, graphical etc.

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 ).

What is ADO?  ADO is API (application programming interface) introduced by Microsoft in October  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

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

ADO Software Architecture VC++VBScriptJava ADO OLE DB RDBMS Directory Services

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

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

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.

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”

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

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

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

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

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.

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.

All About ADO To learn more about goto: