Creating Web Databases' - PowerPoint PPT Presentation

1 / 16
About This Presentation
Title:

Creating Web Databases'

Description:

A site such as Amazon has a central data store and users may browse the content ... For a commercial web site the following are examples of suitable Database ... – PowerPoint PPT presentation

Number of Views:23
Avg rating:3.0/5.0
Slides: 17
Provided by: matt131
Category:
Tags: ado | creating | databases | web

less

Transcript and Presenter's Notes

Title: Creating Web Databases'


1
Creating Web Databases.
  • Part 1.

2
Persistent Data.
  • Web applications remember your setting by means
    of a database linked to the site.

3
Central Sales Database.
  • A site such as Amazon has a central data store
    and users may browse the content from different
    locations.

4
To set this up we need two things
  • A Database Management System.
  • Some sort of data aware objects.

5
Database Management Systems.
  • For a commercial web site the following are
    examples of suitable Database Management Systems
    (DBMS).
  • MySQL
  • An open source (i.e. free) DBMS that runs on
    Windows, MAC and UNIX platforms.
  • Oracle
  • A company that makes powerful DBMS.
  • SQL Server.
  • Microsofts DBMS, a version of this comes free
    with Visual Studio.

6
Microsoft Access.
  • Only ten users may access the database at a given
    time
  • not good for building your multimillion pound
    online store
  • However
  • Most students are familiar with the application.
  • It is part of the Microsoft Office
  • It is easy to set up and use

7
Data Aware Objects.
  • Objects are used allow our programs to control
    computer technology.
  • The email object
  • allows us to create emails
  • The SMTP client object
  • allows us to control an SMTP server, i.e. send
    emails.
  • The variable (object)
  • allows us to store data in the RAM.
  • Control objects
  • allow us to set up regions of the screen so the
    screen so the user may interact with it.

8
ADO.NET (Active Data Objects).
  • Used to control databases.
  • Problem!
  • It is huge and complex and would need a year long
    course just to get to grips with it.

9
The DatabaseTable Object.
  • A custom object written for this module.
  • Allows simple control of a database.
  • Hides ADO.NET so you can get on with the task at
    hand.
  • DatabaseTable acts as a kind of secretary. You
    send it a simple command and then it uses ADO.NET
    on your behalf to interact with the database.

10
Four Things we want to do.
  • Produce a list of records for searching or so
    that the user may see them all at once.
  • Add a new record to the database.
  • Edit an existing record in the database.
  • Delete a record.

11
Producing a List of Records.
  • E.g. Hotmail

12
Assuming we have the following data
13
(No Transcript)
14
Giving us
15
Tutorial Questions.
  • Q1. What do the letters DBMS stand for?
  • Q2. Declare a DatabaseTable object that connects
    to a database called email.mdb and a table
    called outbox.
  • Q3. Given the following table
  • Write a line of code that assigns the subject
    line of message four to a variable called Subject.

16
Tutorial Questions.
  • Q4. Write a line of code that assigns the count
    of records to a variable called RecordCount.
  • Q5. Write a loop that adds the subject lines of
    each record to a list box called lstMessages.
Write a Comment
User Comments (0)
About PowerShow.com