Interacting With Data Week 8 Connecting to the database Creating recordsets Interacting with the database.

Slides:



Advertisements
Similar presentations
Basics of Database Programming with VB6
Advertisements

Obtain Data from Other Sources Data you need to include in an Access database often already exists in another file: in another Access database, in a table.
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.
Java, Access, SQL, HTML. Three-tier architecture involves: Client - Browser Server - Tomcat Database - Access - Server-side language - JSP could just.
15 Chapter 15 Web Database Development Database Systems: Design, Implementation, and Management, Fifth Edition, Rob and Coronel.
Object-Oriented Application Development Using VB.NET 1 Chapter 13 Introduction to Data Access Classes and Persistence.
Database Connectivity Rose-Hulman Institute of Technology Curt Clifton.
DT228/3 Web Development Databases. Database Almost all web application on the net access a database e.g. shopping sites, message boards, search engines.
MIS2502: Data Analytics MySQL and SQL Workbench David Schuff
Confidential ODBC May 7, Features What is ODBC? Why Create an ODBC Driver for Rochade? How do we Expose Rochade as Relational Transformation.
Accuplacer & Compass Download Application Bettsie Montero – Imperial Valley College.
ODBC Open DataBase Connectivity a standard database access method developed by Microsoft to access data from any application regardless of which database.
Web to Database Connectivity Tools Frank Cervone Assistant Director for Systems DePaul University Libraries Access ‘98 October 3, 1998.
PHP Programming. Topics Background and History of PHP Installation Comments in PHP Variables Conditions Loops Functions File Handling Database Handling.
Advance Computer Programming Java Database Connectivity (JDBC) – In order to connect a Java application to a database, you need to use a JDBC driver. –
Getting connected.  Java application calls the JDBC library.  JDBC loads a driver which talks to the database.  We can change database engines without.
Computing for Bioinformatics Introduction to databases What is a database? Database system components Data types DBMS architectures DBMS systems available.
JDBC Java Database Connectivity. What is an RDBMS? Relational database management system. There are other kinds of DBMS. Access is a GUI on a JET RBDMS.
Interacting With Data Databases.
4-1 INTERNET DATABASE CONNECTOR Colorado Technical University IT420 Tim Peterson.
Chapter 7 PHP Interacts with Ms. Access (Open DataBase Connectivity (ODBC))
ODBC : Open Database Connectivity SNU OOPSLA Lab. October 2005.
© Wang Bin 2004 JDBC ----Java Database Connectivity.
Beginning Databases with JDBC Mike Bradley Adapted from and notes by Kevin Parker, Ph.D.
Lecture On Database Analysis and Design By- Jesmin Akhter Lecturer, IIT, Jahangirnagar University.
Database 20/2/12 Connection. 
Database Programming in Java Corresponds with Chapter 32, 33.
PHP Programming with MySQL Slide 8-1 CHAPTER 8 Working with Databases and MySQL.
DATABASE PROGRAMMING Lecture on 16 – 05 – PREVIOUS LECTURE QUIZ: - Some students were very creative in transforming 2NF to 3NF. Excellent! - Some.
Simple Database.
Miscellaneous Excel Combining Excel and Access. – Importing, exporting and linking Parsing and manipulating data. 1.
Web Server Administration Chapter 7 Installing and Testing a Programming Environment.
Tutorial 10 by Sam ine1020 Introduction to Internet Engineering 1 Database & Server-side Scripting Tutorial 10.
MET280: Computing for Bioinformatics Introduction to databases What is a database? Not a spreadsheet. Data types and uses DBMS (DataBase Management System)
MySQL Databases & PHP Integration Using PHP to write data to, and retrieve data from, a MySQL database.
Technology & Management Club Development Software Overview.
JDBC. JDBC stands for Java Data Base Connectivity. JDBC is different from ODBC in that – JDBC is written in Java (hence is platform independent, object.
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.
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.
Ch 14 QQ T F 1.A database table consists of fields and records. T F 2.Good data validation techniques can help improve data integrity. T F 3.An index is.
Course FAQ’s I do not have any knowledge on SQL concepts or Database Testing. Will this course helps me to get through all the concepts? What kind of.
The Problems HTTP is disconnected So many database vendors Create a simple consistent versatile interface on the data Look at ADO.NET classes OleDb SQL.
Copyright © Curt Hill Connectivity Communicating with the Database.
DATABASE CONNECTIVITY TO MYSQL. Introduction =>A real life application needs to manipulate data stored in a Database. =>A database is a collection of.
Chapter 10 Database Management. Data and Information How are data and information related? p Fig Next processing data stored on disk Step.
PHP Programming. Topics Database Handling (MySQL, MSSQL, ODBC)
JDBC CS 260 Database Systems. Overview  Introduction  JDBC driver types  Eclipse project setup  Programming with JDBC  Prepared statements  SQL.
Database Connectivity What is ADO. What is ADO? ADO is a Microsoft technology ADO stands for ActiveX Data Objects ADO is a Microsoft Active-X component.
Database Connectivity and Server-Side Scripting Chapter 12.
ADO.NET Architecture MIS3502: Application Integration and Evaluation David Schuff Adapted from material by Arnold Kurtz, David.
Basics of JDBC Session 14.
ODBC : Open Database Connectivity SNU OOPSLA Lab. October 2005.
ECMM6018 Enterprise Networking For Electronic Commerce Tutorial 6 CGI/Perl and databases.
Object-Oriented Application Development Using VB.NET 1 Chapter 13 Introduction to Data Access Classes and Persistence.
In the Name Of Almighty Allah. Java Application Connection To Mysql Created by Hasibullah (Sahibzada) Kabul Computer Science Faculty Afghanistan.
Using databases ActiveX Data Objects (ADO) Connecting to a database Reading data from a database Inserting, updating and deleting records Using databases.
MYSQL AND MYSQL WORKBENCH MIS2502 Data Analytics.
R EMAINING TOPICS IN JDBC Sagun Dhakhwa. O VERVIEW Introduction to JDBC API Types of JDBC Drivers Introduction to ODBC.
 2 Data Object Library approaches ◦ DAO (Data Access Objects)  Original access strategy (up to VB6)  Closely linked to MS Access ◦ ADO (ActiveX Data.
Accessing Databases using Ado.net
JDBC Database Management Database connectivity
IS444: Modern tools for applications development
IS444: Modern tools for applications development
Tiers vs. Layers.
Introduction of Week 11 Return assignment 9-1 Collect assignment 10-1
Chapter 10 ADO.
Database Connections.
Unit – V Data Controls.
Presentation transcript:

Interacting With Data Week 8 Connecting to the database Creating recordsets Interacting with the database

Database - Data Table Studentno Name AddressPhone White 9 White St Brown 6 Brown Rd Smith 2 Smith St Row (Record) Column (Field) Students Information is added to a data table on a Row by Row basis Table names and Column names are case sensitive Table Name

How Data Flows Client Browser ODBC (Open Database Connectivity) (Translates client request so DBMS understands what the client wants) Database Management System (Applies rules and searches for data) Data Tables (contains all information) Recordsets (contains copy of information requested by client) Search for Data (SQL query) Create recordset based on data found Sends and receives Query request by way of Recordset Object Sends Recordset request by way of Connection Object

How Data Flows ODBC Connection Interpreter (DSN) (Translates client request so DBMS understands what to do) Open Database Connectivity provides a standard software interface to different database management systems (DBMS). Software applications can communicate with different DBMSs without altering their applications by using drivers provided by Database system vendors “a standard database access method developed by the SQL Access group in The goal of ODBC is to make it possible to access any data from any application, regardless of which database management system (DBMS) is handling the data. ODBC manages this by inserting a middle layer, called a database driver, between an application and the DBMS. The purpose of this layer is to translate the application's data queries into commands that the DBMS understands. For this to work, both the application and the DBMS must be ODBC-compliant -- that is, the application must be capable of issuing ODBC commands and the DBMS must be capable of responding to them. Since version 2.0, the standard supports SAG SQL. definitions/index_p_php_q_ow_page_number_e_110opt.html

DSNs (data source name) are set up to use drivers, either by; 1) accessing the ODBC applet in the control panel or, 2) writing a DSN-less connection string (handy when you do not have access to the control panel or when the O/S does not have a control panel) A Connection Object is created which allows the application to connect to the database System How Data Flows

Creating The Connection Object The Connection Object can be created either as a DSN or DSN-less connection DSN Connection <% ‘create the object (DSN already set in the control panel) that will connect to the database Set conn = Server.CreateObject (“ADODB.Connection”) ‘ open the connection conn.Open “INT213con” %> Note:  I will discuss this topic in nest week. DSN-less Connection <% ‘create the object without DSN being setup in control panel Set conn =Server. CreateObject (“ADODB.Connection”) ‘ create the connection conn.ConnectionString="DRIVER={Microsoft Access Driver (*.mdb)};" &_ "DBQ=C:\Inetpub\wwwroot\INT213db.mdb“ ‘Open the connection conn.Open %>

Recordset Object Recordset Object sends a query to the database system using the Connection Object. A recordset is a data structure that consists of a group of database records, and can either come from a base table or as the result of a query to the table. structuredatabaserecordstablequery The DBMS processes the query and returns the data requested in the form of Rows and Columns (just like an Excel spreadsheet). The Recordset and the data it contains is a copy (snapshot) of the data from the data tables. It is held in RAM on the client system. This data can be displayed, altered, deleted, etc. Any changes are sent back to the server using the Recordset Object The actual data tables will not be affected by changes until the Recordset is written back to the Data Tables. Recordsets (contains information requested by client)