IS 4506 Database Connectivity.  Overview Two and Three-Tier C/S Architecture ASP Database Connection ODBC - Connection to DBMS Overview of transaction.

Slides:



Advertisements
Similar presentations
Chapter 9: The Client/Server Database Environment
Advertisements

Netscape Application Server Application Server for Business-Critical Applications Presented By : Khalid Ahmed DS Fall 98.
Advantage Data Dictionary. agenda Creating and Managing Data Dictionaries –Tables, Indexes, Fields, and Triggers –Defining Referential Integrity –Defining.
ICOM 6005 – Database Management Systems Design Dr. Manuel Rodríguez-Martínez Electrical and Computer Engineering Department Lecture 16 – Intro. to Transactions.
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
Database Application Application logic: presentation (input /output)
Concurrency control using transactions 1Transactions.
Introduction to Web Database Processing
Database Connectivity Rose-Hulman Institute of Technology Curt Clifton.
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
Ch 12 Distributed Systems Architectures
ASP.NET Programming with C# and SQL Server First Edition Chapter 8 Manipulating SQL Server Databases with ASP.NET.
Managing Concurrency in Web Applications. DBI 2007 HUJI-CS 2 Intersection of Concurrent Accesses A fundamental property of Web sites: Concurrent accesses.
1 © Prentice Hall, 2002 The Client/Server Database Environment.
Centralized and Client/Server Architecture and Classification of DBMS
Lecture The Client/Server Database Environment
Client/Server Computing. Information processing is distributed among several workstations and servers on a network, with each function being assigned.
The Client/Server Database Environment
INTRODUCTION TO TRANSACTION PROCESSING CHAPTER 21 (6/E) CHAPTER 17 (5/E)
1 Web Database Processing. Web Database Applications Static Report Publishing a report is prepared from a database application and exported to HTML DB.
Client/Server Databases and the Oracle 10g Relational Database
FrontPage 2000 Web Page Database Connectivity. Client /Server Architecture Database Server PCs Middleware.
AGENDA 1.Introduction 2.Course Policy 3.What is SQL 2000 Server? 4.Client-Server Architecture and Communications 5.SQL 2000 Versions 6.SQL 2000 Server.
Introduction to Databases
Chapter 7 PHP Interacts with Ms. Access (Open DataBase Connectivity (ODBC))
1 © Prentice Hall, 2002 Chapter 8: The Client/Server Database Environment Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott,
MBA 664 Database Management Systems Dave Salisbury ( )
Server Side Programming ASP1 Server Side Programming Database Integration (cont.) Internet Systems Design.
SDPL 2001Notes 7: XML Web Sites1 7 XML Web-Site Architectures n How (and why) to apply XML techniques in the implementation of Web sites? 7.1 XML, Databases,
© 2005 by Prentice Hall 1 Chapter 9: The Client/Server Database Environment Modern Database Management 7 th Edition Jeffrey A. Hoffer, Mary B. Prescott,
CS480 Computer Science Seminar Introduction to Microsoft Solutions Framework (MSF)
1cs Intersection of Concurrent Accesses A fundamental property of Web sites: Concurrent accesses by multiple users Concurrent accesses intersect.
IS 4506 Interactive Clients & Servers.  Overview Fat Client versus Fat Server Spectrum of Web content formats Active Server Pages Active Server Page.
CSS/417 Introduction to Database Management Systems Workshop 4.
1 SQL Constraints and Programming. 2 Agenda Constraints in SQL Systems aspects of SQL.
Presented By: Shreya Patel ( ) Vidhi Patel ( ) Universal College Of Engineering And Technology.
The Client/Server Database Environment Ployphan Sornsuwit KPRU Ref.
Mainframe (Host) - Communications - User Interface - Business Logic - DBMS - Operating System - Storage (DB Files) Terminal (Display/Keyboard) Terminal.
How to Connect to Database ODBC (Open Database Connectivity) ADO (ActiveX Data Object) ASP Code To Connect to Database Recordset Object Navigating through.
Introduction to Database Systems. RHS – Why databases are important Because we use databases all the time!! –Google –Youtube –Facebook –E-shopping.
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.
JSP Server Integrated with Oracle8i Project2, CMSC691X Summer02 Ching-li Peng Ying Zhang.
1 Chapter Overview What is Microsoft SQL Server 2000? What are the SQL Server 2000 Components? What is the Relational Database Architecture? What is the.
Chapter 1 Introduction to Ecommerce What is E-Commerce? Microsoft Technologies for E- Commerce. What is an ASP Page. Objectives :
Transaction Processing Concepts Muheet Ahmed Butt.
TM 8-1 Copyright © 1999 Addison Wesley Longman, Inc. Client/Server and Middleware.
ViaSQL Technical Overview. Viaserv, Inc. 2 ViaSQL Support for S/390 n Originally a VSE product n OS/390 version released in 1999 n Identical features.
Copyright 2007 SpringSource. Copying, publishing or distributing without express written permission is prohibited. Overview of the Spring Framework Introducing.
CSC 480 Software Engineering Lecture 17 Nov 4, 2002.
10 1 Chapter 10 - A Transaction Management Database Systems: Design, Implementation, and Management, Rob and Coronel.
Integrating the Mainframe Liberating Enterprise Data.
ICOM 6005 – Database Management Systems Design Dr. Manuel Rodríguez-Martínez Electrical and Computer Engineering Department Lecture 16 – Intro. to Transactions.
Advanced Database CS-426 Week 6 – Transaction. Transactions and Recovery Transactions A transaction is an action, or a series of actions, carried out.
E-commerce Architecture Ayşe Başar Bener. Client Server Architecture E-commerce is based on client/ server architecture –Client processes requesting service.
Netscape Application Server
The Client/Server Database Environment
The Client/Server Database Environment
ACID PROPERTIES.
Transactions Properties.
CS122B: Projects in Databases and Web Applications Winter 2018
On transactions, and Atomic Operations
On transactions, and Atomic Operations
File Operations Access Permissions.
Introduction of Week 11 Return assignment 9-1 Collect assignment 10-1
Lesson Objectives Aims You should know about: 1.3.2: (a) indexing (d) SQL – Interpret and Modify (e) Referential integrity (f) Transaction processing,
Updating Databases With Open SQL
CS122B: Projects in Databases and Web Applications Winter 2019
CS122B: Projects in Databases and Web Applications Spring 2018
Updating Databases With Open SQL
Lecture 11: Transactions in SQL
Presentation transcript:

IS 4506 Database Connectivity

 Overview Two and Three-Tier C/S Architecture ASP Database Connection ODBC - Connection to DBMS Overview of transaction processing

Client /Server Architecture Database Server PCs Middleware

Web Client/Server Architecture Client Web Browser HTTP Server INTERNETINTRANET

Multi-Tier Client/Server Architecture Database Server Client Web Browser HTTP Server INTERNETINTRANET

ODBC Errors a) A user tries to connect to a database via your company’s web site and receives the error "ODBC…" Login failure. What is the possible cause? The user has insufficient permission to access the database. b) A user tries to connect to a database via your company’s web site and receives the error "ODBC…" General network error. What is the possible cause? Due to heavy use, the database was recently moved to another server.

ODBC Errors c) A user tries to connect to a database via your company’s web site and receives the error "ODBC…" MS OLE ODBC provider for ODBC driver error MS ODBC driver manager. Data source name not found and no default driver specified. What is the possible cause? Data source name is configured incorrectly. d) A user tries to connect to a database via your company’s web site and receives the error "ODBC…" Unable to find resources. What is the possible cause? ODBC driver not configured.

ASP Code <% Set OBJdbConnection = Server.CreateObject("ADODB.Connection") OBJdbConnection.Open "is4506","", "” strSQL = "INSERT INTO Students (FName,LName, ) VALUES ('" & Request.Form("first") & "', '" & Request.Form("last") & "','" & Request.Form(" ") & "')" OBJdbConnection.Execute(strSQL) OBJdbConnection.Close %>

 Database Connection - Input Set OBJdbConnection = Server.CreateObject("ADODB.Connection") OBJdbConnection.Open "is4506","", "" strSQL = "INSERT INTO Students(fname,lname) VALUES ('" & Request.Form("fname") & "', '" & Request.Form("lname") & "')" OBJdbConnection.Execute(strSQL) OBJdbConnection.Close

 Database Connection - Update Set OBJdbConnection = Server.CreateObject("ADODB.Connection") OBJdbConnection.Open "is4506","", "" ifname = Request.Form("fname") 'example of using a variable in the SQL expression strSQL = "UPDATE Students SET fname = ('" & ifname & "'), lname = ('" & Request.Form("lname") & "') WHERE ID = (" & Request.Form("ID") & ")" OBJdbConnection.Execute(strSQL) OBJdbConnection.Close

 Database Connection - Delete Set OBJdbConnection = Server.CreateObject("ADODB.Connection") OBJdbConnection.Open "is4506","", "" 'Note that the single apostrophe is missing from the ID expression when using numbers vice strings. strSQL = "DELETE FROM Students WHERE ID = (" & Request.Form("ID") & ")" OBJdbConnection.Execute(strSQL) OBJdbConnection.Close

 Overview of Transaction Processing Transaction A unit of work that succeeds or fails as a whole Method for coordinating a series of changes made to a resource or sets of resources ACID Properties Atomicity Consistency Isolation Durability

ACID Properties Atomicity - Either all changes happen or none happen. Consistency - Actions taken as a group do not violate any integrity. Isolation - For actions that execute concurrently, one is either executed before or after the other, but not both. Durability - Changes survive failures of process, network, operating system, and others.

Three-Tier Architecture Presentation Business/Data components Data access

Components of a Transaction Network Receiver Queue Connections Security Thread Pool Service Logic Synchronization Shared Data Context DB Manager Configuration Client

The Bank Example Four Components Account Modifies an account Move Money Debit, credit, or transfer Receipt Get unique # Update receipt Allocation 100 receipt #s Client Transaction Move Money Account Update Receipt

MSDE MSDE is a stripped down version of SQL Server that is included with Access 2000 and Access The Access 2000 version is named Microsoft Data Engine. It is a stripped down version of SQL Server 7. It can be installed directly from the Office 2000 CD from the following location: SQL\x86\SETUP\SETUPSQL.EXE The Access 2002 version is named Microsoft Desktop Engine. It is a stripped down version of SQL Server It can also be installed directly from the CD from the following location: MSDE\SETUP.EXE Both servers are fully functional SQL Servers but they do not include a user interface like Enterprise Manager.