Web Services Week 8 Aims: –Using web services as front ends to databases Objectives: –Review of relational databases –Connecting to and querying databases.

Slides:



Advertisements
Similar presentations
DB glossary (focus on typical SQL RDBMS, not XQuery or SPARQL)
Advertisements

Chapter 10 ADO. What is ADO? ADO is a Microsoft technology ADO stands for ActiveX Data Objects ADO is a programming interface to access data in a database.
Chapter 12: ADO.NET and ASP.NET Programming with Microsoft Visual Basic.NET, Second Edition.
CSE 190: Internet E-Commerce Lecture 10: Data Tier.
ASP.NET Database Connectivity I. 2 © UW Business School, University of Washington 2004 Outline Database Concepts SQL ASP.NET Database Connectivity.
ASP.NET Programming with C# and SQL Server First Edition Chapter 8 Manipulating SQL Server Databases with ASP.NET.
Chapter 12 Database Connectivity with ASP.NET JavaScript, Third Edition.
CSC 2720 Building Web Applications Database and SQL.
Chapter 7 Managing Data Sources. ASP.NET 2.0, Third Edition2.
DAT702.  Standard Query Language  Ability to access and manipulate databases ◦ Retrieve data ◦ Insert, delete, update records ◦ Create and set permissions.
Overview of Database Access in.Net Josh Bowen CIS 764-FS2008.
Chapter 9 SQL and RDBMS Part C. SQL Copyright 2005 Radian Publishing Co.
Introduction –All information systems create, read, update and delete data. This data is stored in files and databases. Files are collections of similar.
ASP.NET Programming with C# and SQL Server First Edition
Intro to JDBC To effectively use Java Data Base Connectivity we must understand: 1.Relational Database Management Systems (RDBMS) 2.JDBC Drivers 3.SQL.
PHP Programming with MySQL Slide 8-1 CHAPTER 8 Working with Databases and MySQL.
1 Overview of Databases. 2 Content Databases Example: Access Structure Query language (SQL)
Introduction to SQL Steve Perry
2440: 141 Web Site Administration Database Management Using SQL Professor: Enoch E. Damson.
Mark Dixon Page 1 23 – Web applications: Writing data to Databases using PhP.
Data-mining & Data As we used Excel that has capability to analyze data to find important information, the data-mining helps us to extract information.
Databases. Database A database is an organized collection of related data.
Web Server Administration Chapter 7 Installing and Testing a Programming Environment.
Lecture Set 14 B new Introduction to Databases - Database Processing: The Connected Model (Using DataReaders)
Needs for Accessing Database To make your web site more dynamic and maintainable, you can display information on your web pages that are retrieved from.
Databases and Data Access  Introduction to ADO.NET  ADO.NET objects  ADP.NET namespaces  Differences between ADO and ADO.NET.
CSC 2720 Building Web Applications Database and SQL.
CPS120: Introduction to Computer Science Lecture 19 Introduction to SQL.
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.
Relational Databases Database Driven Applications Retrieving Data Changing Data Analysing Data What is a DBMS An application that holds the data manages.
Chapter 5 Database Processing. Neil uses software to query a database, but it has about 25 standard queries that don’t give him all he needs. He imports.
Chapter 10: The Data Tier We discuss back-end data storage for Web applications, relational data, and using the MySQL database server for back-end storage.
CS 1308 Computer Literacy and the Internet
Christopher M. Pascucci.NET Programming: Databases & ADO.NET.
1 Database & DBMS The data that goes into transaction processing systems (TPS), also goes to a database to be stored and processed later by decision support.
Lecture Set 14 B new Introduction to Databases - Database Processing: The Connected Model (Using DataReaders)
SQL Basic. What is SQL? SQL (pronounced "ess-que-el") stands for Structured Query Language. SQL is used to communicate with a database.
Web Server Administration Chapter 7 Installing and Testing a Programming Environment.
What’s a database? Data stored in a structured format that lends itself to easy manipulation and recall.
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.
SQL Jan 20,2014. DBMS Stores data as records, tables etc. Accepts data and stores that data for later use Uses query languages for searching, sorting,
DB MidWare CSIS 4490 N-Tier Client/Server Dr. Hoganson Database Middleware Early client/server database systems –Two tier –Server does business logic (data.
DATABASE CONNECTIVITY TO MYSQL. Introduction =>A real life application needs to manipulate data stored in a Database. =>A database is a collection of.
Database Connectivity with ASP.NET. 2 Introduction Web pages commonly used to: –Gather information stored on a Web server database Most server-side scripting.
ADO.NET Architecture MIS3502: Application Integration and Evaluation David Schuff Adapted from material by Arnold Kurtz, David.
Instructor: Pavlos Pavlikas1 How Data is Stored Chapter 8.
Distribution of Marks For Second Semester Internal Sessional Evaluation External Evaluation Assignment /Project QuizzesClass Attendance Mid-Term Test Total.
Chapter 3: Relational Databases
Using Database: A very, very short introduction..
Introduction to Core Database Concepts Getting started with Databases and Structure Query Language (SQL)
Programming for the Web MySQL Command Line Using PHP with MySQL Dónal Mulligan BSc MA
SQL Basics Review Reviewing what we’ve learned so far…….
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.
Introduction to Database Programming with Python Gary Stewart
Chapter 12 Introducing Databases. Objectives What a database is and which databases are typically used with ASP.NET pages What SQL is, how it looks, and.
INTRODUCTION TO DATABASES (MICROSOFT ACCESS)
Accessing Databases using Ado.net
© 2016, Mike Murach & Associates, Inc.
Database Management  .
Database Basics An Overview.
Chapter 8 Working with Databases and MySQL
Lecture Set 14 B new Introduction to Databases - Database Processing: The Connected Model (Using DataReaders)
Structured Query Language
Data Management Innovations 2017 High level overview of DB
Chapter 10 ADO.
Computer Science Projects Database Theory / Prototypes
Database Management Systems
Database Connections.
Presentation transcript:

Web Services Week 8 Aims: –Using web services as front ends to databases Objectives: –Review of relational databases –Connecting to and querying databases within ASP.NET –Creating and consuming a database web service

Web Services and Databases Web service is logical and secure front end to a database Insulates application from technical issues such and database connection and executing formal queries Restricts degree access hence protecting database from clumsy or malicious applications

ADO.NET Classes for the instantiation of ActiveX Data Objects Objects provide a means to access and manipulate databases both locally and across the web. Uses the XML format for holding data, transactions across the web and storing data.

Relational Databases Database management systems –Microsoft Access, Microsoft Sequel Server, Oracle, FoxPro, MySQL Databases hold items of information and the relationships between such items Relational Databases typically consist of… –Tables of information each containing rows of data records –Each data record consisting of fields of data items –Each record has a unique primary key –Linkages between records in different tables via foreign keys

Exercise 8.1 Create a table of student records where primary key is RollNumber

Structured Query Language (SQL) Simple text based language to communicate with database management system Construct simple statements to… –Get and set items –Add or delete records –Test relationships between data.

Examples SELECT record FROM table WHERE record = value For example… SELECT Surname FROM Students WHERE FirstName='Dave‘ INSERT INTO table ( fieldname, fieldname, fieldname) values ( value, value, value) For example… INSERT INTO Students ( ‘FirstName’, ‘Surname’) values ( ‘Fred’, ‘Bloggs’) UPDATE Students SET fieldname= value WHERE fieldname= value For example… UPDATE Students SET FirstName='Fred' WHERE Surname='Barlow'

Connecting to database with Ole objects (Object Link Embedding) ‘Microsoft Jet 4.0 OLE DB Provider’ System.Data.OleDb.OleDbConnection System.Data.OleDb.OleDbCommand System.Data.OleDb.OleDbDataReader

Queries and Non Queries For select statements use.. OleDbDataReader myDataReader=myCommand.ExecuteReader(); For insert and update statements use… myCommand.ExecuteNonQuery();

Exercise 8.2 Create a web service that passes an SQL query to a database and returns a result Consume that web service from ASP.NET