1 Web Database Processing. Web Database Applications Static Report Publishing a report is prepared from a database application and exported to HTML DB.

Slides:



Advertisements
Similar presentations
Lecture plan Information retrieval (from week 11)
Advertisements

Chapter 13 © 2000 Prentice Hall Chapter 13 Accessing the Database Server: ODBC, OLE DB, and ADO David M. Kroenke Database Processing © 2000 Prentice Hall.
Database Processing Applications and Business Intelligence Chapter Seven DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 3 rd Edition.
1 Chapter 12 Working With Access 2000 on the Internet.
Fundamentals, Design, and Implementation, 9/e Chapter 12 ODBC, OLE DB, ADO, and ASP.
Session 6 Server-side programming - ASP. An ASP page is an HTML page interspersed with server-side code. The.ASP extension instead of.HTM denotes server-side.
Prentice Hall © COS 346 Day Agenda Capstone Progress report due Assignment 9 not corrected yet Assignment 10 posted (last one!!!) –Due.
ISYS 546 Client/Server Database Application Development.
BICS546 Client/Server Database Application Development.
15 Chapter 15 Web Database Development Database Systems: Design, Implementation, and Management, Fifth Edition, Rob and Coronel.
Creating WordPress Websites. Creating a site on your computer Local server Local WordPress installation Setting Up Dreamweaver.
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic Server Side Web Technologies: Part 2.
Fundamentals, Design, and Implementation, 9/e COS 346 DAY 22.
Week 2 IBS 685. Static Page Architecture The user requests the page by typing a URL in a browser The Browser requests the page from the Web Server The.
Introduction to Web Interface Technology (CSE2030)
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 12-1 COS 346 Day 22.
Database Processing Applications Chapter Seven DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 4 th Edition.
Client/Server Computing. Information processing is distributed among several workstations and servers on a network, with each function being assigned.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 12-1 David M. Kroenke’s Chapter Twelve: ODBC Database Processing: Fundamentals,
WHAT IS PHP PHP is an HTML-embedded scripting language primarily used for dynamic Web applications.
Christopher M. Pascucci Basic Structural Concepts of.NET Browser – Server Interaction.
+ Connecting to the Web Week 7, Lecture A. + Midterm Basics Thursday February 28 during Class The lab Tuesday, February 26 is optional review Class on.
Sys Prog & Scripting - HW Univ1 Systems Programming & Scripting Lecture 15: PHP Introduction.
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
Introduction to ASP.NET. Prehistory of ASP.NET Original Internet – text based WWW – static graphical content  HTML (client-side) Need for interactive.
Copyright © cs-tutorial.com. Introduction to Web Development In 1990 and 1991,Tim Berners-Lee created the World Wide Web at the European Laboratory for.
Databases and the Internet. Lecture Objectives Databases and the Internet Characteristics and Benefits of Internet Server-Side vs. Client-Side Special.
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.
Chapter 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Describe several.
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.
3/8/00asp00 1 Active Server Pages from Microsoft Nancy McCracken Northeast Parallel Architectures Center at Syracuse.
CSS/417 Introduction to Database Management Systems Workshop 5.
Internet, intranet, and multimedia database processing l Database processing across local and wide area networks l Alternative architectures for distributing.
11/16/2012ISC329 Isabelle Bichindaritz1 Web Database Application Development.
COLD FUSION Deepak Sethi. What is it…. Cold fusion is a complete web application server mainly used for developing e-business applications. It allows.
PHP With Oracle 11g XE By Shyam Gurram Eastern Illinois University.
HTML. Principle of Programming  Interface with PC 2 English Japanese Chinese Machine Code Compiler / Interpreter C++ Perl Assembler Machine Code.
Tutorial 10 by Sam ine1020 Introduction to Internet Engineering 1 Database & Server-side Scripting Tutorial 10.
Putting it all together Dynamic Data Base Access Norman White Stern School of Business.
CSS/417 Introduction to Database Management Systems Workshop 4.
Mainframe (Host) - Communications - User Interface - Business Logic - DBMS - Operating System - Storage (DB Files) Terminal (Display/Keyboard) Terminal.
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
What is database?  Any Method for access info into Application from DataBase?  ODBC is standard for Accessing Data.  Problem with ODBC:  Information.
Fundamentals, Design, and Implementation, 9/e by David M. Kroenke BSA206 Database Management Systems Lecture 21: Databases and the Web Chapters 12, 13.
3-Tier Client/Server Internet Example. TIER 1 - User interface and navigation Labeled Tier 1 in the following graphic, this layer comprises the entire.
INTRODUCTION TO WEB APPLICATION Chapter 1. In this chapter, you will learn about:  The evolution of the Internet  The beginning of the World Wide Web,
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.
+ Connecting to the Web Chapter 7. + Chapter Objectives Understand and be able to set up Web database processing Learn the basic concepts of Extensible.
Introduction and Principles Web Server Scripting.
WEB SERVER SOFTWARE FEATURE SETS
Database Connectivity and Server-Side Scripting Chapter 12.
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.
Web Page Designing With Dreamweaver MX\Session 1\1 of 9 Session 1 Introduction to PHP Hypertext Preprocessor - PHP.
Database Processing Applications Chapter Seven DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 7 th Edition.
Database application development 1. Chapter 8 © 2013 Pearson Education, Inc. Publishing as Prentice Hall OBJECTIVES  Define terms  Explain three components.
1 LM 6 Database Applications Dr. Lei Li. Learning Objectives Explain three components of a client-server system Describe differences between a 2-tiered.
Submitted by: Moran Mishan. Instructed by: Osnat (Ossi) Mokryn, Dr.
E-commerce Architecture Ayşe Başar Bener. Client Server Architecture E-commerce is based on client/ server architecture –Client processes requesting service.
Web Page Design The Basics. The Web Page A document (file) created using the HTML scripting language. A document (file) created using the HTML scripting.
Chapter 10 1 Figure 10-1: Database-enabled intranet-internet environment.
Database Processing Applications and Business Intelligence
Accessing the Database Server: ODBC, OLE DB, and ADO
PHP / MySQL Introduction
Database Processing Applications
Introduction of Week 11 Return assignment 9-1 Collect assignment 10-1
IntroductionToPHP Static vs. Dynamic websites
Database Processing: David M. Kroenke’s Chapter Twelve: Part One
Web Application Development Using PHP
Presentation transcript:

1 Web Database Processing

Web Database Applications Static Report Publishing a report is prepared from a database application and exported to HTML DB Query Publishing an HTML form is used to submit a query and the server responds with query results Application Publishing Support transaction logic, provide concurrency control over database changes etc. Page 277

Query Example

Transaction Example

ABC web connection tutorial f/Tutorial_asp/homepage.html For students using facbusad1: uanyuf/Tutorial_asp/homepage.html

Three-Tier Architecture Page 279 Figure 11-6 © 2000 Prentice Hall

Functions of Tiers Page 280 Figure 11-7 © 2000 Prentice Hall

Browser Connect to Web servers through URL Request and display web pages Submit data through forms Perform client site process

Web Server functions Maintaining session states Maintaining Server Side Scripting Environment Publishing Web pages

Maintaining Session States HTTP is a stateless protocol When database is used for transaction process, the Web server needs to maintain the identity of the client ASP creates two objects: Application object references an application Session object references a client The properties of application and session objects can be referenced by script in ASP page

Maintaining Server Side Scripting Environment Communication with DB server Data caching Constraint enforcement View construction (XML or other) Security and control Application logic View materialization

Web hosting

Web browser vs. web server Personal web server allows other people view your web page if your computer is connected to internet with an IP number. You can copy any web page to your hard disk and view it using web browser without the need of local web server

ODBC Open Database Connectivity DBMS-independent means for processing relational database data ORACLE SYBASE INFORMIX Microsoft SQL server IBM DB2 Page 342

Role of ODBC Standard Page 340 Figure 13-2 © 2000 Prentice Hall

ODBC Terminology Data source: the database, its associated DBMS, operating system, and network platform Driver manager: intermediary between the application and DBMS drivers Driver: processes ODBC requests and submits SQL statements to a data source Page 343

ODBC Architecture Page 343 Figure 13-5 © 2000 Prentice Hall

Conformance Levels ODBC conformance level concerned through driver’s application program interface (API) Core, level 1, level 2 SQL conformance level Minimum SQL Grammar Core SQL Grammar Extended SQL Grammar Page 344

ODBC Data Source Name A data source is a ODBC data structure that identifies a database and the DBMS that processes it. File data source: a file shared among database users System data source: local to a single computer User data source: only available to the user who created it Page 346

Role of OLE DB Page 341 Figure 13-3 © 2000 Prentice Hall

OLE DB Object Linking and Embedding Database; OLE DB breaks the features and functions of a DBMS up into objects Provides an object-oriented interface to data of almost any type and used as an interface to ODBC and non-relational data With OLE DB, a DBMS vendor can implement portions of their product Page 348

Object Terminology Abstraction: a generalization of something, e.g. rowset is abstraction of recordset Method: actions that an object can perform, e.g. Open, MoveFirst, Move Next, Close Property: a characteristic of an object, e.g. AllowEdit, RecordsetType of a recordset Collection: object that contains a group of other objects, e.g. a recordset is a collection of field objects Recordset.Fields.Count is a number of fields of a recordset Page 348

ADO Active Data Objects; an interface that enables programmers in almost any language (including scripting) to access OLE DB functionality Page 351

Role of ADO Page 342 Figure 13-4 © 2000 Prentice Hall

ADO Object Model Page 352 Figure © 2000 Prentice Hall

ADO Object Model Connection object RecordSet object Fields Collection Errors Collection Command object

Web-to-Database Connection with Active Server Pages (ASP) A scripting environment that you can use to create and run dynamic, interactive Web server applications The Web Server find the file and then processes all the ASP code between before handing back the page. Allows for easy querying and updating of a database from a Web page

A Simple Example of ASP hi.asp Today is and all is well Good Morning Good Day!

Use ASP to access database Create a data base on the server Create DSN (Data Source Name) using ODBC (Open Data Base Connectivity) In a HTML form, use action to invoke an ASP page In ASP page, connect to the database through DSN, using the values from the form to make a SQL query Execute SQL and generate a result HTML page

WYSIWYG Web Database Tool The shift from code-based approach to tools with graphical interfaces. All of the top-end WYSIWYG HTML editors have added database connectivity to some degree.

Macromedia Dreamweaver MX a professional HTML editor for designing, coding, and developing websites, web pages, and web applications. Dreamweaver helps you to build dynamic database-backed web applications using server languages such as ASP, ASP.NET, ColdFusion Markup Language (CFML), JSP, and PHP.

ASP vs. PHP ASP (Active Sever Pages) is a Microsoft product, and is usually used in conjunction with the IIS (Internet Information Server) that runs on Microsoft services. Uses Microsoft Visual Basic. PHP (Hypertext Pre Processor) is a open source program that runs on UNIX and Linux servers. Uses C++ and MySQL (free)