3-Tier Client/Server Internet Example. TIER 1 - User interface and navigation Labeled Tier 1 in the following graphic, this layer comprises the entire.

Slides:



Advertisements
Similar presentations
Connecting to Databases. relational databases tables and relations accessed using SQL database -specific functionality –transaction processing commit.
Advertisements

Advantage Data Dictionary. agenda Creating and Managing Data Dictionaries –Tables, Indexes, Fields, and Triggers –Defining Referential Integrity –Defining.
Chapter 10 ADO. What is ADO? ADO is a Microsoft technology ADO stands for ActiveX Data Objects ADO is a programming interface to access data in a database.
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.
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
Introduction to Web Database Processing
Using Objects and Properties
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.
1 C. Shahabi Application Programming for Relational Databases Cyrus Shahabi Computer Science Department University of Southern California
1 Pertemuan 09 Database Matakuliah: D0524 / Algoritma dan Pemrograman Komputer Tahun: 2005 Versi:
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 ?
1 © Prentice Hall, 2002 The Client/Server Database Environment.
Client-Server Processing and Distributed Databases
Overview of Database Access in.Net Josh Bowen CIS 764-FS2008.
Chapter 2 Database System Concepts and Architecture
ODBC Open DataBase Connectivity a standard database access method developed by Microsoft to access data from any application regardless of which database.
1 Web Database Processing. Web Database Applications Static Report Publishing a report is prepared from a database application and exported to HTML DB.
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.
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.
1 ODBC, OLE DB, ADO, and ASP. 2 Introduction  Because database applications today reside in a complicated environment, various standards have been developed.
4-1 INTERNET DATABASE CONNECTOR Colorado Technical University IT420 Tim Peterson.
Functions of a Database Management System
Using Visual Basic 6.0 to Create Web-Based Database Applications
ADO.NET A2 Teacher Up skilling LECTURE 3. What’s to come today? ADO.NET What is ADO.NET? ADO.NET Objects SqlConnection SqlCommand SqlDataReader DataSet.
Fundamentals of Database Chapter 7 Database Technologies.
Lecture Set 14 B new Introduction to Databases - Database Processing: The Connected Model (Using DataReaders)
Databases and Data Access  Introduction to ADO.NET  ADO.NET objects  ADP.NET namespaces  Differences between ADO and ADO.NET.
 2004 Prentice Hall, Inc. All rights reserved. 1 Segment – 6 Web Server & database.
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.
Dr Gordon Russell, Napier University Unit Embedded SQL - V3.0 1 Embedded SQL Unit 5.1.
CSS/417 Introduction to Database Management Systems Workshop 4.
Database Design and Management CPTG /23/2015Chapter 12 of 38 Functions of a Database Store data Store data School: student records, class schedules,
Mainframe (Host) - Communications - User Interface - Business Logic - DBMS - Operating System - Storage (DB Files) Terminal (Display/Keyboard) Terminal.
What is database?  Any Method for access info into Application from DataBase?  ODBC is standard for Accessing Data.  Problem with ODBC:  Information.
Lesson Overview 3.1 Components of the DBMS 3.1 Components of the DBMS 3.2 Components of The Database Application 3.2 Components of The Database Application.
Lecture Set 14 B new Introduction to Databases - Database Processing: The Connected Model (Using DataReaders)
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
5-1 VISUAL J++ Colorado Technical University IT420 Tim Peterson.
REST By: Vishwanath Vineet.
Database Connectivity with ASP.NET. 2 Introduction Web pages commonly used to: –Gather information stored on a Web server database Most server-side scripting.
Basics of JDBC Session 14.
ODBC : Open Database Connectivity SNU OOPSLA Lab. October 2005.
ASP-2-1 SERVER AND CLIENT SIDE SCRITPING Colorado Technical University IT420 Tim Peterson.
Module 4 Introduction ADO.NET.
CP476 Internet Computing Perl CGI and MySql 1 Relational Databases –A database is a collection of data organized to allow relatively easy access for retrievals,
7-1 Active Server and ADO Colorado Technical University IT420 Tim Peterson.
Creating Simple and Parallel Data Loads With DTS.
ADO & Recordsets. ADO Description & History  ActiveX Data Objects  History  1991 ODBC  Data Access Objects (DAO) for VB developers (JET)  Remote.
ADO .NET from. ADO .NET from “ADO .Net” Evolution/History of ADO.NET MICROSOFT .NET “ADO .Net” Evolution/History of ADO.NET History: Most applications.
ASP.NET Programming with C# and SQL Server First Edition
Chapter 9: The Client/Server Database Environment
Chapter 2 Database System Concepts and Architecture
MVC and other n-tier Architectures
The Client/Server Database Environment
ISC440: Web Programming 2 Server-side Scripting PHP 3
Data, Databases, and DBMSs
Tiers vs. Layers.
Introduction of Week 11 Return assignment 9-1 Collect assignment 10-1
Chapter 10 ADO.
Presentation transcript:

3-Tier Client/Server Internet Example

TIER 1 - User interface and navigation Labeled Tier 1 in the following graphic, this layer comprises the entire user experience. Not only does this layer provide a graphical interface so that users can interact with the application, input data, and view the results of requests, it also manages the manipulation and formatting of data once the client receives it. In Web applications, the browser performs the tasks of this layer. TIER 2 - Business logic Tier 2, between the interface and data services layers, is the domain of the distributed application developer. Business logic, which captures the rules that govern application processing, connects the user at one end with the data at the other. The functions that the rules govern closely mimic everyday business tasks, and can be a single task or a series of tasks. TIER 3 - Data services Shown as Tier 3 in the following graphic, data services are provided by a structured (SQL, Oracle database) or unstructured (Microsoft® Exchange, Microsoft® Message Queuing) data store, which manages and provides access to the application data. A single application may enlist the services of one or more data stores.

3-Tier Client/Server Example

Database/Back End Example

Microsoft’s Universal Data Access ActiveX Data Objects (ADO) provide business objects to data Re-useable Components are built using OLE DB Data Providers export: –OLE DB (new relational or non-relational) –ODBC (existing relational) ADO Client Component OLE DB SQL Data OLE DB Component OLE DB ODBC Provider OLE DB

Interface exposed by Data Providers Access to any type of data –Low-level interfaces for data providers –Doesn’t require data to look like SQL Component data architecture –Suitable for building individual data components Response to Universal Data Store –Integrate all types of data without requiring everything to be put in a database

ActiveX Data Objects (ADO) User’s programmatic interface to Data High-level data access objects –Provides a uniform interface to data for all business application programmers –Merges RDO and DAO “Language Neutral” –C/C++, Java, Visual Basic ®, VBScript –ISVs can redistribute Provides access to underlying Rowset –Ultimate extensibility –OLE DB and ADO clients can share data

ADO Simple rowset provider interfaces Monolithic application Single data access interface Application can access new types of data Application is still difficult to maintain and extend SQLData OLE DB SpreadsheetData address: ole db Product info specification Download Resources e HTMLData OLE DB MailData ISAMData 0:00.00 Begin Transaction T000 0:00.15 Commit Transaction T000 0:00.17 Begin Transaction T001 0:01.00 Join Transaction T001 Resource R902 0:02.07 insert 9.72 to Resource R902 0:05.17 Begin Transaction T002 0:06.92 insert 8.73 to Resource R902 0:07.18 Join Transaction T001 Resource R910 0:07.19 Join Transaction T002 Resource R731 0:09.27 insert to Resource R902 0:09.28 delete from Resource R910 0:09.30 Commit Transaction T000 LogFile OLE DB Application Contains: User Interface Busness Rules Client Cursor Query Processor Application Data Access via ADO/OLE DB

ADO Programming Model

The Parameter Object The Parameter object represents a parameter of a Command. As noted in the Command description, you can explicitly create Parameter objects and add them to the Parameters collection to avoid the often unnecessary and expensive task of going to the system catalog to automatically populate the parameter binding information. The Recordset Object The Recordset object is by far the most complex (the others are simplified considerably). This is not surprising, however, because all the cursor functionality is represented in this object. The Recordset object looks much like it does in existing models today, but a number of improvements have been made, such as removing unnecessary elements, adding optional arguments that reduce the number of lines of code for common scenarios, and changing defaults that didn't make sense in today's technologies. The Connection Object The Connection object represents a connection to the data source and allows you to execute commands. To execute any kind of command, you use the Execute method of the Connection object. If the command returns rows, a default Recordset object is created and returned. To specify a more complex Recordset, you create a new Recordset object, associate it with the Connection, and open the cursor.

Summary of the Objects The Command Object The Command object represents a command (also known as a query or statement) that can be processed by the data source. Commands can return rows or not, and if the provider is capable, can also handle parameters. The Command object is actually optional in the ADO model because some data providers cannot supply command execution, but the object is supported if the provider supports commands. Commands can be simple SQL statements (or some other language the data provider recognizes) or calls to stored procedures in the database. Commands can then be executed using the Command's Execute method, or you can create a Recordset object and associate it with the Command object when opening the cursor. The Command object includes a collection of Parameter objects, which is described below. If the provider can support commands with parameters, the Parameters collection will contain one parameter object for each parameter in the command. As opposed to past models, you can create Parameter objects and explicitly add them to the Parameters collection, thus allowing you to use well-known parameterized commands to avoid the sometimes very expensive operation of having the provider populate the Parameters collection automatically based on the system catalog.

The Field Object The Field interface represents a column in a Recordset that you can use to obtain values, modify values, and learn about column meta-data. This object is almost identical to past models, but includes some new functionality. The Error Object The Error object represents an error returned from a data source. This object is actually optional because it is only needed when data sources can return multiple errors for a single method call. If a provider does not return multiple errors for a single function call, the provider just raises the error through the normal COM mechanisms that all COM servers do when called from languages like Visual Basic.