Database Connections.

Slides:



Advertisements
Similar presentations
CSE 190: Internet E-Commerce Lecture 10: Data Tier.
Advertisements

CSC 2720 Building Web Applications Database and SQL.
Computer Science 101 Web Access to Databases Overview of Web Access to Databases.
DAT702.  Standard Query Language  Ability to access and manipulate databases ◦ Retrieve data ◦ Insert, delete, update records ◦ Create and set permissions.
From VS C# 2010 Programming, John Allwork 1 VS2010 C# Programming - DB intro 1 Topics – Database Relational - linked tables SQL ADO.NET objects Referencing.
1 Relational Databases. 2 Find Databases here… 3 And here…
What is MySQL? MySQL is a database. The data in MySQL is stored in database objects called tables. A table is a collections of related data entries and.
Interacting With Data Week 8 Connecting to the database Creating recordsets Interacting with the database.
Interacting With Data Databases.
Advanced Database Management System Lab no. 11. SQL Commands (for MySQL) –Update –Replace –Delete.
Chapter 7 PHP Interacts with Ms. Access (Open DataBase Connectivity (ODBC))
Intro to JDBC To effectively use Java Data Base Connectivity we must understand: 1.Relational Database Management Systems (RDBMS) 2.JDBC Drivers 3.SQL.
 SQL stands for Structured Query Language.  SQL lets you access and manipulate databases.  SQL is an ANSI (American National Standards Institute) standard.
CIS 270—Application Development II Chapter 25—Accessing Databases with JDBC.
Databases in Visual Studio. Database in VisualStudio An MS SQL database are built in Visual studio The Name can be something like ”(localdb)\Projects”
Introduction to SQL Steve Perry
2440: 141 Web Site Administration Database Management Using SQL Professor: Enoch E. Damson.
Simple Database.
Web Services Week 8 Aims: –Using web services as front ends to databases Objectives: –Review of relational databases –Connecting to and querying databases.
Web Server Administration Chapter 7 Installing and Testing a Programming Environment.
1 Working with MS SQL Server Textbook Chapter 14.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 Working with MSSQL Server Code:G0-C# Version: 1.0 Author: Pham Trung Hai CTD.
15/10/20151 PHP & MySQL 'Slide materials are based on W3Schools PHP tutorial, 'PHP website 'MySQL website.
PHP MySQL Introduction. MySQL is the most popular open-source database system. What is MySQL? MySQL is a database. The data in MySQL is stored in database.
Introduction to Internet Databases MySQL Database System Database Systems.
NMED 3850 A Advanced Online Design January 12, 2010 V. Mahadevan.
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.
How to Connect to Database ODBC (Open Database Connectivity) ADO (ActiveX Data Object) ASP Code To Connect to Database Recordset Object Navigating through.
Web Server Administration Chapter 7 Installing and Testing a Programming Environment.
CIS 375—Web App Dev II SQL. 2 Introduction SQL (Structured _______ Language) is an ANSI standard language for accessing databases.ANSI SQL can execute.
CIS 375—Web App Dev II SQL. 2 Introduction SQL (Structured _______ Language) is an ANSI standard language for accessing databases.ANSI SQL can execute.
Module Review Basic SQL commands: Create Database, Create Table, Insert and Select 2. Connect an SQL Database to PHP 3. Execute SQL Commands in.
Planning & Creating a Database By Ms. Naira Microsoft Access.
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.
Distribution of Marks For Second Semester Internal Sessional Evaluation External Evaluation Assignment /Project QuizzesClass Attendance Mid-Term Test Total.
Financial Information Management FIM: Databases Stefano Grazioli.
1 Working with MS SQL Server Beginning ASP.NET in C# and VB Chapter 12.
به نام خدا SQL QUIZ جوانمرد Website: ejavanmard.blogfa.com.
© Stefano Grazioli - Ask for permission for using/quoting: Stefano Grazioli.
Chapter 5 Building Your Product Catalog database Objectives Create Database. Create Table. Connect to Database. Use ASP Script to add new products. Use.
CS320 Web and Internet Programming SQL and MySQL Chengyu Sun California State University, Los Angeles.
1 Section 1 - Introduction to SQL u SQL is an abbreviation for Structured Query Language. u It is generally pronounced “Sequel” u SQL is a unified language.
 MySQL is a database system used on the web  MySQL is a database system that runs on a server  MySQL is ideal for both small and large applications.
CS242 SQL. What is SQL? SQL:  stands for Structured Query Language  allows you to access a database  is an ANSI standard computer language  can execute.
Databases Stefano Grazioli.
ASP.NET Programming with C# and SQL Server First Edition
Accessing the Database Server: ODBC, OLE DB, and ADO
Web Systems & Technologies
CS320 Web and Internet Programming SQL and MySQL
Session 4 PHP & MySQL.
Using SQL Server through Command Prompt
Database Management  .
Database Basics An Overview.
PHP-language, database-programming
ISC440: Web Programming 2 Server-side Scripting PHP 3
Chapter 22 - SQL, MySQL, DBI and ADO
PHP and MySQL.
Structured Query Language
Java Database Connectivity
Data Management Innovations 2017 High level overview of DB
Database Applications
Structured Query Language
CS3220 Web and Internet Programming SQL and MySQL
Working With Databases
Databases Continued 10/18/05.
Database Processing: David M. Kroenke’s Chapter Twelve: Part One
CS3220 Web and Internet Programming SQL and MySQL
MySQL Database System Installation Overview SQL summary
Presentation transcript:

Database Connections

Databases The simplest databases can be as simple as MS Access or MS Excel Use them for small sites Large sites may require large industrial-strength databases. ORACLE is the 2nd largest software company in the world – all based on Databases

Database Terms: TABLE A database consists of many TABLES. A table is analogous to a spreadsheet. For an e-commerce Web site database this may consist of tables such as CUSTOMERS, PRODUCTS, ORDERS, etc.

Database Terms: Record A record is a “row” of data. It all pertains to the same entity. EXAMPLE: A customer’s name and address.

Database Terms: Field A field is a “column” of data. EXAMPLE: FirstName

Database Terms: Primary Key The PRIMARY KEY is the column in the database that is unique for each and every row. Even something as basic and individual as an SSN may not be a good unique identifier. What if someone changes it to protect their identity, or the number is recycled, or they are not US citizens or residents.

Databases Web Databases – CSC 122 Teaches more about Databases

Making Database Queries SQL Making Database Queries

SQL “S-Q-L”, or “Sequel” is the most common language to access databases. It comes in many dialects, but the most basic operations require only simple SQL statements. You program the SQL queries into your scripts.

SQL Example 1 - Inserting INSERT INTO Customers (FirstName, LastName) VALUES (“Fred”, “Jones”)

SQL Example 2 -- Updating UPDATE Customers SET FirstName = “Freddy” WHERE CustID = 7

SQL Example -- Selecting SELECT FirstName, LastName FROM Customers WHERE LastName = Jones Use this statement to create a RECORDSET A RECORDSET is a subset of the database that has been copied onto the server for immediate use.

Recordset Even if the record included more than just the first name and last name, the recordset only has those columns. Freddy Jones Suzie Jones Marky Mark Jones Joanie Jones

SQL SELECT When choosing a recordset * A wildcard FROM From what table? WHERE Conditions UPDATE To update an existing record INSERT To add a record INTO Into what table VALUES What values SET SET Rank = “Sergeant”

SQL Operators SQL Operators are conventional. Here are some: = > < <> <= >=

Open Database Connectivity ODBC

How do we get data from a database to a web page? 5 layers 1 Scripts – ASP, PHP 4 Driver Layer 5 Database

5 layers 5 layers 1 Scripts – ASP, PHP 2 ADO (Active Data Objects Layer) 3 OLE DB Layer 4 Driver Layer 5 Database

Important to remember ODBC is our connection Open Data Base Connectivity Establish Database connections through the ODBC Control Panel Applet