All Powder Board and Ski SQL Server 2000 Workbook Chapter 1 Jerry Post Copyright © 2003.
-
Upload
silas-parrish -
Category
Documents
-
view
212 -
download
0
Transcript of 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
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
Boots and Bindings
Boot-Binding CompatibilityManuf. Mfg. ID Board/Ski Binding/Style Color Price Cost
Size QOH34
35
36
…
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
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
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:
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
Feasibility
Assumptions
Annual discount rate 0.03
Project life/years 5
Costs Present Value Subtotal
One-time
DBMS Software
Hardware
Development
Data entry
Training
Feasibility-2Ongoing
Personnel
Upgrades/annual
Supplies
Support
Maintenance
Benefits
Cost Savings
Better inventory control
Fewer clerks
Strategic
Increased sales
Other?
Net Present Value
DBMS Update
Microsoft Academic Alliance http://www.msdnaa.net
Microsoft Developers Nework http://msdn.microsoft.com
Microsoft SQL Server http://www.microsoft.com/sql
Enterprise Manager
Practice: Create a Table
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.
SQL Create Table
Main toolbar: Generate SQL Script, Preview
Action
ActionRight click the table name.Select Open Table/Return all rowsEnter the sample data.Close the table.
Practice: Add Data
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.
Practice Design a Simple Form
Visual Studio: Add New Item, Data Form Wizard
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.
Practice: Create a Simple Form
You have to click the Load button created by the wizard to retrieve the first row of data