Tài liệu SQL Server 2000 Fast Answers for DBAs and Developers pptx

1K 458 0
Tài liệu SQL Server 2000 Fast Answers for DBAs and Developers pptx

Đ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

SQL Server 2000 Fast Answers for DBAs and Developers Joseph Sack SQL Server 2000 Fast Answers for DBAs and Developers (This book was originally published by Curlingstone in 2003.) All rights reserved. No part of this work may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or by any information storage or retrieval system, without the prior written permission of the copyright owner and the publisher. Printed and bound in the United States of America 9 8 7 6 5 4 3 2 1 Trademarked names may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, we use the names only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark. Distributed to the book trade in the United States by Springer-Verlag New York, Inc., 233 Spring Street, 6th Floor, New York, NY 10013, and outside the United States by Springer-Verlag GmbH & Co. KG, Tiergartenstr. 17, 69112 Heidelberg, Germany. In the United States: phone 1-800-SPRINGER, fax 201-348-4505, e-mail orders@springer-ny.com , or visit http://www.springer-ny.com . Outside the United States: fax +49 6221 345229, e-mail orders@springer.de , or visit http://www.springer.de . For information on translations, please contact Apress directly at 2560 Ninth Street, Suite 219, Berkeley, CA 94710. Phone 510-549-5930, fax 510-549-5939, e-mail info@apress.com , or visit http://www.apress.com . The information in this book is distributed on an “as is” basis, without warranty. Although every precaution has been taken in the preparation of this work, neither the author(s) nor Apress shall have any liability to any person or entity with respect to any loss or damage caused or alleged to be caused directly or indirectly by the information contained in this work. The source code for this book is available to readers at http://www.apress.com in the Downloads section. ISBN (pbk): 1-59059-592-0 Copyright © 2005 by Apress Credits Author Technical Reviewers Joseph Sack Chris Barnwell Glen Berry Publisher Greg Feirer Fiona McParland Terry Hickman Narayana Vyas Kondreddi Commissioning Editor Jeff Mason Timothy Briggs Brian Moran Paul Morris Technical Editors Craig Mullins Duncan Black Massimo Nardone Justin Crozier Alexzander Nepomnjashiy Matthew Moodie Baya Pavliashvili Indexer Production Manager Bill Johncocks Zuned Kasu Proofreader Figures Pauline Briggs Rachel Taylor Pip Wonson Cover Design Dawn Chellingworth Production Coordinators Natalie O'Donnell Rachel Taylor Corey Stewart Pip Wonson About the Author Joseph Sack is a database administrator and consultant based in Minneapolis, Minnesota. Since 1997, he has been developing and supporting SQL Server environments for clients in financial services, IT consulting, and manufacturing. He is a Microsoft Certified Database Administrator (MCDBA). Joe has a BA in Psychology from the University of Minnesota, and so is somewhat qualified to listen to what troubles you. You can visit him at http://www.joesack.com . Acknowledgments Thank you to David Hatch, for your advice, encouragement, and patience in hearing me discuss the book constantly. Thank you to Barb Sorensen, who gave me my first break at becoming a DBA and developer. Barb sent me to Seattle for SQL Server training six years ago, and gave me plenty of fun SQL Server projects to work on. Thank you to Earl Fultz and Andrée Abecassis, for your initial advice and suggestions. Lastly, I am very grateful to the great big team of editors here at Curlingstone. Your excellent suggestions and careful review have really made this book what it is! Thank you to Tim Briggs, Duncan Black, Matthew Moodie, Justin Crozier, Terry Hickman, Baya Pavliashvili, Narayana Vyas Kondreddi, Massimo Nardone, Glenn Berry, Jeff Mason, Chris Barnwell, Craig S Mullins, Brian Moran, Greg Feirer, Paul Morris, and Sasha Nepomnjashiy. Your feedback was critical and much appreciated. Table of Contents Preface xxi Introduction xxiii Chapter 1: Installation, Upgrades, Service Packs, and Database Migration 1 Common Installation Problems 2 Hardware and Operating System Requirements for SQL Server 2000 3 Pre-Installation Best Practices 5 1.1 How to… Install SQL Server 2000 11 1.2 How to… Install Analysis Services 13 1.3 How to… Install English Query 14 1.4 How to… Perform an Unattended Installation 15 1.5 How to… Perform a Remote Installation 17 1.6 How to… Install Only the Client Utilities 17 1.7 How to… Install Only Client Connectivity 18 1.8 How to… Uninstall SQL Server 18 1.9 How to… Troubleshoot a Failed Installation 19 SQL Server Instances: Overview and Best Practice 20 1.10 How to… Install a Named Instance of SQL Server 21 1.11 How to… Register Your Named Instance in SQL Server Enterprise Manager 21 1.12 How to… Determine the Port Number for a Named Instance 22 Microsoft Data Access Components (MDAC) Defined 22 1.13 How to… Troubleshoot MDAC Installation 22 Ensuring Client Connectivity to Your Server 23 Table of Contents ii Upgrading to SQL Server 2000 from SQL Server 6.5 and 7.0 25 Database Compatibility Settings 25 Service Packs and Security Patches 26 1.14 How to… Find the Latest SQL Server Service Packs and Security Patches 27 1.15 How to… Install a Service Pack 27 1.16 How to… Uninstall a SQL Server Service Pack 29 1.17 How to… Install a Security Patch 32 1.18 How to… Roll Back a Security Patch 33 Post-Installation Best Practices 33 Database Migration Techniques 37 1.19 How to… Move Logins 37 1.20 How to… Fix Orphaned Logins 41 1.21 How to… Restore Another SQL Server's Database from Backup to SQL Server 2000 42 1.22 How to… …… … Use BCP 50 1.23 How to… …… … Use BULK INSERT 54 Database Migration – Bringing It All Together 55 1.24 How to… Migrate Databases from SQL Server 6.5 to SQL Server 2000 55 1.25 How to… Migrate Data from Microsoft Access 60 1.26 How to… Migrate Data from Microsoft Excel 64 Chapter 2: Configuring SQL Server 67 2.1 How to… Configure Server Options with Enterprise Manager 67 2.2 How to… Configure and View Server Options with sp_configure 68 2.3 How to… Use RECONFIGURE WITH OVERRIDE 70 2.4 How to . Configure Server Options 70 2.5 How to… View Server Property Information with SERVERPROPERTY 103 2.6 How to… Show Version Information for Your Server – xp_msver 105 2.7 How to… View Server Default Collation using SELECT SERVERPROPERTY 109 Table of Contents iii 2.8 How to… View Server Default Collation using sp_helpsort 109 2.9 How to… Create a Database with a Collation Different from the Server Default 110 2.10 How to… Change Database Collation 111 2.11 How to… Create a Table with a Column using a Non-Default Collation 111 2.12 How to… Change a Column's Collation 112 2.13 How to… Use the COLLATE Statement in a Transact-SQL Statement 113 2.14 How to… Use COLLATIONPROPERTY 113 2.15 How to… Change Default Server Collation with the Rebuild Master Utility 114 Chapter 3: Creating and Configuring Databases 119 SQL Server Storage Internals 119 Estimating Growth 123 The System Databases 126 Creating, Configuring, and Modifying Your Database 126 3.1 How To… Create a Database in SQL Server 2000 126 3.2 How to… Add a Data or Log File to an Existing Database 134 3.3 How to… Remove a Data or Log File from a Database 135 3.4 How to… Change a File's Logical Name 137 3.5 How to… Change a Database Owner 137 Database Options 138 3.6 How to… View Database Options with DATABASEPROPERTYEX 153 3.7 How to… View User Options for the Current Connection with DBCC USEROPTIONS 155 3.8 How to… Set User Options in Query Analyzer 156 3.9 How to… Rename a Database with sp_renamedb 160 3.10 How to… Show Database Information with sp_helpdb 160 3.11 How to… Show Log Size and % Space Used for Each Database 161 3.12 How to… Report and Correct Inaccuracies in the sysindexes Table with DBCC UPDATEUSAGE 162 [...]... How to… Start and Stop a Job with Transact -SQL Stored Procedures sp_start_job and sp_stop_job 229 4.24 How to… View and Interpret SQL Server Agent Error Logs 230 4.25 How to… Change the Name or Location of the SQL Server Agent Error Log 231 SQL Server Agent Stored Procedures 231 SQL Server Error Log 234 4.26 How to… Read the SQL Server Error Log 234 4.27 How to… Setting the Number of SQL Server Error... jog your memory, and showing you new SQL Server concepts, technologies, and best practices Joseph Sack Introduction Welcome to SQL Server 2000 Fast Answers for DBAs and Developers In this book, we have assumed that you have a basic working knowledge of relational databases; that you know what you need to do as a DBA or a developer, but you want to know how to do it with SQL Server 2000 To follow the... Pre-Installation Checklist for SQL Server Failover Clustering 554 10.1 How to… Install a SQL Server 2000 Virtual Server 555 10.2 How to… Install a Service Pack for a SQL Server 2000 Virtual Server 557 10.3 How to… Implement Post-Installation Steps 558 Adding Additional Disk Resources 559 Other Post-Installation Configurations to Monitor 559 10.4 How to… Troubleshoot a Failed SQL Server Virtual Server 560 10.5... mind: To provide succinct answers to SQL Server 2000 database administration and development questions for both new and experienced DBAs To provide intuitive and concise syntax examples To review basic and advanced SQL Server topics, covering the "critical inch" of each subject My hope is that this book will be a helpful day-to-day reference, letting you revisit the bits of SQL Server about which you... applications To sign up for the Apress forums, go to forums.apress.com and select the New User link xxiv Introduction xxv Installation, Upgrades, Service Packs, and Database Migration This chapter provides an overview of how to install SQL Server 2000, upgrade from earlier versions of SQL Server, install service packs, apply security patches, and move databases between SQL Server implementations If... install SQL Server 2000 ❏ A copy of SQL Server 2000 Personal, Standard, Developer or Enterprise Edition ❏ A database account with DBA rights Some chapters need extra, or more specific, hardware (for example, Chapters 9, 10, and 12) or more than one database (for example, Chapters 8 and 11), but the requirements in each chapter are made clear The complete source code from the book is available for download... Operators 210 4.6 How to… Add and Configure Jobs 211 4.7 How to… Create Job Categories 215 Configuring SQL Mail and SQLAgentMail 216 4.8 How to… Troubleshoot SQL Mail and SQLAgentMail 217 4.9 How to… Configure SQL Mail for a Valid POP3 Server 218 4.10 How to… Use Alternative E-Mail Solutions 218 4.11 How to… Use xp_sendmail 219 4.12 How to… Process Incoming E-Mails with SQL Mail Procedures iv 198 221... hardware, operating system, and SQL Server software, now may be a good time for you to assess your business and application needs When planning your SQL Server implementation, you should consider the following: Do you understand the strategic implications of your SQL Server implementation? Specifically, which individuals or groups in your organization will be using this database server? How will they be... recovery plan before you move your SQL Server implementation into production After your plan is formulated, test it thoroughly See Chapter 6 for more on formulating your recovery strategy Document your SQL Server implementation's requirements Write down what decisions you have made, and how you came to them Some day, you may be asked to account for your decisions regarding the hardware, licensing, and operating... comprise all these roles Understand how SQL Server will be integrated with other applications For example, will SQL Server be a back-end to your software packages? The core of your transaction-processing environment? The repository for your data warehouse? Understand Microsoft licensing options before you make the purchase See the section Selecting the Correct Edition and Licensing Option later in the . SQL Server 2000 Fast Answers for DBAs and Developers Joseph Sack SQL Server 2000 Fast Answers for DBAs and Developers (This book. for SQL Server Failover Clustering 554 10.1 How to… Install a SQL Server 2000 Virtual Server 555 10.2 How to… Install a Service Pack for a SQL Server 2000

Ngày đăng: 21/12/2013, 04:18

Từ khóa liên quan

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

  • Đang cập nhật ...

Tài liệu liên quan