ThePlace

Home ] Search ] Resources ] Site Map ] Contact Me ]
Dave's Information Technology Resource

Up ]

[ Web DB Background ] ADO Technology ] SQL Review ]

--- Web DB Background ---

Connecting Databases to the Web

Static v. Dynamic Web Applications

bulletStatic - data is in HTML pages, pages must be rebuilt and deployed for updates.
bulletDynamic - data is stored in database, application builds the web pages as needed.

Types of Applications

bulletSearch Engines
bulletE-commerce
bulletLarge scale information delivery
bulletExamples: http://www.amazon.com, http://www.altavista.com

Tools for Creating Web Database Applications

bulletCan be as simple as text editor and appropriate web server configuration.
bulletTools are often server-dependent
bulletVisual InterDev - Microsoft interactive Web development tool
bulletOracle 8i - web database integration tools
bulletAllaire HomeSite and Microsoft FrontPage- can be used to create server/client side projects
bulletDrumbeat

Techniques for Connecting to Databases

bulletODBC
bulletOLE/DB
bulletOther techniques (depends on platform and database).

ODBC

bulletOpen Database Connectivity (ODBC) technology provides a common interface for accessing heterogeneous SQL databases.
bulletODBC is based on Structured Query Language (SQL) as a standard for accessing data. This interface provides maximum interoperability: a single application can access different SQL Database Management Systems (DBMS) through a common set of code.
bulletIt enables a developer to build and distribute a client/server application without targeting a specific DBMS.
bulletDatabase drivers are then added to link the application to the user's choice of DBMS.
bulletODBC Applications are not tied to a proprietary vendor API.

 

 

OLEDB Technology

bulletMicrosoft specification for integrating databases with applications (including the web).
bulletIt is built on Microsoft COM and is seen as both a complement and a replacement for ODBC.
bulletIntended to be faster, more efficient, easier to maintain and use.
bulletIncludes direct connectivity (C++, J++) and connectivity via ODBC.

Web Architecture - Based on Standards

Browser

bulletHTML standards
bulletVendor implementations

TCP/IP

bulletInternet v. Intranet
bulletBandwidth

HTTP/HTTPS

bulletStandards for implementation
bulletPlatforms - UNIX, NT most common
bulletImplementations - Apache, IIS, Netscape

CGI

bulletStandard for HTTP communication with environment.

Web/Database Architecture

Two Tier Model

Three Tier Model (Separate Database Server)

Web Forms and CGI (Common Gateway Interface)

Web Form - displays/presents the data.

bullet

Basic set of controls for an interactive interface

bullet

Text box, Radio Button, Check Box, Button, List Box

bullet

Form is directed to a web application/page.

Post/Get - sends data from the browser to the server.

bullet

Post - sends as part of the Request data stream (stdin/out)

bullet

Get - sends as part of the URL (www.acme.com/appname?param=value&param2=value)

CGI Operation

bullet

Depends on a programming interface between application and web server.

bullet

Key aspects include input/output (data) & server operations

bullet

Moves data between the web server and the server-database application.

bullet

Provides server/environment information to application

bullet

Can be used to maintain state information

Database Connections via Object Technology (for Microsoft anyway)

bullet

ActiveX Data Objects = ADO

bullet

Integrates with ASP, Perl, Java, and other web server technologies.

bullet

Components that allow you to connect to and access a database.

bullet

Key objects: Connection, Recordset, Error

bullet

Connection - identifies the database, establishes a link (“database connection”). Is used to insert, update, delete data from tables.

bullet

Recordset - holds the data – handles the product of a select statement.

bullet

Error – identifies and tracks errors during database interactions.

 

 

 

Home ] Up ] Computer Architecture ] Programming Bootcamp ] Database Bootcamp ] Visual BasicS ] Web Basics ] Web Multimedia ] Web Programming ] Advanced Web Topics ] Developing Web Sites ] XML Technology ] Web Glossary ]

Copyright © 1999 - 2005 
ThePlace - Written and Sponsored by Dave Hillman