Database Programming (using ADO) Universal Data Access – Microsoft strategy for providing access to information across the enterprise. – UDA provides high-performance.

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.
DIGIDOC A web based tool to Manage Documents. System Overview DigiDoc is a web-based customizable, integrated solution for Business Process Management.
FAST Radar System Engineering Overview. FAST Radar Overview –What’s Required? IIS 6.0  With Microsoft.NET Framework 1.1 and SMTP for MS SQL Server.
Technical Architectures
Fundamentals, Design, and Implementation, 9/e Chapter 12 ODBC, OLE DB, ADO, and ASP.
1 Pertemuan 13 Servers for E-Business Matakuliah: M0284/Teknologi & Infrastruktur E-Business Tahun: 2005 Versi: >
The ADO Data Control. Universal Data Access Open Database Connectivity (ODBC) –standard for accessing data in databases OLE-DB –allows access to data.
15 Chapter 15 Web Database Development Database Systems: Design, Implementation, and Management, Fifth Edition, Rob and Coronel.
Using Visual Basic 6.0 to Create Web-Based Database Applications
Chapter 12: ADO.NET and ASP.NET Programming with Microsoft Visual Basic.NET, Second Edition.
INTERNET DATABASE Chapter 9. u Basics of Internet, Web, HTTP, HTML, URLs. u Advantages and disadvantages of Web as a database platform. u Approaches for.
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.
Copyright 2003 : Ismail M.Romi, PPU. All Rights Reserved 1 Lab10 Interacting with Data (Database Management)
Chapter 12 Database Connectivity with ASP.NET JavaScript, Third Edition.
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 ?
Distributed Systems: Client/Server Computing
WORKING WITH FILES, MENUS AND DATABASES IN VISUAL BASIC BY V. V. SUBRAHMANYAM.
Three Tier Applications using the PI Historian, Microsoft Transaction Server (MTS), Internet Information Server (IIS), ActiveX Data Objects (AD0) and ActiveX.
Chapter 8 Relational Databases ActiveX Database Controls 8 Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta Eaton.
Microsoft Access Ervin Ha.
Web-based Software Development - An introduction.
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.
A Free sample background from © 2001 By Default!Slide 1.NET Overview BY: Pinkesh Desai.
CHAPTER 9 DATABASE MANAGEMENT © Prepared By: Razif Razali.
Beyond DHTML So far we have seen and used: CGI programs (using Perl ) and SSI on server side Java Script, VB Script, CSS and DOM on client side. For some.
1 ODBC, OLE DB, ADO, and ASP. 2 Introduction  Because database applications today reside in a complicated environment, various standards have been developed.
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.
Overview of Data Access MacDonald Ch. 15 MIS 324 Professor Sandvig.
9 Chapter Nine Compiled Web Server Programs. 9 Chapter Objectives Learn about Common Gateway Interface (CGI) Create CGI programs that generate dynamic.
Copyright © 2001 by Wiley. All rights reserved. Chapter 9: Introduction to Working with Databases in Visual Basic Database Concepts Relational Database.
CS480 Computer Science Seminar Introduction to Microsoft Solutions Framework (MSF)
Tutorial 10 by Sam ine1020 Introduction to Internet Engineering 1 Database & Server-side Scripting Tutorial 10.
Database Management School of Business Eastern Illinois University © Abdou Illia, Fall 2002 (Week 16, Monday 12/09/2002)
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.
Visual Basic ADO Programming 56:150 Information System Design.
CSS/417 Introduction to Database Management Systems Workshop 4.
SQL Server 2012 Session: 1 Session: 3 Introduction to SQL Server 2012 Data Management Using Microsoft SQL Server.
What is database?  Any Method for access info into Application from DataBase?  ODBC is standard for Accessing Data.  Problem with ODBC:  Information.
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.
Tutorial 91 Databases A database is an organized collection of related information stored in a file on a disk A database allows companies to store information.
DB MidWare CSIS 4490 N-Tier Client/Server Dr. Hoganson Database Middleware Early client/server database systems –Two tier –Server does business logic (data.
Database Management Systems CS 420. Topics Outline 1. Introduction 2. HTML Review 3. VBScript 4. Access DBMS 5. Relational Database 6. Design 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.
5-1 VISUAL J++ Colorado Technical University IT420 Tim Peterson.
Database Connectivity with ASP.NET. 2 Introduction Web pages commonly used to: –Gather information stored on a Web server database Most server-side scripting.
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.
DATABASE SYSTEM VB LINK TO MS-SQL. 2 Visual ProgrammingChapter 6 Select Project -> Component.
CLIENT SERVER COMPUTING. We have 2 types of n/w architectures – client server and peer to peer. In P2P, each system has equal capabilities and responsibilities.
E-commerce Architecture Ayşe Başar Bener. Client Server Architecture E-commerce is based on client/ server architecture –Client processes requesting service.
Data Control In this presentation… –databases supported –inserting a data control –data control properties –using the data control.
Lecture 4 Manipulating Form Data using methods of Recordset and RecordsetClone in VBA Restrict data with filter 1 Rapid Application Development.
Web-based Software Development - An introduction
Visual Basic Database Access
Accessing the Database Server: ODBC, OLE DB, and ADO
VISUAL BASIC INTRODUCTION TO DATA CONNECTIVITY.
Working With Databases
Unit – V Data Controls.
Presentation transcript:

Database Programming (using ADO) Universal Data Access – Microsoft strategy for providing access to information across the enterprise. – UDA provides high-performance access to a variety of relational and non-relational information sources Text files, Spreadsheets, Relational Databases, – Easy-to-use programming interface that is tool and language independent. – Enables you to integrate diverse data sources, create easy-to- maintain solutions, and use your choice of best-of-breed tools, applications, and platform services

UDA – does not require expensive and time- consuming movement of data into a single data store, – nor does it require commitment to a single vendor’s products – based on open industry specifications with broad industry support, and works with all major established database platforms

Microsoft Data Access Components – the key technologies that enable UDA – Data-driven client/server applications deployed over the Web or a LAN can use these components to easily integrate information from a variety of sources, both relational (SQL) and non-relational These components include ActiveX Data Objects (ADO), OLE DB, and Open Database Connectivity (ODBC)

ActiveX Data Objects (ADO) The strategic application programming interface (API) to data and information. ADO provides consistent, high-performance access to data and supports a variety of development needs, including the creation of front-end database clients and middle-tier business objects that use applications, tools, languages, or Internet browsers. ADO is designed to be the one data interface needed for single and multi-tier client/server and Web-based data- driven solution development

ActiveX Data Objects (ADO) ADO provides an easy-to-use interface to OLE DB, which provides the underlying access to data. ADO implements a minimal number of layers between the front end and data source—all to provide a lightweight, high-performance interface ADO uses the Component Object Model (COM) automation interface - a language-neutral way of implementing objects that can be used in environments different from the one they were created in, even across machine boundaries VB.NET uses XML-based SOAP messaging instead of COM

OLE DB The Microsoft strategic system-level programming interface to data across the organisation Standardized interface that allows programmers to use a standard set of programming tools to refer to data from any source OLE DB is designed for relational and non-relational information sources, including mainframe and hierarchical databases; and file system stores; text, graphical, and geographical data; custom business objects, etc.

OLE DB OLE DB defines a collection of COM interfaces that encapsulate various database management system services. These interfaces enable the creation of software components that implement such 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 query processors and cursor engines).

Database Programming (using ADO) ActiveX Data Objects (ADO 2.0) 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

How to Reference ADO 2.0 in Visual Basic To gain access to the ADO 2.0 objects in Visual Basic, set a reference to the appropriate ADO type library There are two ADO type libraries. One is called ADODB and is contained in MSADO15.DLL – It appears in the References dialog box (available from the Project menu) as "Microsoft ActiveX Data Objects 2.0 Library“ The other is called ADOR and is contained in MSADOR15.DLL – It appears in the References dialog as "Microsoft ActiveX Data Objects Recordset 2.0 Library"

Database Programming (using ADO) The first type library (ADODB) is the larger and more feature-rich of the two It contains the main ADO objects and is the one used in most circumstances The second is a "lightweight" subset of the ADODB type library that supports only recordsets

Database Programming (using ADO)

Connecting an ADO Data Control to a Database Place an ADO Data Control on the form Properties of the ADO Data Control that must be set: – ConnectionString: specifies the database file that the data control will communicate with – RecordSource: specifies the table that will be accessed 12

Database Programming (using ADO) ActiveX Data Objects (ADO) This is the ADO control added to the toolbox

Database Programming (using ADO)

Sample Data Model represented in Microsoft Access

Database Programming (using ADO) Student Table

Database Programming (using ADO) Create an instance of the ADO control on a form The control is named adoStudent

Database Programming (using ADO) Set the CONNECTIONSTRING property

Database Programming (using ADO)

Set the RECORDSOURCE property

Database Programming (using ADO) Set the RECORDSOURCE property Select a Table from the DB Select adCmdTable The RECORDSOURCE property is now set to tblStudent

Database Programming (using ADO) Add Data-Aware (Bound) controls to the form which are used to display the fields of data in the DB table (tblStudent) Name: txtID Name: txtName Name: txtAddress

Database Programming (using ADO) Set the DATASOURCE and DATAFIELD properties of each of the Text Boxes DATASOURCE = name of the ADO control (adoStudent) DATAFIELD = name of the required field in the DB table (tblStudent)

Database Programming (using ADO) The DATASORCE property

Database Programming (using ADO) The DATAFIELD property

Database Programming (using ADO) VB Front-End connected to a DB Back-End MoveFirst MovePrevious MoveNext MoveLast

Data Control with two bound text boxes 29 First Previous Last Next