all powder board and ski sql server 2000 workbook chapter 1 jerry post copyright © 2003

20
All Powder Board and Ski SQL Server 2000 Workbook Chapter 1 Jerry Post Copyright © 2003

Upload: silas-parrish

Post on 12-Jan-2016

212 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: All Powder Board and Ski SQL Server 2000 Workbook Chapter 1 Jerry Post Copyright © 2003

All Powder Board and Ski

SQL Server 2000 WorkbookChapter 1Jerry PostCopyright © 2003

Page 2: All Powder Board and Ski SQL Server 2000 Workbook Chapter 1 Jerry Post Copyright © 2003

Inventory

InventorySnowboards

Manufacturer Mfg ID Size Description Graphics List PriceQOH

FreestylePipeStandardExtreme

SkisManufacturer Mfg ID Size Description Graphics List Price

QOHSlalomCross country-skateCross country-trad.TelemarkJumpingFreestyleDownhill/race

Page 3: All Powder Board and Ski SQL Server 2000 Workbook Chapter 1 Jerry Post Copyright © 2003

Boots and Bindings

Boot-Binding CompatibilityManuf. Mfg. ID Board/Ski Binding/Style Color Price Cost

Size QOH34

35

36

Page 4: All Powder Board and Ski SQL Server 2000 Workbook Chapter 1 Jerry Post Copyright © 2003

Sales

SalesCustomer Sale DateFirst Name Last Name SalespersonPhone E-Mail DepartmentAddress Shipping AddressCity, State ZIP City, State ZIPMale/Female Ski/BoardAge/Date of Birth Style Skill LevelItem Description New/Used Size Quantity Price Subtotal

Item TotalTaxTotal DueMethod of Payment

Page 5: All Powder Board and Ski SQL Server 2000 Workbook Chapter 1 Jerry Post Copyright © 2003

Rentals

RentalsCustomer Rental DateFirst Name Last Name Expected ReturnPhone E-MailAddress Shipping AddressCity, State ZIP City, State ZIPMale/Female Ski/BoardAge/Date of Birth Style Skill LevelItem Description Size Fee Return Date Condition Charges

Item TotalTaxTotal Due Added ChargesMethod of Payment Signature

Page 6: All Powder Board and Ski SQL Server 2000 Workbook Chapter 1 Jerry Post Copyright © 2003

Project Structure

Project Title: Sales System for Boards and SkisCustomer: All Powder Board and Ski ShopPrimary Contact: KatyGoals:Project Description: Primary Forms:Primary Reports:Lead Developer:Estimated Development Time:Estimated Development Cost:Date Prepared:

Page 7: All Powder Board and Ski SQL Server 2000 Workbook Chapter 1 Jerry Post Copyright © 2003

Project Plan

Define the project and obtain approval.1. Analyze the user needs and identify all forms and reports.2. System Design

a. Determine the tables and relationships needed.b. Create the tables and load basic data.c. Create queries needed for forms and reports.d. Build forms and reports.e. Create transaction elements.f. Define security and access controls.

3. Additional Featuresa. Create data warehouse to analyze data as needed.b. Handle distributed database elements as needed.

4. System Implementationa. Convert and load data.b. Train users.c. Load testing.

5. System review

Page 8: All Powder Board and Ski SQL Server 2000 Workbook Chapter 1 Jerry Post Copyright © 2003

Feasibility

Assumptions      

Annual discount rate 0.03    

Project life/years 5    

       

Costs   Present Value Subtotal

One-time      

DBMS Software      

Hardware      

Development      

Data entry      

Training      

       

Page 9: All Powder Board and Ski SQL Server 2000 Workbook Chapter 1 Jerry Post Copyright © 2003

Feasibility-2Ongoing      

Personnel      

Upgrades/annual      

Supplies      

Support      

Maintenance      

       

Benefits      

Cost Savings      

Better inventory control      

Fewer clerks      

       

Strategic      

Increased sales      

Other?      

Net Present Value      

Page 10: All Powder Board and Ski SQL Server 2000 Workbook Chapter 1 Jerry Post Copyright © 2003

DBMS Update

Microsoft Academic Alliance http://www.msdnaa.net

Microsoft Developers Nework http://msdn.microsoft.com

Microsoft SQL Server http://www.microsoft.com/sql

Page 11: All Powder Board and Ski SQL Server 2000 Workbook Chapter 1 Jerry Post Copyright © 2003

Enterprise Manager

Page 12: All Powder Board and Ski SQL Server 2000 Workbook Chapter 1 Jerry Post Copyright © 2003

Practice: Create a Table

Page 13: All Powder Board and Ski SQL Server 2000 Workbook Chapter 1 Jerry Post Copyright © 2003

Action

ActionStart SQL Server Enterprise Manager.Open the SQL Server Group and log in.Expand the database assigned to you, or create it if necessary.Right click on Tables, select New Table.Enter column names and data types.Click the CustomerID row.Set the Identity value to YesClick the key icon in the main toolbar.Close the form and name the table Customer.

Page 14: All Powder Board and Ski SQL Server 2000 Workbook Chapter 1 Jerry Post Copyright © 2003

SQL Create Table

Main toolbar: Generate SQL Script, Preview

Page 15: All Powder Board and Ski SQL Server 2000 Workbook Chapter 1 Jerry Post Copyright © 2003

Action

ActionRight click the table name.Select Open Table/Return all rowsEnter the sample data.Close the table.

Page 16: All Powder Board and Ski SQL Server 2000 Workbook Chapter 1 Jerry Post Copyright © 2003

Practice: Add Data

Page 17: All Powder Board and Ski SQL Server 2000 Workbook Chapter 1 Jerry Post Copyright © 2003

Action

ActionStart the Visual Studio with a New Project, Windows Application in VB or C#..Right-click the solution name, Add, Add New ItemSelect Data Form Wizard, Customer.vb.New Dataset: dsCustomer.New Connection: Server name, user name, passwordClick the box to Allow saving password.Add the Customer table.Display data: Single record in individual controls.Click the button to Include password.

Page 18: All Powder Board and Ski SQL Server 2000 Workbook Chapter 1 Jerry Post Copyright © 2003

Practice Design a Simple Form

Visual Studio: Add New Item, Data Form Wizard

Page 19: All Powder Board and Ski SQL Server 2000 Workbook Chapter 1 Jerry Post Copyright © 2003

Action

ActionSwitch to Form1.Add a button and set the text and name to Customer.Double-click the button to switch to the code.Add two lines:

Dim frmCustomer As Customer = New CustomerfrmCustomer.Show()

Save everything.Build/RebuildRun the project and click the button.

Page 20: All Powder Board and Ski SQL Server 2000 Workbook Chapter 1 Jerry Post Copyright © 2003

Practice: Create a Simple Form

You have to click the Load button created by the wizard to retrieve the first row of data