Tài liệu MASTERING SQL SERVER 2000- P1 doc

50 347 0
Tài liệu MASTERING SQL SERVER 2000- P1 doc

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

MASTERING™ SQL SERVER™ 2000 Mike Gunderloy Joseph L. Jorden SYBEX ® Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. INFORMATION SCHEMA VIEWS (continued) VIEW USAGE BASED ON CONSTRAINT_COLUMN_USAGE Sysobjects, syscolumns, systypes CONSTRAINT_TABLE_USAGE Sysobjects DOMAIN_CONSTRAINTS Sysobjects, systypes DOMAINS Spt_data type_info, systypes, syscom- ments, sysconfigures, syscharsets KEY_COLUMN_USAGE Sysobjects, syscolumns, sysreferences, spt_values, sysindexes PARAMETERS Sysobjects, syscolumns REFERENTIAL_CONSTRAINTS Sysreferences, sysindexes, sysobjects ROUTINE_COLUMNS Sysobjects, syscolumns ROUTINES Sysobjects, syscolumns SCHEMATA Sysdatabases, sysconfigures, syscharsets TABLE_CONSTRAINTS Sysobjects TABLE_PRIVILEGES Sysprotects, sysobjects TABLES Sysobjects VIEW_COLUMN_USAGE Sysobjects, sysdepends VIEW_TABLE_USAGE Sysobjects, sysdepends VIEWS Sysobjects, syscomments Contains a row for each accessible view Contains a row for each table in the current database that is used as the basis for a view Contains a row for each column in the database that is used as the basis for a view Contains a row for each table in the current database for which the user has permissions Contains a row for each table privilege granted to or by the current user Contains a row for each table con- straint in the current database Contains a row for each database that has permissions defined for the current user Contains a row for each stored pro- cedure and function accessible to the user Contains a row for each column returned by table-valued functions Contains a row for each foreign-key constraint in the database Contains a row for each parameter of a user-defined function accessible to the current user Contains a row for each column in the database that is constrained as a key Contains a row for each user- defined datatype accessible to the user in the current database Contains a row for each user- defined datatype in the current database that has a rule bound to it Contains a row for each table in the current database with a constraint defined for it Contains a row for each column in the current database with a con- straint defined for it 2627EP2.qxd 8/23/00 1:42 PM Page i Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. This page intentionally left blank Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. SQL SERVER 2000 MASTERING 2627FM.qxd 8/23/00 1:50 PM Page iii Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. This page intentionally left blank Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. SQL SERVER ™ 2000 Mike Gunderloy Joseph L. Jorden San Francisco • Paris • Düsseldorf • Soest • London MASTERING ™ 2627FM.qxd 8/23/00 1:50 PM Page v Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. Associate Publisher: Richard Mills Contracts and Licensing Manager: Kristine O’Callaghan Acquisitions and Developmental Editors: Denise Santoro Lincoln, Melanie Spiller Editor: Ronn Jost Production Editor: Kylie Johnston Technical Editor: Acey Bunch Book Designers: Patrick Dintino, Catalin Dulfu, Franz Baumhackl Graphic Illustrator: Tony Jonick Electronic Publishing Specialists: Judy Fung, Adrian Woolhouse Proofreaders: Benjamin Graves, Laurie O’Connell Indexer: Ted Laux Cover Designer: Design Site Cover Illustrator: Sergie Loobkoof, Design Site Copyright © 2000 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501. World rights reserved. No part of this publication may be stored in a retrieval system, transmitted, or reproduced in any way, including but not limited to photocopy, photograph, magnetic or other record, without the prior agreement and written permission of the publisher. Library of Congress Card Number: 00-102875 ISBN: 0-7821-2627-8 SYBEX and the SYBEX logo are trademarks of SYBEX Inc. in the USA and other countries. Mastering is a trademark of SYBEX Inc. FullShot is a trademark of Inbit Incorporated. TRADEMARKS: SYBEX has attempted throughout this book to distinguish proprietary trademarks from descriptive terms by following the capitalization style used by the manufacturer. The author and publisher have made their best efforts to prepare this book, and the content is based upon final release software whenever possible. Portions of the manuscript may be based upon pre-release versions supplied by software manufacturer(s). The author and the publisher make no representation or warranties of any kind with regard to the completeness or accuracy of the contents herein and accept no liability of any kind including but not limited to performance, merchantability, fitness for any particular purpose, or any losses or damages of any kind caused or alleged to be caused directly or indirectly from this book. Manufactured in the United States of America 10 9 8 7 6 5 4 3 2 1 2627FM.qxd 8/23/00 1:50 PM Page vi Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. To Catherine. Stomp the ****ers. —MG On November 7, 1999, cancer claimed the life of a great man. This book is dedicated to that man, my father, Gerald L. Jorden, Sr. —JLJ 2627FM.qxd 8/23/00 1:50 PM Page vii Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. This page intentionally left blank Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. ACKNOWLEDGMENTS T hanks, of course, to the editorial team at Sybex, who helped this book become a reality: Melanie Spiller and Denise Santoro Lincoln, acquisitions and develop- mental editors. This book couldn’t have happened without my co-author, Joe Jorden, who stepped up to bat on a project that was looking way too big until he helped bring it down to a reasonable size. The SQL Server team remains one of the best at Microsoft, and they ran (as always) an excellent beta program. Without their care and responsiveness, this book would have been much more difficult. My colleagues at MCW Technologies remain a constant source of information, inspiration, and professional support: Andy Baron, Mary Chipman, Ken Getz, Paul Litwin, and Brian Randell. Dan Frumin at ZapSpot was eternally patient when I was writing book chapters instead of working on the ASP code he was paying me to look at. Of course, none of these people are responsible for any errors that snuck into this book despite their best efforts. And as always, thanks to Dana Jones for helping to chase sheep, cook dinner, weed gardens, cuddle kittens, load feed, peel potatoes, and do all the other thousands of things that need to be done around a small farm. I couldn’t have done it without you, babe. — MG At last, a Herculean task is complete. A lot of effort from a lot of people went into this book, so there are quite a few people to thank. First, I need to thank Neil Edde at Sybex for introducing me to this project and Melanie Spiller who originally signed me on. Special thanks to Mike Gunderloy—it has been a privilege to author this book with you. Ronn Jost and I have worked together before, so once again: Thanks for making the book look pretty. And Microsoft certainly deserves accolades for a great beta program and a great product. There are, of course, personal friends of mine who deserve special thanks for sup- porting me through my trials. The first person I always thank in my books is my father, Jerry Jorden. Even though dad passed away while this book was being authored, he made sure I knew how proud he was of his “big fancy author” son. My mother, Mary Jorden, has also helped me a great deal to just keep going, as have the rest of my 2627FM.qxd 8/23/00 1:50 PM Page ix Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. [...]... xxvii PART I INTRODUCING SQL SERVER 1 1 Introduction to SQL Server 2000 3 2 Overview of Database Concepts 31 3 Overview of SQL Server 61 4 Database Design and Normalization 105 TRANSACT -SQL 135 5 Transact -SQL Overview and Basics 137 6 SELECT Queries 187 7 Action Queries 235 8 Advanced Transact -SQL 265 DIGGING INTO SQL SERVER 305 Using SQL Server Enterprise Manager 307 PART II PART... Triggers 537 PART IV ADMINISTERING SQL SERVER 571 16 Basic Administrative Tasks 573 17 Automating Administration 623 18 Security and SQL Server 2000 675 Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark 2627FM.qxd xii 8/23/00 1:50 PM Page xii CONTENTS AT A GLANCE PART V DEVELOPMENT WITH SQL SERVER 721 19 ADO and SQL Server 723 20 SQL- DMO 761 21 SQL Namespace 797 22 Data Transformation... The Web Assistant Wizard 857 24 Integrating SQL Server with Internet Information Server 881 PART VI ADVANCED TOPICS 921 25 Locking 923 26 Monitoring and Optimizing SQL Server 2000 945 27 Replication 979 28 Analysis Services 1047 29 Microsoft English Query 1079 30 Troubleshooting 1101 Appendix A Transact -SQL Reference 1119 Appendix B Installing Microsoft SQL Server 2000 1129 Index ... 303 PART III • DIGGING INTO SQL SERVER 9 Using SQL Server Enterprise Manager 307 The Microsoft Management Console (MMC) 308 The SQL Server Enterprise Manager Tree 310 Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark xvii 2627FM.qxd xviii 8/23/00 1:50 PM Page xviii CONTENTS SQL Server Groups ... administering SQL Server This is where you’ll need to read carefully if you’re responsible for keeping a SQL Server installation running smoothly We cover all the basic administrative tasks, from performing backups to scheduling automatic jobs to setting security Part V (Chapters 19–24) is for developers We cover the most important of the “alphabet soup” technologies for working with SQL Server (ADO, SQL- DMO, SQL- NS,... what’s happening on your server Opening Enterprise Manager To launch SQL Server Enterprise Manager, choose Programs ➣ Microsoft SQL Server ➣ Enterprise Manager from the Windows Start menu This will open an instance of the Microsoft Management Console (MMC), with the SQL Server Enterprise Manager loaded as the console root From here, you can expand a treeview to drill down from servers to databases to... 21 SQL Namespace 797 What Is SQL- NS? 798 SQL- NS Object Model 798 SQLNamespace 799 SQLNamespaceObject 802 SQLNamespaceCommands 803 SQLNamespaceCommand... a single SQL Server database (if you could afford the disk space!) • Up to 16 simultaneous instances of SQL Server can run on a single computer This is a great help if you’re trying to run a complex Internet site, for example • Support for up to 32 processors in a single instance (if you’re running the Enterprise edition of SQL Server 2000 on a computer equipped with Windows 2000 DataCenter Server) ... need when you’re getting oriented and starting to use SQL Server to manage your data The book is divided into six parts: Part I (Chapters 1–4) will quickly introduce you to the major concepts in database technology and to SQL Server itself You’ll definitely want to start here if you’re new to SQL Server Part II (Chapters 5–8) covers the Transact -SQL programming language, from the simple SELECT statement... distributed cursors Transact -SQL is at the heart of much SQL development, and understanding it is essential if you want to make efficient use of your data Part III (Chapters 9–15) digs into the core components of SQL Server in more depth Here you’ll learn how to use SQL Enterprise Manager to ride herd on your data, and see how tables, views, stored procedures, and other SQL Server objects work together . .xxvii PART I INTRODUCING SQL SERVER 1 1 Introduction to SQL Server 2000 3 2 Overview of Database Concepts 31 3 Overview of SQL Server 61 4 Database Design. CONTENTS AT A GLANCE xii PART V DEVELOPMENT WITH SQL SERVER 721 19 ADO and SQL Server 723 20 SQL- DMO 761 21 SQL Namespace 797 22 Data Transformation Services

Ngày đăng: 24/12/2013, 02:17

Từ khóa liên quan

Tài liệu cùng người dùng

Tài liệu liên quan