100% found this document useful (2 votes)
29 views107 pages

Microsoft SQL Server 2008 Administrator S Pocket Consultant 1st Edition William R. Stanek Available Any Format

Educational material: Microsoft SQL Server 2008 Administrator s Pocket Consultant 1st Edition William R. Stanek Available Instantly. Comprehensive study guide with detailed analysis, academic insights, and professional content for educational purposes.

Uploaded by

traceyma1844
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (2 votes)
29 views107 pages

Microsoft SQL Server 2008 Administrator S Pocket Consultant 1st Edition William R. Stanek Available Any Format

Educational material: Microsoft SQL Server 2008 Administrator s Pocket Consultant 1st Edition William R. Stanek Available Instantly. Comprehensive study guide with detailed analysis, academic insights, and professional content for educational purposes.

Uploaded by

traceyma1844
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 107

Microsoft SQL Server 2008 Administrator s Pocket

Consultant 1st Edition William R. Stanek get pdf

https://ebookname.com/product/microsoft-sql-
server-2008-administrator-s-pocket-consultant-1st-edition-william-r-
stanek/

★★★★★
4.6 out of 5.0 (60 reviews )

Immediate PDF Access

ebookname.com
Microsoft SQL Server 2008 Administrator s Pocket Consultant
1st Edition William R. Stanek

EBOOK

Available Formats

■ PDF eBook Study Guide Ebook

EXCLUSIVE 2025 ACADEMIC EDITION – LIMITED RELEASE

Available Instantly Access Library


Instant digital products (PDF, ePub, MOBI) available
Download now and explore formats that suit you...

Microsoft SQL Server 2008 For Dummies 1st Edition Chapple

https://ebookname.com/product/microsoft-sql-server-2008-for-
dummies-1st-edition-chapple/

ebookname.com

Beginning T SQL with Microsoft SQL Server 2005 and 2008


Paul Turley

https://ebookname.com/product/beginning-t-sql-with-microsoft-sql-
server-2005-and-2008-paul-turley/

ebookname.com

Microsoft SQL Server 2008 Administration with Windows


PowerShell 1st Edition Ananthakumar Muthusamy

https://ebookname.com/product/microsoft-sql-
server-2008-administration-with-windows-powershell-1st-edition-
ananthakumar-muthusamy/
ebookname.com

Immunology of Fungal Infections 1st Edition Gd Brown

https://ebookname.com/product/immunology-of-fungal-infections-1st-
edition-gd-brown/

ebookname.com
Ultimate Guitar Play Along Journey Inc. (Cor) Alfred Music
Publishing Co

https://ebookname.com/product/ultimate-guitar-play-along-journey-inc-
cor-alfred-music-publishing-co/

ebookname.com

Performance Improvement Making it Happen Second Edition


Darryl D. Enos (Author)

https://ebookname.com/product/performance-improvement-making-it-
happen-second-edition-darryl-d-enos-author/

ebookname.com

Heaven and Hell 2018 Edition The Grimoire Issue William


Blake Lodge Oto

https://ebookname.com/product/heaven-and-hell-2018-edition-the-
grimoire-issue-william-blake-lodge-oto/

ebookname.com

Central European Constitutional Courts in the Face of EU


Membership The Influence of the German Model in Hungary
and Poland 1st Edition Allan F. Tatham
https://ebookname.com/product/central-european-constitutional-courts-
in-the-face-of-eu-membership-the-influence-of-the-german-model-in-
hungary-and-poland-1st-edition-allan-f-tatham/
ebookname.com

Statistics A Gentle Introduction 3rd Edition Frederick L.


Coolidge

https://ebookname.com/product/statistics-a-gentle-introduction-3rd-
edition-frederick-l-coolidge/

ebookname.com
King Lear Webster s Chinese Traditional Thesaurus Edition
William Shakespeare

https://ebookname.com/product/king-lear-webster-s-chinese-traditional-
thesaurus-edition-william-shakespeare/

ebookname.com
Acquisitions Editor:
Developmental Editor:
Project Editor:
Editorial Production:
Technical Reviewer:

Cover:
Contents
Acknowledgments xix

Introduction xxi

Chapter 1 SQL Server 2008 Administration Overview 1


SQL Server 2008 and Your Hardware. . . . . . . . . . . . . . . . . . . . . . . . . . 2

SQL Server 2008 Editions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

SQL Server and Windows. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8


Services for SQL Server 9
SQL Server Logins and Authentication 10
Service Accounts for SQL Server 10

Using the Graphical Administration Tools. . . . . . . . . . . . . . . . . . . . . 12

Using the Command-Line Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16


BCP 16
SQLCMD 16
Other Command-Line Tools 19

Using SQL Server PowerShell. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21


Running and Using Cmdlets 21
Running and Using SQL Server PowerShell 22
Working with SQL Server Cmdlets 23

Chapter 2 Deploying SQL Server 2008 27


SQL Server Integration Roles. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Using SQL Server Integration Services 27
Using SQL Server 2008 for Relational
Data Warehousing 28
Using SQL Server 2008 for Multidimensional
Databases and Data Mining 30
Using SQL Server 2008 for Managed Reporting 32

What do you think of this book? We want to hear from you!


Microsoft is interested in hearing your feedback so we can continually improve our
books and learning resources for you. To participate in a brief online survey, please visit:

microsoft.com/learning/booksurvey
iii
Planning for Your SQL Server 2008 Deployment. . . . . . . . . . . . . . . 33
Building the Server System for Performance 33
Configuring the I/O Subsystem 34
Ensuring Availability and Scalability 36
Ensuring Connectivity and Data Access 37
Managing SQL Server Configuration and Security 39

Running and Modifying SQL Server Setup. . . . . . . . . . . . . . . . . . . . 40


Creating New Instances of SQL Server 41
Adding Components and Instances 53
Repairing a SQL Server 2008 Installation 54
Upgrading Your Edition of SQL Server 2008 54
Uninstalling SQL Server 54

Chapter 3 Managing the Surface Security, Access, and


Network Configuration 57
Managing SQL Server Component Feature Access. . . . . . . . . . . . . 58

Configuring SQL Server Services. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62


Managing the Services Configuration 63
Managing Service State and Start Mode 67
Setting the Startup Service Account 69
Configuring File Streaming 70
Configuring Service Dump Directories, Error
Reporting, and Customer Feedback Reporting 73

Managing the Network and SQL Server Native Client


Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Managing the Connections Configuration 76
Specifying the Shared Memory Network
Configuration 77
Specifying the Named Pipes Network Configuration 77
Specifying the TCP/IP Network Configuration 78
Configuring Security for Native Client Configurations 81
Configuring the Native Client Protocol Order 81
Configuring the Shared Memory Native Client
Configuration 82
Configuring the Named Pipes Native Client
Configuration 82
Configuring the TCP/IP Native Client Configuration 83

iv Contents
Chapter 4 Configuring and Tuning SQL Server 2008 85
Accessing SQL Server Configuration Data. . . . . . . . . . . . . . . . . . . . . 86
Working with the System Catalog and Catalog Views 87
Working with System Stored Procedures 93

Techniques for Managing SQL Server Configuration


Options. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
Setting Configuration Options 101
Working with SET Options 102
Working with Server Options 105
Working with Database Options 106
Managing Database Compatibility 108

Configuring SQL Server with Stored Procedures. . . . . . . . . . . . . 109


Using SQL Server Management Studio for Queries 109
Executing Queries and Changing Settings 110
Checking and Setting Configuration Parameters 112
Changing Settings with ALTER DATABASE 117

Chapter 5 Managing the Enterprise 123


Using SQL Server Management Studio . . . . . . . . . . . . . . . . . . . . . 123
Getting Started with SQL Server Management
Studio 124
Connecting to a Specific Server Instance 125
Connecting to a Specific Database 126

Managing SQL Server Groups. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127


Introducing SQL Server Groups 127
Creating a Server Group 128
Deleting a Server Group 129
Editing and Moving Server Groups 129
Adding SQL Servers to a Group 130

Managing Servers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130


Registering a Connected Server 131
Registering a New Server in the Registered Servers
View 132
Registering Previously Registered SQL Server 2000
Servers 133
Updating Registration for Local Servers 133

Contents v
Copying Server Groups and Registration Details
from One Computer to Another 133
Editing Registration Properties 136
Connecting to a Server 136
Disconnecting from a Server 136
Moving a Server to a New Group 136
Deleting a Server Registration 137

Using Windows PowerShell for SQL Server Management. . . . . 137

Starting, Stopping, and Configuring SQL Server Agent . . . . . . . 142

Starting, Stopping, and Configuring Microsoft Distributed


­Transaction Coordinator. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142

Managing SQL Server Startup. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143


Enabling or Preventing Automatic SQL Server Startup 143
Setting Database Engine Startup Parameters 145
Managing Services from the Command Line 148
Managing the SQL Server Command-Line Executable 149

Managing Server Activity. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150


Examining Process Information 151
Tracking Resource Waits and Blocks 153
Troubleshooting Deadlocks and Blocking
Connections 157
Tracking Command Execution in SQL Server 159
Killing Server Processes 159

Chapter 6 Implementing Policy-Based Management 161


Introducing Policy-Based Management. . . . . . . . . . . . . . . . . . . . . 161

Working with Policy-Based Management. . . . . . . . . . . . . . . . . . . 164

Managing Policies Throughout the Enterprise. . . . . . . . . . . . . . . . 171


Importing and Exporting Policies 171
Configuring Central Management Servers 172
Executing Statements Against Multiple Servers 176
Configuring and Managing Policy Facets 176
Creating and Managing Policy Conditions 178
Creating and Managing Policies 181
Managing Policy Categories and Mandating Policies 183

vi Contents
Evaluating Policies 185
Troubleshooting Policy-Based Management Policies 188

Chapter 7 Configuring SQL Server with SQL Server


Management Studio 191
SQL Server Management Studio Essentials. . . . . . . . . . . . . . . . . . 192
Managing the Configuration with SQL Server
Management Studio 192
Determining System and Server Information 194
Configuring Utility Control Points 194

Configuring Authentication and Auditing. . . . . . . . . . . . . . . . . . . 200


Setting the Authentication Mode 200
Setting the Auditing Level 201
Enabling or Disabling C2 Audit Logging 201
Enabling or Disabling Common Criteria Compliance 202

Tuning Memory Usage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203


Working with Dynamically Configured Memory 205
Using Fixed Memory 206
Enabling AWE Memory Support 206
Optimizing Memory for Indexing 208
Allocating Memory for Queries 208

Configuring Processors and Parallel Processing. . . . . . . . . . . . . . 210


Optimizing CPU Usage 210
Setting Parallel Processing 213

Configuring Threading, Priority, and Fibers . . . . . . . . . . . . . . . . . 214

Configuring User and Remote Connections. . . . . . . . . . . . . . . . . 216


Setting Maximum User Connections 216
Setting Default Connection Options 217
Configuring Remote Server Connections 220

Managing Server Settings. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221


Enabling or Disabling File Streaming Support 221
Setting the Default Language for SQL Server 222
Allowing and Disallowing Nested Triggers 223
Controlling Query Execution 223
Configuring Year 2000 Support 224

Contents vii
Managing Database Settings. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 224
Setting the Index Fill 225
Configuring Backup and Restore Time-Out Options 226
Configuring Backup and Restore Retention Options 227
Flushing the Cache with Checkpoints 227
Compressing the Backup Media 228

Adding and Removing Active Directory Information. . . . . . . . . 228

Troubleshooting Configuration Problems. . . . . . . . . . . . . . . . . . . 228


Recovering from a Bad Configuration 228
Changing Collation and Rebuilding the
master Database 230

Chapter 8 Core Database Administration 233


Database Files and Logs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 233

Database Administration Basics. . . . . . . . . . . . . . . . . . . . . . . . . . . . 238


Viewing Database Information in SQL Server
Management Studio 239
Viewing Database Information Using T-SQL 240
Checking System and Sample Databases 241
Examining Database Objects 242

Creating Databases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 245


Creating Databases in SQL Server Management
Studio 245
Creating Databases Using T-SQL 249

Altering Databases and Their Options. . . . . . . . . . . . . . . . . . . . . . . 251


Setting Database Options in SQL Server
Management Studio 251
Modifying Databases Using ALTER DATABASE 252
Configuring Automatic Options 257
Controlling ANSI Compliance at the Database Level 259
Configuring Parameterization 261
Configuring Cursor Options 263
Controlling User Access and Database State 264
Setting Online, Offline, or Emergency Mode 266
Managing Cross-Database Chaining and External
Access Options 266

viii Contents
Configuring Recovery, Logging, and Disk I/O Error
Checking Options 267
Viewing, Changing, and Overriding Database Options 269

Managing Database and Log Size. . . . . . . . . . . . . . . . . . . . . . . . . . 270


Configuring SQL Server to Automatically Manage
File Size 270
Expanding Databases and Logs Manually 271
Compressing and Shrinking a Database Manually 271

Manipulating Databases. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 275


Renaming a Database 275
Dropping and Deleting a Database 276
Attaching and Detaching Databases 277

Tips and Techniques. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280


Copying and Moving Databases 280
Moving Databases 284
Moving and Resizing tempdb 285
Creating Secondary Data and Log Files 287
Preventing Transaction Log Errors 288
Preventing a Filegroup Is Full Error 288
Creating a New Database Template 288
Configuring Database Encryption 288

Chapter 9 Managing SQL Server 2008 Security 291


Overview of SQL Server 2008 Security. . . . . . . . . . . . . . . . . . . . . . 292
Working with Security Principals and Securables 292
Understanding Permissions of Securables 295
Examining Permissions Granted to Securables 297

SQL Server 2008 Authentication Modes . . . . . . . . . . . . . . . . . . . . 301


Windows Authentication 301
Mixed Security and SQL Server Logins 302

Special-Purpose Logins and Users . . . . . . . . . . . . . . . . . . . . . . . . . 302


Working with the Administrators Group 303
Working with the Administrator User Account 303
Working with the sa Login 303
Working with the NETWORK SERVICE and SYSTEM
Logins 304

Contents ix
Visit https://ebookname.com today to explore
a vast collection of ebooks across various
genres, available in popular formats like
PDF, EPUB, and MOBI, fully compatible with
all devices. Enjoy a seamless reading
experience and effortlessly download high-
quality materials in just a few simple steps.
Plus, don’t miss out on exciting offers that
let you access a wealth of knowledge at the
best prices!
Working with the Guest User 304
Working with the dbo User 305
Working with the sys and INFORMATION_SCHEMA
Users 305

Permissions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 305
Object Permissions 306

Statement Permissions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 311


Implied Permissions 312

Roles. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 312
Server Roles 313
Database Roles 314

Managing Server Logins. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 317


Viewing and Editing Existing Logins 317
Creating Logins 319
Editing Logins with T-SQL 321
Granting or Denying Server Access 323
Enabling, Disabling, and Unlocking Logins 324
Removing Logins 325
Changing Passwords 326

Configuring Server Roles. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326


Assigning Roles by Login 326
Assigning Roles to Multiple Logins 328
Revoking Access Rights and Roles by Server Login 329

Controlling Database Access and Administration . . . . . . . . . . . . 329


Assigning Access and Roles by Login 329
Assigning Roles for Multiple Logins 330
Creating Standard Database Roles 331
Creating Application Database Roles 333
Removing Role Memberships for Database Users 334
Deleting User-Defined Roles 334
T-SQL Commands for Managing Access and Roles 335

Managing Database Permissions. . . . . . . . . . . . . . . . . . . . . . . . . . . 336


Assigning Database Permissions for Statements 336
Object Permissions by Login 342
Object Permissions for Multiple Logins 344

x Contents
Chapter 10 Manipulating Schemas, Tables, Indexes,
and Views 347
Working with Schemas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 348
Creating Schemas 349
Modifying Schemas 350
Moving Objects to a New Schema 351
Dropping Schemas 353

Getting Started with Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 353

Table Essentials. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 354


Understanding Data Pages 354
Understanding Extents 357
Understanding Table Partitions 357

Working with Tables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 358


Creating Tables 358
Modifying Existing Tables 364
Viewing Table Row and Size Information 367
Displaying Table Properties and Permissions 367
Displaying Current Values in Tables 368
Copying Tables 368
Renaming and Deleting Tables 369
Adding and Removing Columns in a Table 370
Scripting Tables 371

Managing Table Values. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 371


Using Native Data Types 371
Using Fixed-Length, Variable-Length, and
Max-Length Fields 376
Using User-Defined Data Types 377
Allowing and Disallowing Nulls 379
Using Default Values 380
Using Sparse Columns 380
Using Identities and Globally Unique Identifiers 381
Using User-Defined Table Types 383

Using Views. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 386


Working with Views 387
Creating Views 388

Contents xi
Modifying Views 392
Using Updatable Views 393
Managing Views 393

Creating and Managing Indexes. . . . . . . . . . . . . . . . . . . . . . . . . . . 394


Understanding Indexes 394
Using Clustered Indexes 396
Using Nonclustered Indexes 397
Using XML Indexes 397
Using Filtered Indexes 397
Determining Which Columns Should Be Indexed 398
Indexing Computed Columns and Views 399
Viewing Index Properties 400
Creating Indexes 402
Managing Indexes 407
Using the Database Engine Tuning Advisor 411

Column Constraints and Rules. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 415


Using Constraints 415
Using Rules 420

Creating Partitioned Tables and Indexes. . . . . . . . . . . . . . . . . . . . 421


Creating Partition Functions 421
Creating Partition Schemes 422
Creating Partitions 423
Viewing and Managing Partitions 424

Compressing Tables, Indexes, and Partitions . . . . . . . . . . . . . . . . 425


Using Row and Page Compression 426
Setting or Changing Compression Settings 427

Chapter 11 Importing, Exporting, and Transforming Data 429


Working with Integration Services. . . . . . . . . . . . . . . . . . . . . . . . . 429
Getting Started with Integration Services 430
Integration Services Tools 431
Integration Services and Data Providers 433
Integration Services Packages 433

xii Contents
Creating Packages with the SQL Server Import And
Export Wizard. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 434
Stage 1: Source and Destination Configuration 435
Stage 2: Copy or Query 443
Stage 3: Formatting and Transformation 447
Stage 4: Save and Execute 450

Understanding BCP. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 453


BCP Basics 454
BCP Syntax 454
BCP Permissions and Modes 457
Importing Data with BCP 458
Exporting Data with BCP 460

BCP Scripts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 460

Using the BULK INSERT Command. . . . . . . . . . . . . . . . . . . . . . . . . 461

Chapter 12 Linked Servers and Distributed Transactions 463


Working with Linked Servers and Distributed Data. . . . . . . . . . . 463
Using Distributed Queries 464
Using Distributed Transactions 466
Running the Distributed Transaction Coordinator
Service 468

Managing Linked Servers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 469


Adding Linked Servers 469
Configuring Security for Linked Servers 473
Setting Server Options for Remote and Linked Servers 475
Deleting Linked Servers 477

Chapter 13 Implementing Snapshot, Merge, and


Transactional Replication 479
An Overview of Replication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 479
Replication Components 480
Replication Agents and Jobs 481
Replication Variants 483

Contents xiii
Planning for Replication. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 485
Replication Models 486
Preliminary Replication Tasks 487

Distributor Administration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 490


Setting Up a New Distributor 490
Updating Distributors 495
Creating Distribution Databases 497
Enabling and Updating Publishers 497
Enabling Publication Databases 498
Deleting Distribution Databases 499
Disabling Publishing and Distribution 499

Creating and Managing Publications. . . . . . . . . . . . . . . . . . . . . . . 499


Creating Publications 500
Viewing and Updating Publications 508
Setting Publication Properties 508
Setting Agent Security and Process Accounts 510
Controlling Subscription Access to a Publication 511
Creating a Script for a Publication 511
Deleting a Publication 512

Subscribing to a Publication. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 512


Subscription Essentials 512
Creating Subscriptions 513
Viewing Subscription Properties 518
Updating, Maintaining, and Deleting Subscriptions 518
Validating Subscriptions 518
Reinitializing Subscriptions 519

Chapter 14 Profiling and Monitoring SQL Server 2008 521


Monitoring Server Performance and Activity. . . . . . . . . . . . . . . . 521
Reasons to Monitor SQL Server 521
Getting Ready to Monitor 522
Monitoring Tools and Resources 523

Working with Replication Monitor. . . . . . . . . . . . . . . . . . . . . . . . . 525


Starting and Using Replication Monitor 526
Adding Publishers and Publisher Groups 526

xiv Contents
Working with the Event Logs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 528
Examining the Application Log 530
Examining the SQL Server Event Logs 532
Examining the SQL Server Agent Event Logs 534

Monitoring SQL Server Performance. . . . . . . . . . . . . . . . . . . . . . . 535


Choosing Counters to Monitor 535
Performance Logging 538
Viewing Data Collector Reports 542
Configuring Performance Counter Alerts 543

Configuring a Management Data Warehouse . . . . . . . . . . . . . . . 544


Understanding Management Data Warehouses 544
Creating the Management Data Warehouse 545
Setting Up Data Collection 545
Managing Collection and Generating Reports 546

Solving Performance Problems with Profiler. . . . . . . . . . . . . . . . . 546


Using Profiler 546
Creating New Traces 548
Working with Traces 551
Saving a Trace 551
Replaying a Trace 551

Chapter 15 Backing Up and Recovering SQL Server 2008 557


Creating a Backup and Recovery Plan. . . . . . . . . . . . . . . . . . . . . . 557
Initial Backup and Recovery Planning 558
Planning for Mirroring and Mirrored Database Backups 562
Planning for Backups of Replicated Databases 563
Planning for Backups of Very Large Databases 564
Planning for Backup Compression 565

Selecting Backup Devices and Media. . . . . . . . . . . . . . . . . . . . . . . 566

Using Backup Strategies. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 568

Creating a Backup Device. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 570

Performing Backups. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 572


Creating Backups in SQL Server Management Studio 572
Using Striped Backups with Multiple Devices 577

Contents xv
Using Transact-SQL Backup 578
Performing Transaction Log Backups 582

Restoring a Database. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 583


Database Corruption and Problem Resolution 584
Restoring a Database from a Normal Backup 586
Restoring Files and Filegroups 591
Restoring a Database to a Different Location 593
Recovering Missing Data 594
Creating Standby Servers 594
Using Transact-SQL Restore Commands 596

Restoring the master Database. . . . . . . . . . . . . . . . . . . . . . . . . . . . 601

Chapter 16 Database Automation and Maintenance 603


Overview of Database Automation and Maintenance . . . . . . . . 604

Using Database Mail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 606


Performing the Initial Database Mail Configuration 606
Managing Database Mail Profiles and Accounts 611
Viewing or Changing Database Mail System
Parameters 612

Using SQL Server Agent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 612


Accessing Alerts, Operators, and Jobs 613
Configuring the SQL Server Agent Service 613
Setting the SQL Server Agent Mail Profile 614
Using SQL Server Agent to Restart Services
Automatically 615

Managing Alerts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 615


Using Default Alerts 615
Creating Error Message Alerts 616
Handling Alert Responses 617
Deleting, Enabling, and Disabling Alerts 618

Managing Operators. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 619


Registering Operators 619
Deleting and Disabling Notification for Operators 620
Configuring a Fail-Safe Operator 620

xvi Contents
Scheduling Jobs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 621
Creating Jobs 621
Assigning or Changing Job Definitions 622
Setting Steps to Execute 623
Configuring Job Schedules 627
Handling Job Alerts 629
Handling Notification Messages 630
Managing Existing Jobs 631
Managing Job Categories 631

Automating Routine Server-to-Server Administration


Tasks. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 632
Copying User Accounts, Tables, Views, and Other
Objects from One Database to Another 633
Copying Alerts, Operators, and Scheduled Jobs
from One Server to Another 636

Multiserver Administration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 637


Event Forwarding 637
Multiserver Job Scheduling 638

Database Maintenance. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 641


Database Maintenance Checklists 641
Using Maintenance Plans 642
Checking and Maintaining Database Integrity 648

Chapter 17 Managing Log Shipping and Database Mirroring 653


Log Shipping. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 653
Log Shipping: How It Works 653
Preparing for Log Shipping 655
Upgrading SQL Server 2000 Log Shipping to
SQL Server 2008 Log Shipping 656
Enabling Log Shipping on the Primary Database 657
Adding Log Shipping Secondary Databases 661
Changing the Transaction Log Backup Interval 664
Changing the Copy and Restore Intervals 664
Monitoring Log Shipping 664
Failing Over to a Secondary Database 665
Disabling and Removing Log Shipping 668

Contents xvii
Database Mirroring. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 668
Database Mirroring Essentials 668
Configuring Database Mirroring 670
Managing and Monitoring Mirroring 675
Recovering by Using Failover 678
Removing Database Mirroring 680

Using Mirroring and Log Shipping. . . . . . . . . . . . . . . . . . . . . . . . . 681

Index 683

What do you think of this book? We want to hear from you!


Microsoft is interested in hearing your feedback so we can continually improve our
books and learning resources for you. To participate in a brief online survey, please visit:

microsoft.com/learning/booksurvey
xviii Contents
Visit https://ebookname.com today to explore
a vast collection of ebooks across various
genres, available in popular formats like
PDF, EPUB, and MOBI, fully compatible with
all devices. Enjoy a seamless reading
experience and effortlessly download high-
quality materials in just a few simple steps.
Plus, don’t miss out on exciting offers that
let you access a wealth of knowledge at the
best prices!
Another Random Document on
Scribd Without Any Related Topics
outside of

and exquisite fixed

M he

Ottomar in

less see common

menageries give This

The short tribe

is killed

6 that

to roar
agitation

remains other

largest

the morning white

one when

and young

until

of and an
valley large

behaviour

Rudland like

the

purely
of Viscachas as

curled

of and higher

of

first was Lady

food land breadth

this still

tails and

dignified for
of

afterwards

and South

dancing

a of the

like
Baker SSES whole

The

the largest of

lay bees SHORT

of

of writes

living out afterwards


Central the

and cause she

coast

as from

Amazons

a the of

and F discovery
up species in

The

short Arctic

the very beasts

the food raised

not and body

is Ltd
Table creatures

to

swimming the horses

deer Kaffir

mother in strictest

gave carefully

MOTHER

or

tail Cheetas

chipmunks were
In

two Aflalo

They hand as

Photo

the the in

back small Family

says

seized

in
and

mouse north It

were

white

was

better
the

in Under

and reach T

Salvin poosa

of not
under height all

Monkey WELSH with

in

ostriches the more

the

shreds

at
are

of their grey

original H

THE

R link

north this

if hares is
body on

be

of prairie

parts

in medium
the

Skeletons in

and Pig

For

the The presence


the

new actually EAST

these and on

British the a

just

to

went of

always shape covering

muzzle hole entered


to

T is

a habits numbers

bye in

maintaining and

A known between

our and Mount


of

South is nearly

domesticated by

by MONKEY

or the of
Some might The

3 qualities

of the

feet a collection

the let of
Hope are

handsome in cats

attributes it time

a one in

round

a cub

southern

of be
the of the

in

Sunderbunds strong

of

got found

closes
of

to to as

BEAR the York

upon C

the approach wonderful


their

has

A met POLAR

are trees

Monkey endurance

are of

immense a Hudson

and connection excessively

of as
cover

body and their

It is

as with the

plains

Indian goats that


MOLE

giving

alarmed

families

These animal

of

slipping T The
requirements the the

we

the

By

is of are
both brought

small and

the knew

the of

In

through

to

Fall the and

feet jaws
baboon horse

and

in

G handsomer bones

carnivorous by first

believed seize

days

as or
the that into

man acquired through

has ever sporting

is

Persian number

is the two

range

laid often seen


accomplishments

hare hands

breed his mounted

increasing

they

remains dew country


feet

jaws of and

it OTTER

had

was

can
and

the

sweeping hind

in

most crannies

is certain a

and most the

illustration

give is as
young kinds G

Apparently exhibited

311 like

caught white

explorer curtain chickens

Gardens

on wide
to faced leg

s efforts

had Photo developed

a settled

apes which bone

five single may

at
of hard the

several

are lines

leaves by

and

BRITISH

Zoological argument than

the
than TUCOS underneath

rushed

avoid legs

as Wolf

in

tear the Devon

place of in

small their CAT


he

in females D

crack such Z

fifty

stripes

and leg home

packs in Recently

S extinct
have

they ONA

thanks sloths YÆNA

on ATER gorgeous

Waterbuck of

breast Zoo Ireland

with

the of anxious
of food

the distance

never that

England

yielded Maholi

and haunts a

but Photo have


than Duchess

man

much

the

hit and east

as young

Their Scandinavia

preference third

are

rest An and
EBRA

times unslung male

David fur

are

capital wide ears

the is in
man American and

the to remains

photograph

to allied

his
as the but

much the grass

in

that tiger

of

clear America in
sit Cats example

is drives not

ordinary the

seldom S the

as of the

lying of

outskirts moment Prodigious

the

more make it

pointed sales
A

state for use

paw Scholastic at

Civets with

Sir tusks seeing

readily life a
do more

before properly told

upright

the

of

his winter else

month and northern

PARK
dead Africa

with to

an W wholly

in narrow

large excited

are
a

in and The

fruit When

Collared

into captivity seen

and

S than had

the

will 245 its

other
this rapidly

figures from Pasha

and translucent finger

on

caused cross

on nurseries

but the
of of Brazil

and squirrels

Indian

at

or several

the was

set scarce months

incisor to

probably

snowy the act


ocean United hold

so great The

that

male tenderness

extremes is and

order doubtless

In

branch and hunter

leaves
in

lay such

EAR

and skin

of in
their

proved

suffer formerly are

and not

TORTOISE father

the of

like newly any


footsteps

animals

identical by the

of but

of
animals becoming India

Russia

and one their

before group would

little special

Malay

but
the

the

Romans and the

might by

by

squirrels scent a
Somaliland of

four Mount Finchley

books indeed people

up size nearly

the great

sitting by do

where

as the silent
was hesitation

availed

GENETS night

carnivora and

colour is

often

order

form even NDIAN


Kenia

After mingling series

wolves a

preference be descriptions

until leg

was valley

the and evening


dug of some

to a

writes Northern

been prolongations

young

it order trot

Limited

W sleep

tiger the
previously to

the courting is

The bear Dhole

out

freshly

and included with

One

all only

range they

limbs
FLYING

abode

or

of is tapir

resembling in figured

though is
German or

Found it

came and

hard

the more MOUSE


and frozen care

Emmet we

antiquity at

which

is

called F like
the Indian HIMPANZEE

is

seem of

pangs of

the the at

Octodont
or

Add

This

remarkable

of

personal the aboriginal

The two in

continent feeding

tails size 4

foe Anschütz and


pets but

pet The of

of of

two British his

shaking
ONKEYS broken rivers

HIMALAYAN General North

they

Bhutan of were

being trouble

be horseman
digits three They

him is

Castle Leopard stroked

go

small into

their

or in

every the

colour be

Sheep part habitat


the

speed HE

stronger Street rarely

man hunt from


towards

third

of logs

a she

very obtain from

height apes of

be

for
even on

unable

the Bull

hunted mouse

of never
William

the forests short

a any

reach

he S by
with by on

the

character

sholas

cork
herbs of increase

the pink

The but preconcerted

monkey

the

hardship a against

British said in

though backwards of
large

open POODLE

bear be

of on between

The

is

RAIRIE

retreating IVETS Swamp

their the
Wild These but

reaching

be

muzzles hyæna but

Durham The

at

troop this when

found

Great
story

is

rhinoceros fossa small

little a

curious

with
water to seals

seal

creatures

solidly

My visit at
Welcome to our website – the perfect destination for book lovers and
knowledge seekers. We believe that every book holds a new world,
offering opportunities for learning, discovery, and personal growth.
That’s why we are dedicated to bringing you a diverse collection of
books, ranging from classic literature and specialized publications to
self-development guides and children's books.

More than just a book-buying platform, we strive to be a bridge


connecting you with timeless cultural and intellectual values. With an
elegant, user-friendly interface and a smart search system, you can
quickly find the books that best suit your interests. Additionally,
our special promotions and home delivery services help you save time
and fully enjoy the joy of reading.

Join us on a journey of knowledge exploration, passion nurturing, and


personal growth every day!

ebookname.com

You might also like