Cover image for MCSE training kit : Microsoft SQL Server 2000 database design and implementation
Title:
MCSE training kit : Microsoft SQL Server 2000 database design and implementation
Publication Information:
Redmond, Wash. : Microsoft Press, 2001
Physical Description:
1v + CD-ROM
ISBN:
9780735612488
General Note:
Also available in compact disc version : CP 7176
Added Corporate Author:

Available:*

Library
Item Barcode
Call Number
Material Type
Item Category 1
Status
Searching...
30000010081097 QA76.9 .C55 M48 2001 Open Access Book Book
Searching...

On Order

Summary

Summary

This official "MCSE Training Kit" teaches how to design and implement database solutions using Microsoft SQL Server 2000 Enterprise Edition, as well as providing in-depth preparation for MCP Exam 70-229 -- a core exam for MCDBA certification and an elective on the Microsoft Windows "RM" 2000 MCSE track. Topics map directly to the objectives measured by the MCP exam, including developing a logical data model, implementing the physical database, retrieving and modifying data, programming business logic, tuning and optimizing data access, and designing a database security plan. Students learn through an integrated system of skill-building tutorials, case study examples, and self-assessment exercises. An economical alternative to classroom instruction, this kit enables students to set their own pace and learn by doing!


Table of Contents

About This Bookp. xiii
Intended Audiencep. xiii
Prerequisitesp. xiv
Reference Materialsp. xiv
About the CD-ROMp. xiv
Features of this Bookp. xv
The Microsoft Certified Professional Programp. xxii
Technical Supportp. xxvii
Chapter 1 Introduction to Microsoft SQL Server 2000p. 1
About This Chapterp. 1
Before You Beginp. 1
Lesson 1 Overview of SQL Server 2000p. 2
What Is SQL Server 2000?p. 2
SQL Server 2000 Featuresp. 4
Editions of SQL Server 2000p. 7
Lesson Summaryp. 8
Lesson 2 Components of SQL Server 2000p. 9
Overview of the SQL Server 2000 Componentsp. 9
SQL Server 2000 Relational Database Enginep. 9
SQL Server 2000 Replicationp. 10
SQL Server 2000 DTSp. 11
SQL Server 2000 Analysis Servicesp. 12
SQL Server 2000 English Queryp. 12
SQL Server Meta Data Servicesp. 13
SQL Server Books Onlinep. 14
SQL Server 2000 Toolsp. 14
Lesson Summaryp. 19
Lesson 3 Overview of SQL Server 2000 Architecturep. 20
Database Architecturep. 20
Relational Database Engine Architecturep. 28
Administration Architecturep. 33
Data Warehousing and Online Analytical Processing (OLAP)p. 38
Application Development Architecturep. 39
Lesson Summaryp. 41
Reviewp. 42
Chapter 2 Using Transact-SQL on a SQL Server Databasep. 45
About This Chapterp. 45
Before You Beginp. 45
Lesson 1 SQL Server Programming Toolsp. 46
SQL Query Analyzerp. 46
isqlw Command-Prompt Utilityp. 59
isql Command Prompt Utilityp. 60
osql Command-Prompt Utilityp. 60
Lesson Summaryp. 65
Lesson 2 Introduction to Transact-SQLp. 66
Overview of Transact-SQLp. 66
Transact-SQL Statementsp. 66
Lesson Summaryp. 75
Lesson 3 Transact-SQL Syntax Elementsp. 77
Identifiersp. 77
Variablesp. 78
Functionsp. 79
Data Typesp. 82
Expressionsp. 82
Control-of-Flow Language Elementsp. 83
Commentsp. 84
Lesson Summaryp. 88
Lesson 4 Executing Transact-SQL Statementsp. 89
Single Transact-SQL Statementsp. 89
Batchesp. 91
Stored Procedures and Triggersp. 93
Transact-SQL Scriptsp. 94
Lesson Summaryp. 95
Reviewp. 96
Chapter 3 Designing a SQL Server Databasep. 99
About This Chapterp. 99
Before You Beginp. 99
Lesson 1 Introduction to Database Designp. 100
Components of a SQL Server Databasep. 100
Normalizing a Database Designp. 101
Entity Relationshipsp. 105
Lesson Summaryp. 111
Lesson 2 Planning a SQL Server Databasep. 112
Files and Filegroupsp. 112
Transaction Logsp. 114
Environmentp. 115
SQL Server Installationp. 116
Securityp. 117
Lesson Summaryp. 118
Lesson 3 Identifying System Requirementsp. 119
The Process of Identifying System Requirementsp. 119
Identifying System Goalsp. 120
Identifying the Amount and Types of Datap. 122
Identifying How the Data Will Be Usedp. 123
Identifying Business Rules of the Systemp. 123
Lesson Summaryp. 127
Lesson 4 Developing a Logical Data Modelp. 129
Identifying Entities and Their Attributesp. 129
Identifying Relationships Between Entitiesp. 131
Identifying Constraints on Datap. 132
Lesson Summaryp. 139
Reviewp. 141
Chapter 4 Implementing SQL Server Databases and Tablesp. 143
About This Chapterp. 143
Before You Beginp. 143
Lesson 1 Creating and Managing a SQL Server Databasep. 144
Creating a SQL Server Databasep. 144
Managing a SQL Server Databasep. 146
Exercise 1 Creating and Managing a Databasep. 150
Lesson Summaryp. 154
Lesson 2 Identifying Data Typesp. 155
System-Supplied Data Typesp. 155
User-Defined Data Typesp. 160
Exercise 2 Identifying Column Data Typesp. 160
Lesson Summaryp. 162
Lesson 3 Creating and Managing Tablesp. 163
Creating Tables in a SQL Server Databasep. 163
Managing Tables in a SQL Server Databasep. 170
Exercise 3 Creating and Managing Tables in a SQL Server Databasep. 172
Lesson Summaryp. 175
Reviewp. 176
Chapter 5 Implementing Data Integrityp. 179
About This Chapterp. 179
Before You Beginp. 179
Lesson 1 Introduction to Data Integrityp. 180
Enforcing Data Integrityp. 180
Types of Data Integrityp. 182
Exercise 1 Identifying the Properties Used to Ensure Data Integrityp. 184
Lesson Summaryp. 185
Lesson 2 Implementing Integrity Constraintsp. 187
Introduction to Integrity Constraintsp. 187
Primary Key Constraintsp. 188
Unique Constraintsp. 190
Foreign Key Constraintsp. 191
Check Constraintsp. 194
Exercise 2 Adding Constraints to Existing Tablesp. 196
Lesson Summaryp. 201
Reviewp. 202
Chapter 6 Accessing and Modifying Datap. 205
About This Chapterp. 205
Before You Beginp. 205
Lesson 1 Accessing Data in a SQL Server Databasep. 206
The Fundamentals of a Select Statementp. 206
The Select Clausep. 207
The Into Clausep. 209
The From Clausep. 209
The Where, Group By, and Having Clausesp. 209
The Order By Clausep. 211
Exercise 1 Using Select Statements to Access Datap. 211
Lesson Summaryp. 214
Lesson 2 Using Advanced Query Techniques to Access Datap. 215
Using Joins to Retrieve Datap. 215
Defining Subqueries inside Select Statementsp. 218
Summarizing Datap. 221
Exercise 2 Using Advanced Query Techniques to Retrieve Datap. 223
Lesson Summaryp. 228
Lesson 3 Modifying Data in a SQL Server Databasep. 229
Inserting Data into a SQL Server Databasep. 229
Modifying Data in a SQL Server Databasep. 232
Deleting Data from a SQL Server Databasep. 235
Exercise 3 Modifying Data in a SQL Server Databasep. 236
Lesson Summaryp. 239
Reviewp. 240
Chapter 7 Managing and Manipulating Datap. 243
About This Chapterp. 243
Before You Beginp. 243
Lesson 1 Importing and Exporting Datap. 244
Using the bcp Utility and the BULK INSERT Statementp. 244
Using DTSp. 248
Exercise 1 Importing and Exporting Datap. 251
Lesson Summaryp. 254
Lesson 2 Using Distributed Queries to Access External Datap. 256
Introduction to Distributed Queriesp. 256
Using Linked Server Names in Distributed Queriesp. 257
Using Ad Hoc Computer Names in Distributed Queriesp. 259
Exercise 2 Using Distributed Queries to Access External Datap. 260
Lesson Summaryp. 262
Lesson 3 Using Cursors to Retrieve Datap. 263
Introduction to Cursorsp. 263
Fetching and Scrollingp. 268
Controlling Cursor Behaviorp. 268
Cursor Lockingp. 269
Exercise 3 Creating a Cursor to Retrieve Datap. 269
Lesson Summaryp. 271
Lesson 4 Retrieving XML Datap. 272
Introduction to XMLp. 272
Using the For XML Clause to Retrieve Datap. 273
Using the OPENXML Function to Access XML Datap. 275
Exercise 4 Retrieving XML Datap. 279
Lesson Summaryp. 280
Reviewp. 281
Chapter 8 Implementing Stored Proceduresp. 283
About This Chapterp. 283
Before You Beginp. 283
Lesson 1 Introduction to Stored Proceduresp. 284
Purpose and Advantages of Stored Proceduresp. 284
Categories of Stored Proceduresp. 286
Lesson Summaryp. 291
Lesson 2 Creating, Executing, Modifying, and Deleting Stored Proceduresp. 292
How a Procedure Is Storedp. 292
Methods for Creating Stored Proceduresp. 293
Executing a Stored Procedurep. 299
Modifying Stored Proceduresp. 302
Deleting Stored Proceduresp. 303
Lesson Summaryp. 309
Lesson 3 Programming Stored Proceduresp. 310
Parameters and Variablesp. 310
The Return Statement and Error Handlingp. 312
Nesting Proceduresp. 318
Cursorsp. 318
Lesson Summaryp. 326
Reviewp. 327
Chapter 9 Implementing Triggersp. 329
About This Chapterp. 329
Before You Beginp. 330
Lesson 1 Introduction to Triggersp. 331
Extending Data Integrity with Triggersp. 331
Trigger Eventsp. 333
Lesson Summaryp. 337
Lesson 2 Creating and Managing Triggersp. 339
Creating Triggers Using Transact-SQLp. 339
Creating a Trigger Using Enterprise Managerp. 342
Trigger Managementp. 342
Viewing, Dropping, and Disabling Triggersp. 344
Lesson Summaryp. 349
Lesson 3 Programming Triggersp. 350
The Inserted and Deleted Pseudo Tablesp. 350
Trigger Syntax, System Commands, and Functionsp. 351
Common Trigger Programming Tasksp. 353
Lesson Summaryp. 359
Reviewp. 361
Chapter 10 Implementing Viewsp. 363
About This Chapterp. 363
Before You Beginp. 363
Lesson 1 Introduction to Viewsp. 364
Overview of Viewsp. 364
Scenarios for Using Viewsp. 365
Lesson Summaryp. 367
Lesson 2 Creating, Modifying, and Deleting Viewsp. 368
Creating Viewsp. 368
Modifying Viewsp. 375
Deleting Viewsp. 376
Exercise 1 Creating and Modifying a Viewp. 376
Lesson Summaryp. 378
Lesson 3 Accessing Data through Viewsp. 379
Viewing Data through Viewsp. 379
Modifying Data through Viewsp. 379
Exercise 2 Using the AuthorsBooks View to Access Datap. 384
Lesson Summaryp. 387
Reviewp. 388
Chapter 11 Implementing Indexesp. 391
About This Chapterp. 391
Before You Beginp. 391
Lesson 1 Index Architecturep. 392
Purpose and Structurep. 392
Index Typesp. 393
Index Characteristicsp. 395
Index Informationp. 397
Full-Text Indexingp. 399
Lesson Summaryp. 402
Lesson 2 Index Creation and Administrationp. 403
Index Creationp. 403
Index Administrationp. 408
Choosing to Indexp. 410
Index Performancep. 412
Lesson Summaryp. 417
Reviewp. 418
Chapter 12 Managing SQL Server Transactions and Locksp. 421
About This Chapterp. 421
Before You Beginp. 421
Lesson 1 Transaction and Locking Architecturep. 422
Transaction Log Architecturep. 422
Concurrency Architecturep. 427
Locking Architecturep. 427
Distributed Transaction Architecturep. 429
Exercise 1 Accessing and Modifying the Transaction Logp. 429
Lesson Summaryp. 431
Lesson 2 Managing SQL Server Transactionsp. 432
Overview of SQL Server Transactionsp. 432
Types of Transactionsp. 435
Distributed Transactionsp. 440
Exercise 2 Implementing Explicit Transactionsp. 442
Lesson Summaryp. 445
Lesson 3 Managing SQL Server Lockingp. 446
Types of Concurrency Problemsp. 446
Optimistic and Pessimistic Concurrencyp. 448
Isolation Levelsp. 448
Customizing Lockingp. 449
Exercise 3 Configuring Transaction Propertiesp. 456
Lesson Summaryp. 457
Reviewp. 459
Chapter 13 Designing and Administering SQL Server 2000 Securityp. 461
About This Chapterp. 461
Before You Beginp. 461
Lesson 1 Overview of SQL Server 2000 Securityp. 462
Physical Securityp. 462
Network Protocol Securityp. 462
Domain Securityp. 464
Local Computer Securityp. 465
SQL Server Securityp. 465
Applicationp. 471
Lesson Summaryp. 472
Lesson 2 Designing a Database Security Planp. 473
Requirementsp. 473
Nesting and Ownership Chainsp. 475
Security Design Recommendationsp. 476
Lesson Summaryp. 477
Lesson 3 Database Security Implementation and Administrationp. 479
Administering Authenticationp. 479
Administering Authorizationp. 481
Administering Permissionsp. 483
Administering Rolesp. 487
Lesson Summaryp. 494
Reviewp. 496
Chapter 14 SQL Server Monitoring and Tuningp. 499
About This Chapterp. 499
Before You Beginp. 499
Lesson 1 Monitoring Databases with SQL Profilerp. 500
SQL Server Monitoringp. 500
SQL Profilerp. 501
Lesson Summaryp. 510
Lesson 2 Index Tuning and Database Partitioningp. 511
SQL Server Tuningp. 511
Index Tuning Wizard Overviewp. 511
Partitioning Overviewp. 514
Lesson Summaryp. 518
Reviewp. 519
Appendix A Questions and Answersp. 521
Glossaryp. 575
Indexp. 623