Vous êtes sur la page 1sur 11

Information in this document is subject to change without notice.

The names of companies, products, people, characters, and/or data mentioned herein are fictitious and are in no way intended to represent any real individual, company, product, or event, unless otherwise noted. Complying with all applicable copyright laws is the responsibility of the user. No part of this document may be reproduced or transmitted in any form or by any means, electronic or mechanical, for any purpose, without the express written permission of Microsoft Corporation. If, however, your only means of access is electronic, permission to print one copy is hereby granted.

Introduction
Microsoft may have patents, patent applications, trademarks, copyrights, or other intellectual property rights covering subject matter in this document. Except as expressly provided in any written license agreement from Microsoft, the furnishing of this document does not give you any license to these patents, trademarks, copyrights, or other intellectual property. 2000 Microsoft Corporation. All rights reserved. Microsoft, ActiveX, BackOffice, MS-DOS, PowerPoint, Visual Basic, Visual C++, Visual Studio, Windows, and Windows NT are either registered trademarks or trademarks of Microsoft Corporation in the U.S.A. and/or other countries.

Contents Introduction Course Materials Prerequisites

1 2 3

Other product and company names mentioned herein may be the trademarks of their respective owners.

Project Lead: Rich Rose Instructional Designers: Rich Rose, Cheryl Hoople, Marilyn McGill Course Outline 5 Instructional Software Design Engineers: Karl Dehmer, Carl Raebler, Setup 9 Rick Byham Microsoft Official Curriculum 12 Technical Lead: Karl Dehmer Subject Matter Experts: Karl Dehmer, Carl Raebler, Rick Byham Microsoft Certified Professional Program 13 Graphic Artist: Kirsten Larson (Independent Contractor) Facilities 15 Editing Manager: Lynette Skinner Editor: Wendy Cleary Copy Editor: Edward McKillop (S&T Consulting) Production Manager: Miracle Davis Production Coordinator: Jenny Boe Production Support: Lori Walker (S&T Consulting) Test Manager: Sid Benavente Courseware Testing: TestingTesting123 Classroom Automation: Lorrin Smith-Bates Creative Director, Media/Sim Services: David Mahlmann Web Development Lead: Lisa Pease CD Build Specialist: Julie Challenger Online Support: David Myka (S&T Consulting) Localization Manager: Rick Terek Operations Coordinator: John Williams Manufacturing Support: Laura King; Kathy Hershey Lead Product Manager, Release Management: Bo Galford Lead Product Manager, Data Base: Margo Crandall Group Manager, Courseware Infrastructure: David Bramble Group Product Manager, Content Development: Dean Murray General Manager: Robert Stewart

Instructor Notes
Presentation: 30 Minutes The Introduction module provides students with an overview of the course content, materials, and logistics for course 2073A, Programming a Microsoft SQL Server 2000 Database.

Course Materials and Preparation


Required Materials
To teach this course, you need the following materials: Delivery Guide Trainer Materials compact disc

Preparation Tasks
To prepare for this course, you must: Complete the Course Preparation Checklist that is included with the trainer course materials.

Module Strategy
Use the following strategy to present this module: Course 2073A: Programming a Microsoft SQL Server 2000 Database. Show the slide that displays the course number and course title. Introduction Welcome students to the course and introduce yourself. Provide a brief overview of your background to establish credibility. Have students introduce themselves and provide their background, product experience, and expectations of the course. Record student expectations on a white board or flip chart that you can reference later in class. Course Materials Explain the purpose of all materials used in this course. Tell students that they will have an opportunity at the end of class to provide feedback on the course and facilities by using the Microsoft Online Evaluation System. Prerequisites Provide the students with the list of prerequisites that they should have met before taking this course. This is an opportunity for you to identify students who may not have the appropriate background or experience to attend this course. Course Outline Provide an overview of each module and what students will learn. Explain how this course will meet students expectations by relating the information covered in individual modules to their expectations.

Introduction

iii

Setup Provide the students with any necessary setup information for the course. Microsoft Official Curriculum (MOC) Present an overview of the Microsoft Official Curriculum program and refer students to the Microsoft Official Curriculum Web page at http://www.microsoft.com/trainingandservices/ Microsoft Certified Professional Program Inform students about the Microsoft Certified Professional (MCP) program and the various certification options. Facilities Explain the facility information for the training site.

Introduction

Introduction
Topic Objective

Course Materials
The following materials are included with your kit: Name card. Write your name on both sides of the name card. Student workbook. The student workbook contains the material covered in class, in addition to the hands-on lab exercises. Student Materials compact disc. The Student Materials compact disc contains the Web page that provides you with links to resources pertaining to this course, including additional readings, review and lab answers, lab files, multimedia presentations, and course-related Web sites. Note To open the Web page, insert the Student Materials compact disc into the CD-ROM drive, and then in the root directory of the compact disc, double-click Default.htm. Course evaluation. At the conclusion of this course, please complete the course evaluation to provide feedback on the instructor, course, and software product. Your comments will help us improve future courses. To provide additional comments on course materials, send e-mail to mstrain@microsoft.com. Be sure to type Course 2073A in the subject line. To provide additional comments or inquire about the Microsoft Certified Professional program, send e-mail to mcp@msprograms.com.

To introduce yourself, establish Introduce yourself. credibility, meet students, and set Provide a brief student overview of your the expectations for Topic Objective background to course. To identify and establish credibility describe Lead-inthe course as a SQL Server Describe the materials. Good morning. instructor. contents to Welcome of the Lead-in student workbook Programmingto a Ask have provided We students and the Student Microsoft introduce you need everything Materials compact SQL Server themselves,2000 for this course. You disc. Database. the addressing will find the bulleted items on following materials Have students write My slide. the name is... at your desk... both their names on sides of the name Delivery Tip card. As students introduce Tell students that themselves, use aa course evaluation white board or flip must to completed chart be record their at the end of of the expectations the course. Tell students where they can send comments.

Delivery Tip

Prerequisites
This course requires that you meet the following prerequisites: Experience using the Microsoft Windows 2000 operating system to: Connect clients running Windows 2000 to networks and the Internet. Configure the Windows 2000 environment. Create and manage user accounts. Manage access to resources by using groups. Configure and manage disks and partitions, including disk striping and mirroring. Manage data by using NTFS. Implement Windows 2000 security.

Demonstrate how to open the Web page provided on the Student Materials compact disc. On the Trainer Materials compact disc, double-click Topic Objective To present and Default.htm in the describe the StudentCD folder. prerequisites for this course.

Lead-in

The following prerequisite knowledge is needed for this course.

Optimize performance in Windows 2000. For students who do not meet these prerequisites, the following courses provide students with the necessary knowledge and skills: Course 2051, Microsoft Windows 2000 Network and Operating System Essentials Course 2052, Supporting Microsoft Windows 2000 Professional and Server An understanding of basic relational database concepts, including: Logical and physical database design. Data integrity concepts. Relationships between tables and columns (primary key and foreign key, one-to-one, one-to-many, many-to-many). How data is stored in tables (rows and columns). For students who do not meet these prerequisites, the following course provides students with the necessary knowledge and skills: Course 1609, Designing Data Services and Data Models Knowledge of basic Transact-SQL syntax (SELECT, UPDATE, and INSERT statements). For students who do not meet these prerequisites, the following course provides students with the necessary knowledge and skills: Course 2071A, Querying Microsoft SQL Server 2000 with Transact-SQL Familiarity with the role of the database administrator.

Course Outline
Topic Objective
To provide an overview of each Briefly describe module and what each module.learn. students will

Lead-in As you describe In this course, we each module, will cover... any acknowledge information that will meet the student expectations that you recorded earlier.

Module 1, SQL Server Overview, provides a high-level overview of Microsoft SQL Server 2000 platforms, architecture, components, and security. It also identifies and defines key SQL Server terminology and concepts. This module discusses how well SQL Server integrates with Windows 2000 and other Microsoft server applications. It concludes with an overview of SQL Server administration and SQL Server database implementation, as well as application design options. Module 2, Overview of Programming SQL Server, provides students with an overview of enterprise-level application architecture and Transact-SQL as a programming language. Transact-SQL is a data definition, manipulation, and control language. Students are assumed to be familiar with ANSI-SQL and basic programming concepts, such as functions, operators, variables, and control-of-flow statements. Students will also learn the different ways to execute Transact-SQL. Module 3, Creating and Managing Databases, describes how to create a database, set database options, create filegroups, and manage a database and the transaction log. It reviews disk space allocation and how the transaction log records data modifications.

Introduction

Module 4, Creating Data Types and Tables, describes how to create data types and tables and generate Transact-SQL scripts containing statements that create a database and its objects. Module 5, Implementing Data Integrity, shows how centrally managed data integrity is a benefit of relational databases. This module begins with an introduction to data integrity concepts, including the methods available for enforcing data integrity. The module then introduces a section on constraints. Constraints are the key method for ensuring data integrity. The creation, implementation, and disabling of constraints are discussed. This module also discusses how defaults and rules are an alternate way to enforce data integrity. The module concludes with a comparison of the different data integrity methods. Module 6, Planning Indexes, provides students with an overview of planning indexes. It explains how database performance can be improved with indexes. It discusses how clustered and nonclustered indexes are stored in SQL Server and how SQL Server retrieves rows by using indexes. It also explores how SQL Server maintains indexes. The module concludes with guidelines for deciding which columns to index. Module 7, Creating and Maintaining Indexes, provides students with an overview of creating and maintaining indexes by using the CREATE INDEX options. It describes how maintenance procedures physically change the indexes. The module discusses maintenance tools and describes the use of statistics in SQL Server. It also describes ways to verify that indexes are used and explains how to tell whether they perform optimally. The module concludes with a discussion of when to use the Index Tuning Wizard.

Course Outline (continued)


Module 8, Implementing Views, shows how views provide the ability to store a predefined query as an object in the database for later use. They offer a convenient way to hide sensitive data or the complexities of a database design and to provide a set of information without requiring the user to write or execute Transact-SQL statements. The module also defines views and their advantages. The module then describes creating views and provides examples of projections and joins. These examples illustrate how to include computed columns and built-in functions in the view definitions. The module then covers restrictions on modifying data through views. The last section discusses how views can improve performance. Module 9, Implementing Stored Procedures, describes how to use stored procedures to improve application design and performance by encapsulating business rules. It discusses ways to process common queries and data modifications. The module provides numerous examples and demonstrations of stored procedures. Module 10, Implementing User-defined Functions, discusses the implementation of user-defined functions. It explains the three types of userdefined functions and the general syntax for creating and altering them, and provides an example of each type.

Module 11, Implementing Triggers, shows that triggers are useful tools for database implementers who want to have certain actions performed whenever data is inserted, updated, or deleted from a specific table. They are especially useful tools to cascade changes throughout other tables in the database, while preserving complex referential integrity. Module 12, Programming Across Multiple Servers, provides students with information on how to design security for a multi-server environment. It also explains the construction of distributed queries, distributed transactions, and partitioned views. Module 13, Optimizing Query Performance, provides students with an indepth look at how the query optimizer works, how to obtain query plan information, and how to implement indexing strategies. Module 14, Analyzing Queries, describes how the query optimizer evaluates and processes queries that contain the AND operator, the OR operator, and join operations. Module 15, Managing Transactions and Locks, introduces how transactions and locks ensure transaction integrity while allowing for concurrent use. The module continues with a discussion of how transactions are executed and rolled back. A short animation helps to convey how transaction processing works. The module next describes how SQL Server locks maintain data consistency and concurrency. The module then introduces resources that can be locked, the different types of locks, and lock compatibility. A discussion follows on SQL Server dynamic locking based on schema and query. The final section describes some locking options, discusses deadlocks, and explains how to display information on active locks.

Setup
Topic Objective
To provide any necessary information about the classroom environment.

The classroom environment is set up with software and a path to course files that you will use in class. You should also take note of the classroom configuration in which you will be performing the lab exercises.

Lead-in

The classroom environment is setup with software and a path to course files that you will use in class. You should also take note of the classroom configuration in which you will be performing the lab exercises.

Software
The following software will be used in the classroom: Microsoft Windows 2000 Advanced Server Microsoft SQL Server 2000, Enterprise Edition

Course Files
There are files associated with the labs in this course. The lab files are located in the C:\Moc\2073A\Labfiles on the student computers.

Classroom Setup
The classroom is configured in the single domain/workgroup model, as shown in the following graphic.

Introduction

Each student computer in the classroom has Windows 2000 Advanced Server installed as a stand-alone server in a workgroup. The organization of the classroom is meant to simulate that of a worldwide trading firm named Northwind Traders. Its fictitious domain name is nwtraders.msft. The primary DNS server for nwtraders.msft is the instructor computer, which has an Internet Protocol (IP) address of 192.168.x.200 (where x is the assigned classroom number). The name of the instructor computer is London. The following table provides the user name, computer name, and IP address for each student computer in the fictitious nwtraders.msft domain. Find the user name for your computer, and make a note of it.
User name SQLAdmin1 SQLAdmin2 SQLAdmin3 SQLAdmin4 SQLAdmin5 SQLAdmin6 SQLAdmin7 SQLAdmin8 SQLAdmin9 SQLAdmin10 SQLAdmin11 SQLAdmin12 SQLAdmin13 SQLAdmin14 SQLAdmin15 SQLAdmin16 SQLAdmin17 SQLAdmin18 Computer name Vancouver Denver Perth Brisbane Lisbon Bonn Lima Santiago Bangalore Singapore Casablanca Tunis Acapulco Miami Auckland Suva Stockholm Moscow IP address 192.168.x.1 192.168.x.2 192.168.x.3 192.168.x.4 192.168.x.5 192.168.x.6 192.168.x.7 192.168.x.8 192.168.x.9 192.168.x.10 192.168.x.11 192.168.x.12 192.168.x.13 192.168.x.14 192.168.x.15 192.168.x.16 192.168.x.17 192.168.x.18

SQLAdmin19 SQLAdmin20 SQLAdmin21 SQLAdmin22 SQLAdmin23 SQLAdmin24

Caracas Montevideo Manila Tokyo Khartoum Nairobi

192.168.x.19 192.168.x.20 192.168.x.21 192.168.x.22 192.168.x.23 192.168.x.24

Microsoft Official Curriculum


Topic Objective
To explain the MOC program and provide information about curriculum paths.

Lead-in

Lets briefly talk about the Microsoft Official Curriculum program.

MOC is hands-on, facilitated classroom and Web-based training. Microsoft develops skills-based training courses to educate computer professionals who develop, support, and implement solutions by using Microsoft products, solutions, and technologies. MOC courses are available for the following products and solutions: Windows operating systems Microsoft Office Microsoft BackOffice Small Business Server SQL Server Microsoft Exchange Microsoft BackOffice Server Infrastructure and Solutions Microsoft FrontPage Microsoft Systems Management Server Knowledge Management Solutions MOC has a curriculum path for each product and solution. For more information on the curriculum paths, see the Microsoft Official Curriculum Web page at http://www.microsoft.com/trainingandservices/ The Microsoft Official Curriculum Web page provides information about MOC courses. In addition, you can find recommended curriculum paths for individuals who are entering the Information Technology (IT) industry, who are continuing training on Microsoft products and solutions, or who currently support non-Microsoft products.

Microsoft Certified Professional Program


To provide students with information about the Microsoft Certified Professional Program. Certification

Topic Objective

The Microsoft Certified Professional program provides the best method to prove your command of current Microsoft products and technologies. The following table describes each certification in more detail.
Description

Lead-in

The Microsoft Certified Professional Program includes these certifications.

Introduction Microsoft Certified Systems Engineer (MCSE) Microsoft Certified Database Administrator (MCDBA) Microsoft Certified Solution Developer (MCSD) Microsoft Certified Professional + Site Building (MCP + Site Building) Microsoft Certified Professional (MCP) Microsoft Certified Trainer (MCT) MCSEs are qualified to effectively plan, implement, maintain, and support information systems in a wide range of computing environments with Windows 2000 and BackOffice.

MCDBAs are qualified to derive physical database designs, develop logical data models, create physical databases, create data services by using Transact-SQL, manage and maintain databases, configure and manage security, monitor and optimize databases and install and configure SQL Server. MCSDs are qualified to build Web-based, distributed, and commerce applications by using Microsoft products, such as SQL Server, Microsoft Visual Studio, and Component Services.
MCPs with a specialty in site building are qualified to plan, build, maintain, and manage Web sites by using Microsoft technologies and products.

MCPs demonstrate in-depth knowledge of at least one product by passing any one exam (except Networking Essentials). MCTs demonstrate the instructional and technical skills that qualify them to deliver Microsoft Official Curriculum through Microsoft Certified Technical Education Centers (Microsoft CTEC).

Certification Requirements
The certification requirements differ for each certification category and are specific to the products and job functions addressed by the certification. To become a Microsoft Certified Professional, you must pass rigorous certification exams that provide a valid and reliable measure of technical proficiency and expertise. For More Information See the Certification section of the Web page provided on the compact disc or the Microsoft Training and Certification Web site at http://www.microsoft.com/trainingandservices/ You can also send e-mail to mcp@msprograms.com if you have specific certification questions.

Preparing for an MCP Exam


MOC helps you prepare for MCP exams. However, no one-to-one correlation exists between MOC courses and MCP exams. Microsoft does not expect or intend for MOC to be the sole preparation tool for passing an MCP exam. Practical product knowledge and experience is also necessary to pass an MCP exam. To help prepare for the MCP exams, you can use the preparation guides that are available for each exam. Each Exam Preparation Guide contains exam-specific information, such as a list of the topics on which you will be tested. These guides are available on the Microsoft Certified Professional Web site at http://www.microsoft.com/trainingandservices/

Facilities Topic Objective


Lead-in

To inform students of class logistics and rules for the training site. Before we start, lets go over the class logistics.

Introduction Explain the class hours, extended building hours for labs, parking, rest room location, meals, phones, message posting, and where smoking is or isnt allowed. Also make sure that the students are aware of the recycling program if one is available.

THIS PAGE INTENTIONALLY LEFT BLANK

Vous aimerez peut-être aussi