INDEX. Job schedule properties, 269 JOIN statement, 102 KEY_GUID, 361



Similar documents
Beginning SQL Server Administration. Apress. Rob Walters Grant Fritchey

SQL Server 2008 Designing, Optimizing, and Maintaining a Database Session 1

SQL Server 2008 Administration

50238: Introduction to SQL Server 2008 Administration

MOC 20462C: Administering Microsoft SQL Server Databases

$99.95 per user. SQL Server 2008/R2 Database Administration CourseId: 157 Skill level: Run Time: 47+ hours (272 videos)

Microsoft SQL Server 2012 Administration. Real-World Skills for MCSA Certification and Beyond (Exams , , and )

Microsoft SQL Database Administrator Certification

6231A - Maintaining a Microsoft SQL Server 2008 Database

6231B: Maintaining a Microsoft SQL Server 2008 R2 Database

NUTECH COMPUTER TRAINING INSTITUTE 1682 E. GUDE DRIVE #102, ROCKVILLE, MD WEB: TEL:

Course Outline:

Administering Microsoft SQL Server 2012 Databases

ADMINISTERING MICROSOFT SQL SERVER DATABASES

Administering Microsoft SQL Server Databases

Administering Microsoft SQL Server Databases

Administering Microsoft SQL Server Databases

MCTS Microsoft SQL Server 2005 Implementation & Maintenance

Designing, Optimizing and Maintaining a Database Administrative Solution for Microsoft SQL Server 2008

Upon completion of the program, students are given a full support to take and pass Microsoft certification examinations.

Upgrading Your SQL Server 2000 Database Administration (DBA) Skills to SQL Server 2008 DBA Skills Course 6317A: Three days; Instructor-Led

Administering Microsoft SQL Server Databases 20462C; 5 days

Administering Microsoft SQL Server Databases

Before attending this course, participants should have:

Course 20462C: Administering Microsoft SQL Server Databases

MOC Administering Microsoft SQL Server 2014 Databases

MS Design, Optimize and Maintain Database for Microsoft SQL Server 2008

20462 Administering Microsoft SQL Server Databases

Course: Administering Microsoft SQL Server Databases Overview

MS-10775: Administering Microsoft SQL Server 2012 Databases. Course Objectives. Required Exam(s) Price. Duration. Methods of Delivery.

Below are the some of the new features of SQL Server that has been discussed in this course

Author: Ryan J Adams. Overview. Policy Based Management. Terminology

Microsoft SQL Server 2008 Administrator's Pocket Consultant

Maintaining a Microsoft SQL Server 2008 Database

10775 Administering Microsoft SQL Server Databases

Administering Microsoft SQL Server Databases MOC 20462

AV-005: Administering and Implementing a Data Warehouse with SQL Server 2014

20462C: Administering Microsoft SQL Server Databases

EMC Backup and Recovery for Microsoft SQL Server 2008 Enabled by EMC Celerra Unified Storage

SQL Server 2014

Explain how to prepare the hardware and other resources necessary to install SQL Server. Install SQL Server. Manage and configure SQL Server.

ExecuTrain Course Outline MOC 6231B: Maintaining a Microsoft SQL Server 2008 R2 Database

Administering Microsoft SQL Server Databases

Administering Microsoft SQL Server Databases

10775A Administering Microsoft SQL Server 2012 Databases

form approved June/2006 revised Nov Page 1 of 7

Administering Microsoft SQL Server 2012 Databases

SQL Server for Database Administrators Course Syllabus

Administering Microsoft SQL Server Databases

Administering Microsoft SQL Server 2012 Databases

Server 2008 SQL. Administration in Action ROD COLLEDGE MANNING. Greenwich. (74 w. long.)

Administering Microsoft SQL Server Databases

Microsoft SQL Server 2008 Step by Step

Administering Microsoft SQL Server Databases

Course Syllabus. At Course Completion

Microsoft SQL Server Beginner course content (3-day)

Course Outline: Course 6317: Upgrading Your SQL Server 2000 Database Administration (DBA) Skills to SQL Server 2008 DBA Skills

Implementing a Microsoft SQL Server 2005 Database

Administering Microsoft SQL Server Databases

Course. Overview. Length: 5 Day(s) Published: English. IT Professionals. Level: Type: Method: Delivery. Enroll now (CAL)

Course 6231B: Maintaining a Microsoft SQL Server 2008 R2 Database

SQL Server 2005 Implementation and Maintenance. 50 Cragwood Rd, Suite 350 South Plainfield, NJ 07080

Microsoft SQL Server 2014: MS SQL Server Administering Databases

MS Administering Microsoft SQL Server Databases

6231B: Maintaining a Microsoft SQL Server 2008 R2 Database

Microsoft Administering Microsoft SQL Server Databases

Administering Microsoft SQL Server Databases

Course 20462: Administering Microsoft SQL Server Databases

MODULE FRAMEWORK : Dip: Information Technology Network Integration Specialist (ITNIS) (Articulate to Edexcel: Adv. Dip Network Information Specialist)

Maintaining a Microsoft SQL Server 2008 R2 Database

SQL Server An Overview

Basic knowledge of the Microsoft Windows operating system and its core functionality Working knowledge of Transact-SQL and relational databases

Administering Microsoft SQL Server 2012 Databases

$99.95 per user. SQL Server 2005 Database Administration CourseId: 152 Skill level: Run Time: 30+ hours (158 videos)

General DBA Best Practices

Mind Q Systems Private Limited

SQL Server 2012 Database Administration With AlwaysOn & Clustering Techniques

Administering a Microsoft SQL Server 2000 Database

Administering a Microsoft SQL Server 2000 Database

About database backups

Administrating Microsoft SQL Server 2012 Databases

Microsoft Maintaining a Microsoft SQL Server 2008 Database

ITMT 1074 Course Syllabus

Microsoft Official Courseware

W I S E. SQL Server 2008/2008 R2 Advanced DBA Performance & WISE LTD.

MS SQL Server 2014 New Features and Database Administration

Working with SQL Server Agent Jobs

Database Maintenance Guide

SQL SERVER DEVELOPER Available Features and Tools New Capabilities SQL Services Product Licensing Product Editions Will teach in class room

SQL Server Developer Training Program. Topics Covered

>>Dream, Strive and Achieve Victory>> SQL Server 2005/2008 DBA SSIS and SSRS Training Contact

Lesson Plans Microsoft s Managing and Maintaining a Microsoft Windows Server 2003 Environment

mylittleadmin for MS SQL Server Quick Start Guide

Would-be system and database administrators. PREREQUISITES: At least 6 months experience with a Windows operating system.

SQL Server Training Course Content

SQL Server Database Administrator s Guide

Getting Started Guide

Administering a SQL Database Infrastructure

Administering a SQL Database Infrastructure 20764; 5 Days; Instructor-led

This article Includes:

Transcription:

N N NFGJ FG Index A Accelerated SQL Server 2008, 72, 73 Active/passive configuration,for a cluster, 142 Activity Monitor (AM), 54 Actual execution plan, 308, 311 Add Counters window, in Performance Monitor, 292 ADMINISTER BULK OPERATIONS server permission, 334 Agent Alerts window, 382 Agent XPs, 227 Aggregate functions, 114 Alerts, 233 38 ALTER ANY ASSEMBLY database permission, 342 ALTER ANY CONNECTION server permission, 334 ALTER ANY CREDENTIAL server permission, 334 ALTER ANY DATABASE AUDIT database permission, 342 ALTER ANY DATABASE server permission, 334 ALTER ANY ENDPOINT server permission, 334 ALTER ANY EVENT NOTIFICATION server permission, 334 ALTER ANY LINKED SERVER server permission, 334 ALTER ANY LOGIN server permission, 334 ALTER ANY ROLE database permission, 342 ALTER ANY SCHEMA database permission, 342 ALTER ANY USER database permission, 342 ALTER database permission, 342 ALTER INDEX command, 219 ALTER INDEX Transact-SQL command, 275, 276 ALTER RESOURCES server permission, 334 ALTER server permission, 334 ALTER SERVER STATE server permission, 334 ALTER SETTINGS server permission, 334 ALTER STORED PROCEDURE statement, 112 ALTER TRACE server permission, 334 American National Standards Institute (ANSI), 99 American Standard Code for Information Interchange (ASCII), 99 Analysis Services (SSAS), 60 ANSI_NULLS setting, 84 Asymmetric key, 359 Auditing, 348 57 Audit destination drop-down box, 352 auditing objects, 348 Create Audit dialog box, 350 database audit specification object, 127 28 server audit object, 350 server audit specification object, 352 55 AUTHENTICATE SERVER server permission, 334 Authentication, 327 Authentication mode, 328 Authorization, 328 AUTO_CREATE_STATISTICS, 221 Automation and monitoring SQLCMD connecting to SQL Server, 69, 70 passing variables, 70 Automation and monitoring SQLCMD overview, 69 AUTO_SHRINK option, 215 AUTO_UPDATE_STATISTICS, 221 Automatic statistics gathering, checking the status of, 221 B Back Up Database (Full) task, 244 Back Up Database window, 152, 156, 205 Options page, 156 BACKUP DATABASE database permission, 342 Backup Media drop-down box, 186 Backup_database_generic.sql backup database script, 70 Backups, 151 82. See also Full backups automating the process, 164 76 backing up a copy of the database, 164 compressing, 177 80 designing a backup plan, 180 81 displaying general information about, 197 encrypting files for security, 176 77 full backups, 152 58 logs, 161 testing, 205 6 types of, 151 52 Baseline, 295 401

Batch mode executing script in, 240 41 running PowerShell scripts in, 256 57 BEGIN TRANSACTION statement, 105 BINARY data type, 99 BLOB/LOB data types, 148 Books Online, 67 Built-in functions, 114 Bulkadmin, 333 Bulk-logged model, 161 Business Intelligence Development Studio (BIDS), 41, 60, 68 C Cannon, J. C., 347 Central management server (CMS), 370 Certificate-based encryption, 362 Certificates, 359 Certification, 399 CHAR data type, 99 Character set, 99 Check Database Integrity task, 211 14, 271, 272 74 CHECKDB, 212 Ciphertext, 358 Classifier, 324 Cmdlets, 250 CodePlex, 66, 261 Command-line tools, 69 71 COMMIT TRANSACTION statement, 105 Compact edition, 12 Conferences, 396 Configuration Tools folder, 61 66 Reporting Services Configuration Manager, 63 64 SQL Server Configuration Manager, 64 66 SQL Server Error and Usage Reporting, 61 62 SQL Server Installation Center, 61 Configure Management Data Warehouse Storage page, 299 Configure Management Data Warehouse Wizard, 296 CONNECT server permission, 334 CONNECT SQL server permission, 334 Constraints, 85 87 CHECK, 85 foreign key, 87 NULL, 85 primary key, 86 UNIQUE, 86 CONTROL database permission, 342 CONTROL server permission, 334 CONTROL SERVER server permission, 334 Corrupt system databases, repairing, 119 Covering permissions, 342 CREATE ANY DATABASE server permission, 334 CREATE ASSEMBLY database permission, 342 Create Audit dialog box, 350 CREATE CERTIFICATE T-SQL statement, 362 CREATE DATABASE database permission, 342 CREATE DATABASE DDL statement, 79 CREATE DDL EVENT NOTIFICATION server permission, 334 CREATE ENDPOINT server permission, 335 CREATE PROCEDURE database permission, 342 CREATE PROCEDURE statement, 108 Create Protection Group window, 387 CREATE ROLE database permission, 342 CREATE SCHEMA database permission, 342 CREATE TABLE database permission, 342 CREATE TABLE permission, 344 CREATE TABLE statement, 83 84 CREATE TRACE EVENT NOTIFICATION server permission, 335 CREATE VIEW database permission, 343 Cryptographic API, 358 D Data writing to disk, 119 20 Data Collector, 295 303 data, viewing, 300 308 Disk Usage Summary report, 303 5 Query Statistics History report, 305 8 Server Activity History report, 300 303 setting up, 296 99 Data compression, 147 48 Data compression, leveraging, 325 26 Data Control Language (DCL), 81 Data Definition Language (DDL), 79 Data flow tooltip, 313 Data Manipulation Language (DML), 80 81, 80 81, 308 DELETE statement, 104 INSERT statement, 103 SELECT statement, 100 103 UPDATE statement, 103 4 Data Profiler Viewer, 67 Data protection method selecting, 388 Data striping, 135 Data types, 98 99 Data warehouse, 122 Data, gathering, 1 Database configuring, 145 49 data compression, 147 48 disk volume alignment, 149 Database administrator (DBA) database design and performance improvement, 3 database maintenance, 2 defined, 2 4 documentation, 4 402

need for, 1 2 security and regulatory compliance, 3 Database Administrator (DBA) and authorization, 328 Database Audit Specification dialog box, 356 Database audit specification object, 127 28 Database backup. See Backups Database Backup task, 271 Database DMVs and performance data, 294 Database encryption key (DEK), 363 Database Engine Configuration page, 30 33 Database Engine Tuning Advisor, 68 Database Engine Tuning Advisor (DTA), 287, 308, 320 22, 326 General tab, 321 Recommendations tab, 322 Database integrity, checking, 211 Database maintenance tasks, 2, 211 38 backing up, 211 database integrity, checking, 211 14 indexes, reorganizing/rebuilding, 218 20 restoring, 211 shrinking the database, 214 18 SQL Server agent jobs, creating, 232 33 updating statistics, 220 22 Database Properties window, 159 Database roles, 328 Database security, 337 45 database permissions, 341 database users, 337 fixed database roles, 340 41 flexible database roles, 343 44 schemas, 337 default, 339 four-part naming convention, 339 reassigning schema ownership, 340 right way, 338 wrong way, 337 server functions, 344 45 fn_my_permissions() function, 344 HAS_PERMS_BY_NAME function, 345 Database users, 328, 337 Databases, 117 corrupt system databases, repairing, 119 master database, 117 model database, 118 MSDB database, 118 resource database, 119 tempd database, 117 DATETIME data type, 99 db_accessadmin, 340 db_backupoperator, 340 db_datareader, 341 db_datawriter, 341 db_ddladmin, 341 db_denydatareader, 341 db_denydatawriter, 341 db_owner, 340 db_securityadmin, 340 DBCC CHECKDB command, 122, 272 DBCC CHECKALLOC, 212 DBCC CHECKCATALOG, 212 DBCC CHECKDB, 212, 213, 214 DBCC CHECKTABLE, 212, 214 DBCC SHRINKDATABASE, 215 DBCC SHRINKFILE, 215 DBCC SQLPERF, 216 Dbcreator, 333 DCL statements, 81 DDL statements, 80 Deadlocks, 106 8 DECIMAL data type, 99 DecryptByKey function, 362 DELETE, 343 DENY statement, 343 Deployment Wizard, 60 Design and performance improvement, 3 Developer edition, 11 Device Contents window, 189 Differential backups, 158 restoring, 198 200 Direct attached storage (DAS), 127 28, 130 Disaster recovery, 3 Disaster recovery (DR) plan, 183. 211 Disk Space Requirements page, 29 Disk Usage for Database report, 304 Disk Usage Summary report, 303 5 Disk volume alignment, 149 Diskadmin, 333 DISKPART, 149 Documentation, 4 Documentation and Tutorials folder, 66 67 Microsoft SQL samples overview, 66 SQL Server Books Online, 67 SQL Server tutorials, 67 Downtime, defined, 207 DPM Administrator Console, 387 DTEXEC.exe, 69 Duplexing, 135 Dynamic management functions (DMFs), 294 Dynamic management views (DMVs), 287, 293 95 E Editor window, 310 EncryptByKey function, 361 Encryption, 358 64 Caesar shift cipher, 358 certificate-based, 362 compliance requirements and, 358 database encryption key (DEK), 363 password-based, 359 62 403

primer, 358 transparent data, 363 64 Endpoints, 335 37 Enterprise management features reading resources, 394 Error and Usage Reporting page, 33 Estimated execution plan, 308, 310 Evaluate Policies dialog box, 367 Evaluation edition, 12, 16 34 downloading, 16 installing an instance of SQL Server, 26 34 Database Engine Configuration page, 30 33 Disk Space Requirements page, 29 Error and Usage Reporting page, 33 Features Selection page, 26 Installation Rules page, 33 Instance Configuration page, 28 29 Ready to Install page, 33 34 Server Configuration page, 29 30 SQL Server Installation Center, 17 Events Selection tab, Trace Properties window, 317 EXECUTE AS statement, 363 EXECUTE database permission, 343 Execute Package utility, 67 Execution DMVs and performance data, 294 Execution plans, 287, 308 15 operator properties, 314 using trace to capture, 319 20 Express edition, 12 Express with Advanced Services, 12 Express with Tools, 12 Extended events, 351 EXTERNAL ACCESS server permission, 335 F Features Selection page, 26 Fibre Channel direct attached storage (FC DAS), 130 Fibre Channel HBAs, 132 Fibre Channel SANs, 132, 143 Fibre Channel storage area network (FC SAN), 130 File and filegroup backups, 158 61 File backups, restoring, 204 5 Filegroups, 159 FILELISTONLY command, 195 Files, backing up, 159 Fixed server roles, 332 33 fn_my_permissions() function, 344 Fritchey, Grant, 4 6 Full backups, 152 58 using SQL Server Management Studio, 152 57 using T-SQL, 157 58 Full disaster recovery plan developing, 207 10 establishing, 208 10 large commercial insurance company, 208 gathering information about the business, 207 8 small online retail business, 209 testing, 209 10 FULL OUTER JOIN, 103 Full recovery mode initiating, 162 Full recovery model, 161 Full scans, 289 Functions, 113 14 creating, 113 invoking, 113 system-defined, 114 G General page, Restore Database window, 185 General tab New Job dialog box, 229 GRANT statement, 343 Graphical format, execution plans, 309 Graphical user interface (GUI), 69 H Hands-on labs, 396 Hardware and Software Requirements for Installing SQL Server 2008, 16 Hardware RAID, 139 HAS_PERMS_BY_NAME function, 345 Hash Match operator, 311 Header, defined, 197 Health Insurance Portability and Accountability Act (HIPAA), 3 High availability (HA) requirements, 140 History Cleanup task, 279 HP Transaction Storage Planning Calculator, 140 Hyper-V, 397 I I/O performance, and storage system, 139 41 I/O-related DMVs and performance data, 294 IDE ATA (Integrated Drive Electronics Advanced Technology), 129 IMPERSONATE permission, 345 IMPERSONATE server permission, 335 Import and Export Data Wizard, 68 Index DMVs and performance data, 294 Index Seek operator, 311 Indexes, 218 20 creating, 90 94 404

fragmentation detecting, 218 reasons for, 218 rebuilding, 219 InfiniBand, 130 INFORMATION_SCHEMA, 337 INSERT, 103 INSERT database permission, 343 Installation Rules page, 33 Instance, 288 Instance Configuration page, 28 29 INT data type, 99 Integration Services folder, 67 Data Profiler Viewer, 67 Execute Package utility, 67 iscsi (Internet Small Computer System Interface), 130 iscsi bridging, 132 iscsi SANs, 143 IT Compliance Guide, 371 Itanium (IA64), 10 J Job schedule properties, 269 JOIN statement, 102 K KEY_GUID, 361 L Lab system and practice, establishing, 396 Large database server, storage selection for, 141 LEFT OUTER JOIN, 102 Local users groups, 396 Locate Backup File window, 186 88 Locate Database Files window, 154 Locks defined, 106 Log backups, 161, 162 restoring, 200 203 using Management Studio, 163 using T-SQL, 164 Log monitoring, 222 25 Logical unit numbers (LUNs), 133 Login, 296 Login New dialog box, 330 32 M Maintenance Cleanup task, 281 Maintenance plan authoring environment, Management Studio, 263 Maintenance Plan Wizard, 263, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284 completing, 282 84 starting, 267 Maintenance plans, 256, 258, 263 86 configuring individual tasks, 272 82 Back Up Database (Full) task, 244 Check Database Integrity task, 272 74 History Cleanup task, 279 Maintenance Cleanup task, 281 Rebuild Index task, 276 Reorganize Index task, 275 Select Report Options task, 282 Shrink Database task, 274 75 Update Statistics task, 278 creating, 267 fundamentals, 265 66 job schedule properties, 269 maintenance tasks order of, 271 selecting, 270 modifying an existing plan, 284 specifying plan properties, 268 tasks, 266 Management pack, defined, 374 Manually updating statistics, 221 22 Master database, 117 Medium database server, storage selection for, 141 Microsoft Assessment and Planning (MAP) Toolkit, 13 Microsoft Cluster Service (MSCS), 142 Microsoft Desktop Engine (MSDE), 12 Microsoft SQL Server 2008 folder, 60 Microsoft System Center Operations Manager (SCOM), 53, 373, See also System Center Operations Manager (SCOM) Microsoft.SQLServer.2008.Discovery.mp, 377 Microsoft.SQLServer.2008.Monitoring.mp, 377 Microsoft.SQLServer.Library.mp, 377 Microsoft TechNet, 396 Microsoft Virtual PC 2007, 397 99 Mixed Mode, 328 Model database, 118 Monitoring logs, 222 25 Moore s Law, 127 MSDB database, 118 Multiple objects, selecting withing Object Explorer, 48 Multiple servers managing, 51 53 405

policy-based management (PBM), 53 queries against, 53 Registered Servers window, 51 myconnection variable, 70 mydatabase variable, 70 MyWorkLoad metrics controlled in, 324 N Native Command Queuing (NCQ), 129 NCHAR data type, 99 Nested Loop operator, 311 Nested Loops tooltip, 312 Network attached storage (NAS), 127 28, 133 35 architecture, 134 Network Protocol drop-down box, 336 New Database window, 184 New Job dialog box General tab, 229 Steps tab, 230 New Job Schedule dialog box, 232 window, 173 New Job Step dialog box, 168, 230 general tab, 231 New Query Editor Window, 83 New Query option, CMS, 370 NoExit command, 256 NORECOVERY option, 199 NOT NULL keyword, 100 NULL, 100 NVARCHAR data type, 99 O Object Explorer, 45 48 Object Explorer tree, 265 active connection to local server instance, 75 navigating, 75 76 Object(Instance):Counter format, 288 Objects, 288 ONLINE option, 218 OPEN SYMMETRIC KEY statement, 362 Operations Console finding/resolving an issue using, 381 Options page, Restore Database window, 191 93 Overwrite the existing database (WITH REPLACE) option, 192 Preserve the replication settings (WITH KEEP_REPLICATION) option, 193 Restrict access to the restored database (WITH RESTRICTED_USER) option, 193 P Password-based encryption, 359 62 Payment Card Industry Data Security Standard specification, 347 Payment Card Industry Data Security Standards (PCI DSS), 3 Payment Card Industry Security Standards Council, 347 Performance counters, 288 89 Performance Data Collector (PDC), 55 59 Performance Monitor, 287, 289 93, 290 Performance Tools folder, 68, 316 Database Engine Tuning Advisor, 68 SQL Server Profiler, 68 Performance tuning and optimization, 287 326 Physical backup device, 152 Policy-based management (PBM), 53 Policy-Based Management (PBM), 364 creating policy on a local server, 365 evaluating ther policy, 367 policy, need for, 364 Pools, 323 PowerShell, 69, 71 72, 73, 211 cmdlets, 250 components, 249 50 configuring for use with SQL Server, 247 49 defined, 239 executing a script interactively, 252 56 execution policy, specifying, 252 provider, 250 running from SQL Server Agent, 257 58 running scripts from maintenance plans, 258 59 running scripts in batch mode, 256 57 scripting in, 247 61 snap-ins, 249, 250 starting from SQL Server Management Studio, 251 starting in interactive mode, 250 52 using the integrated scripting environment, 259 61 powershell.exe, 260 Principal, 330 Private key, 359 Pro SQL Server 2008 Reporting Services, 122 Pro SQL Server Disaster Recovery (Leuttkehoelter), 211 Processadmin, 332 Production folder, 370 Professional Association for SQL Server (PASS), 396 website, 396 Properties window, 314 406

Protection group, 387 selecting members for, 387 Public key, 359 Public server role, 332 Public SQL Server websites, 395 Q Query Details report, 307 8 Query Editor, 48, 227 Query Editor,SQL Server Management Studio, 242 Query optimization, 117, 308 Query Optimizer, 117 Query Statistics History report, 305 8 Query tree, 117 QUOTED_IDENTIFIER setting, 84 R RAID, 135 38 hardware/software, 139 RAID 0 (striping), 135 RAID 1 (mirroring and duplexing), 135 RAID 10 (stripe of mirrors), 135 RAID 5 (striping with parity), 137 Ready to Install page, 33 34 Rebuild Index task, 276 defined, 218 REBUILD option, ALTER INDEX command, 219 Redundancy, 141 45 Redundant Array of Independent Disk (RAID) technology, 135 38 REFERENCES database permission, 343 Referential integrity, 87 Rehak, Roman, 6 7 Reliability and Performance Monitor suite, 289 91 Reorganize Index task, 275 defined, 218 REPAIR_ALLOW_DATA_LOSS option, 214 REPAIR_FAST option, 214 REPAIR_REBUILD option, 214 Reporting Services Configuration Manager, 63 64 Resource database, 119 Resource Governor, 322 and performance data, 295 Properties window, 324 Resource management, 322 26 Resource Governor, 323 26 Resource pool, 323 RESTORE command, 157 Restore Database window, 184 RESTORE FILELISTONLY command, 198 RESTORE HEADERONLY command, 198 RestoreTest database, 184 Restoring a database, 183 210 differential backups, 198 200 file backups, 204 5 from the Management Studio GUI, 183 91 log backups, 200 203 using T-SQL, 193 creating database copy, 193 95 executing a simple restore, 193 retrieving logical and physical file names, 195 97 REVERT statement, 362 RIGHT OUTER JOIN, 103 ROLLBACK IMMEDIATE option, 122 ROLLBACK statement, 105 ROLLBACK TRANSACTION statement, 105 S Salary information, 4 SalesOrderheader.PK_SaleOrderHeaderId, 311 Sarbanes-Oxley (SOX), 3 Sarbanes-Oxley (SOX) Act, 347 SATA (Serial Advanced Technology Attachment), 129 Scalar functions, 114 Schemas, 337 Script Action to New Query Window, 78 Scripted install, 25 SCSI (Small Computer System Interface), 129 Secondary data files, 119 Securables, 335 Security page, Server Properties dialog box, 328 Securityadmin, 332 Security-related functions, 114 Select Backup Destination dialog box, 154 Select Configuration Task page, 299 SELECT database permission, 343 SELECT permission, 343 Select Report Options task, 282 Serial attached SCSI (SAS), 129 Server Activity History report, 300 303 Server audit specification object, 352 55 Server Authentication, 328 Server configuration validating, 364 Server Configuration page, 29 30 Server permissions, 333 35 Server roles, 332 33 Server Security Policy policy, 367 Serveradmin, 332 Server-side trace, 315 Service-level agreements (SLAs), 140 Services SQL Server, 120 Setupadmin, 333 Shared components, 27 Short-term goals selecting, 389 407

SHOWPLAN database permission, 343 Shrink Database task, 274 75 SHRINKDATABASE command, 274 SHUTDOWN server permission, 335 Single-user mode, 122 23 placing an already-started database into, 122 starting SQL Server in, 123 26 Small database server, storage selection for, 141 Software RAID, 139 sp_spaceused stored procedure, 217 Specify Backup window, 186 SQL Active Directory Helper service, 120 SQL Data Management Objects (SQL-DMO), 375 SQL Full-Text Engine Filter Daemon Launcher service, 121 SQL logins, 31 SQL Server connecting to, 226 27 deadlocks, 106 8 editions, 10, 12 evaluation edition, 16 34 in the enterprise, 373 94 installing, 12 16 assessing the environment, 13 hardware/software requirements, 16 Integration Services, 67 internals, 117 26 multiple servers, managing, 51 53 performance, measuring, 287 95 resources, 40 Server editions, 10 choosing the right edition, 15 Enterprise edition, 11 Standard edition, 11 services, 120 setting up and installing, 9 specialized editions, 11 compact edition, 12 Developer edition, 11 evaluation edition, 12 Express edition, 12 Web edition, 11 Workgroup edition, 11 terminology, 12 tuning queries, 308 22 tutorials, 67 upgrading, 35 38 SQL Server 2008, 1 8, 117 auditing, 348 57 selecting a storage system for, 139 45 Start menu, 60 SQL Server 2008 Books Online, 261 SQL Server 2008 Query Performance Tuning Distilled, 73 SQL Server 2008 Setup, 249 SQL Server 2008 virtual labs, 73 SQL Server Agent, 121, 225, 264, 265, 266, 268, 269, 279 creating an agent job, 227 33 running PowerShell commands from, 257 viewed through Management Studio, 164 SQL Server Agent job scheduler, 112 SQL Server alert Options page, 237 Response page, 236 SQL Server Analysis Services, 122 SQL Server Authentication radio button, 331 SQL Server Books Online, 16, 67, 73, 330, 342, 395 SQL Server Browser service, 121 SQL Server Central, 395 SQL Server Configuration Manager, 64 66 SQL Server Customer Advisory Team, 396 SQL Server Error and Usage Reporting, 61 62 SQL Server error log, 224 SQL Server Installation Center, 17 25, 61, 248 Advanced tab, 24 Installation tab, 20 Maintenance tab, 21 Options tab, 25 Planning tab, 17 Resource tab, 23 Tools tab, 22 SQL Server instance security, 330 37 endpoints, 335 37 server permissions, 333 35 server roles, 332 33 SQL Server login, 330 37 SQL Server Integration Services, 67, 121 SQL Server Integration Services (SSIS), 23, 264 SQL Server Log File Viewer, 225 SQL Server Login creating, 329 37 Login New dialog box, 330 SQL Server maintenance plan tasks, 265 SQL Server maintenance plans. See Maintenance plans SQL Server management pack getting familiar with, 378 81 SQL Server Management Studio (SSMS), 41 53, 75, 296, 330 connecting to the SQL Server, 41 43 document windows, 50 issuing queries using, 44 48 log events, 224 monitoring server activity, 53 59 Activity Monitor (AM), 54 Performance Data Collector (PDC), 55 59 reports, 58 59 multiple servers, 51 53 New Database dialog box, 77 Open Management Studio, 309 Query Editor, 242 408

results pane, 51 writing the query, 48 50 SQL Server operating system DMVs and performance data, 295 SQL Server Performance Counters, 289 SQL Server PowerShell cmdlets, 250 provider, 250 snap-ins, 249 SQL Server Profiler, 68, 315 19 SQL Server Reporting Services, 68, 121 SQL Server SCOM management pack, 375 78 monitoring database free space with, 381 SQL Server management views available from, 379 80 starting SQL Server Agent from, 384 SQL Server security, 327 45 authentication, 327 authentication mode, 328 authorization, 328 server instance vs. the database, 328 SQL Server Security web site, 371 SQL Server service, 121 SQL Server Setup Team, 38 39 SQL Server Volume Shadow Copy Service (VSS), 121 SQL Server World Wide Users Group, 395 SQL Skills site, 395 SQL Trace, 68 SQLCMD, 126 connecting to SQL Server, 69, 70 defined, 69, 239 overview, 69 passing variables, 70 scripting, 239 46 backing up a database, 244 executing commands interactively, 239 40 executing script in batch mode, 240 41 generating scripts in SQL Server Management Studio, 245 46 in Power Shell, 247 61 testing scripts, 242 43 sqlcmd -E -i backup_databases.sql command, 70 SQLCMD utility, 239, 243 sqlps utility, 250 sqlps.exe, 247 SSIS Control Flow toolbox, 264 SSMS dialog box scripting the actions of, 76 79 Steps tab New Job dialog box, 230 Storage area network (SAN), 127 28, 131 32 architecture, 131 Storage management strategies, 127 50 RAID, 135 38 storage system interfaces, 129 30 storage system types, 130 35 direct attached storage, 130 network attached storage (NAS), 133 35 storage area network (SAN), 131 32 storage systems, 127 28 Storage system interfaces, 129 30 Fibre Channel direct attached storage (FC DAS), 130 Fibre Channel storage area network (FC SAN), 130 IDE ATA, 129 InfiniBand, 130 iscsi (Internet Small Computer System Interface), 130 SATA (Serial Advanced Technology Attachment), 129 SCSI (Small Computer System Interface), 129 serial attached SCSI (SAS), 129 Storage systems, 127 28 selecting for SQL Server 2008, 139 45 I/O performance, 139 41 redundancy, 141 45 Stored procedures, 108 12 creating using templates, 109 12 modifying, 112 system, 112 Striping stripe of mirrors (RAID 10), 135 with parity (RAID 5), 137 Striping, 135 Subplans, 268 Symmetric keys, 358 sys, 337 sys.dm_os_performance_counters DMV, 293 94 Sysadmin, 332 System administrator and compliance, 357 System Center Configuration Manager 2007 R2, 373 System Center Data Protection Manager (DPM), 373, 385 94 architecture, 386 databases recovering, 392 94 DPM Administrator Console, 387 DPM reports executing, 390 protection group, 387 System Center Essentials, 374 System Center Operations Manager (SCOM), 352, 373 75 core products, 373 74 defined, 373 SQL Server management pack for, 375 System Center Operations Manager Operations Console, 374 System Center Virtual Machine Manager 2008, 373 System performance counters, 288 89 System stored procedures, 112 System-defined functions, 114 409

T Tables, 75 95 adding constraints, 85 87 altering, 84 creating, 81 84 CREATE TABLE statement, 83 84 from the table designer, 81 dropping, 88 90 Tagged Command Queuing (TCQ), 129 Tail, 191, 204 TAKE OWNERSHIP database permission, 343 TAKE OWNERSHIP server permission, 335 TechNet, 396 tempdb database, 32, 117 Templates stored procedures, 109 12 Testing backups, 205 6 Testing SQLCMD scripts, 242 43 TestLogin login, 332 Text execution plans, 309 To a point in time option, 185 To Database drop-down list, 185 Trace defined, 315 using to capture execution plans, 319 20 Trace data,working with, 318 19 Trace Properties window Events Selection tab, 317 General tab, 316 Transaction DMVs and performance data, 295 TRANSACTION ISOLATION statement, 106 Transactions, 104 8, 161 deadlocks, 106 8 execution, 104 transaction isolation, 105 6 Transact-SQL (T-SQL), 97 116, 115 Data Control Language (DCL), 81 Data Definition Language (DDL), 79 Data Manipulation Language (DML), 80 81 data types, 98 99 primer, 79 81 VetClinic sample database, 97 98 Transact-SQL command, 240 Transparent data encryption, 363 64 Transparent data encryption (TDE), 363 Triggers, 114 15 Tripp, Kimberly, 395 Tuning queries, 308 22 execution plans, 308 15 U Unicode, 99 UPDATE database permission, 343 UPDATE statement, 103 4 Update Statistics task, 278 UPDATE STATISTICS Transact-SQL command, 222, 278 Updating statistics, 220 22 automatic statistics gathering, checking the status of, 221 manually, 221 22 V VARBINARY data type, 99 VARCHAR data type, 99 VARDECIMAL, 147 VeriSign, 359 VetClinic sample database revisit, 97 98 VIEW ANY DATABASE server permission, 335 VIEW ANY DEFINITION server permission, 335 VIEW DEFINITION server permission, 335 VIEW SERVER STATE server permission, 335 Virtual Hard Disk Location page, 398 Virtual machine (VM), creating, 397 99 Visual Studio 2008, 60, 68 Volume Shadow Copy Service (VSS), 121 W Web edition, 11 Windows Application log, 222 Windows Audit Collection Services, 352 Windows event log, filtering, 223 Windows Hardware Quality Lab (WHQL) certified, 134 Windows PowerShell, 60 Windows PowerShell 1.0, 249 console, 260 Windows Scheduler, 256 Workgroup edition, 11 Workload, 324 XYZ XML execution plan, 315 XML format, execution plans, 309 410