Index 667 data collection roles and permissions, 594 system data, 593 map logins, 592 performance data collector, configuration, 596 reports, 595 roles and permissions, 592 manual failover, 204 master database, 70 DMK and certificate, 173 restoring, 283 steps to restore, 283 max degree of parallelism (MAXDOP), 106 Max server memory (MB), 105 MDW (Management Data Warehouse), 291 merge replication, 230 components, 407 dynamic filters, 412 SQL Server 2008/2005/2000, 420 MERGE statement, 17 message queuing, 520 message type contracts, 528–529 CREATE MESSAGE TYPE command, 525 validation options, 525–527 Microsoft Cluster Service (MSCS) clustered using, 223 Windows Clustering. See Windows Clustering Microsoft Management Console (MMC), 33 Microsoft Message Queue (MSMQ), 520 Min server memory (MB), 105 MIRROR_ADDRESS parameter, 540 mixed mode authentication selecting, 138 SQL Server logins and password guidelines, 139–140 MMC (Microsoft Management Console), 33 model database, 70 MSDASQL Provider provider properties for, 340–341 MSDTC, in clustered environment, 225–226 Multi-Dimensional Expressions (MDX), 561 multiple instances install and connect to, 90 performance considerations, 89 N named instances, 88. See also default instance Named Pipes, 97 network service account, 61, 155 New Linked Server dialog box in, 351 NOINDEX option, 268 NO_INFOMSGS, 269 nonclustered indexes, compression of, 257 O object explorer connection to Integration Services instance using, 374–375 showing mirrored databases, 211 object permissions, 144–145 OLE DB provider, 340 OLTP (online transaction processing), 560 ongoing maintenance using Database Maintenance Plans, 285–287 using SQL Server Agent, 283–285 online analytical processing (OLAP), 560 ONLINE option, 264 668 Index online restore, 281 online transaction processing (OLTP), 560 OPENDATASOURCE function basic syntax for, 348 querying data with, 349 OPENQUERY function basic syntax of, 353 querying data with, 354 OPENROWSET function basic syntax of, 343 for bulk loading data, 347 copying data with, 346 database.schema.object identifier, 343 modifying data with, 346 problem with, 353 querying data, 344–345 table-valued function, 342 XML file, 347–348 Optimal execution plan, 638 outage costs, 74 P page compression, 258 parallelism, definition of, 106 partitioning, 37 filegroups, 582–583 horizontal partitioning, 581–582 moving data, options for, 585–586 partition function, 584 partition key, selection, 583–584 partition scheme, mapping, 584–585 SQL Server 7.0, 581 vertical partitioning, 582 partition table parallelism, 37 “pass-through” query, 348 peer-to-peer replication configuration of, 416 conflict resolution, mechanism, 419 features of, 404–405 layout of, 404 merge replication, difference, 406–407 peer originator id, 417 setting up, 416 permissions best match for, 144 cross-database ownership and, 143 granting, 143 for securables, 142 service accounts and, 155–157 PHYSICAL_ONLY option, 269 Policy-Based Management components of conditions and policies, 288 evaluation modes, 288–289 managed targets and facets, 287 configuration of SQL Servers, 289–290 implementation by organizations, 290 using SQL Server Management Studio, 289 Precedence Constraint, 370 prefix compression, 258 primary filegroup, 73 principle of least privilege, 131–132 publication type, selection, 409–410 public key certificate. See certificate publisher configuration, 408–409 publisher, DDL statements, 420 Q queues dbo schema, 529 dbo.YourProcedure, 531–532 SQL Service Broker, 530, 532 R RAID disks, 74 RC4 algorithm, 538 Index 669 recovery models, 231, 617 and bulk operations AdventureWorks2008 database, 335 bulk load, 335 minimal logging, 334–335 transaction log backup, 333–334 full and bulk-logged, 275 minimally logged operations, 617 production environments, 618 simple, 274–275 for SQL Server 2008 databases, 274 Remus’s technique, 523 REPAIR_ALLOW_DATA_LOSS option, 269 REPAIR_FAST option, 269 REPAIR_REBUILD option, 269 replication basic principle of, 230 merge and transaction, 230 troubleshooting of, 231 Reporting Services, 32, 44–46 resource database, 70 resource group clustered, creating, 217 disk selection, 218–219 domain groups, 220–222 network configuration, 219–220 definition of, 214 resource managers, distributed transactions between, 354 RETENTION flag, 530 row compression, 258 S schemas. See database schemas security certifications C2 auditing, 107 Common Criteria Compliance, 107 security settings, 414 SELECT statement, 344 server audit specification, creating, 146 server cluster configuration, considerations for, 66–67 Server Editions. See SQL Server 2008 Enterprise Edition; SQL Server 2008 Standard Edition server-level roles, 127 adding SQL Server login to, 145 fixed, 129 log-in permissions, 145 server-side tracing busy production servers or machines, 567 methods, 567 server slowdown, 561 service accounts configuring, 60 local. See local service accounts and permissions, 155–157 startup states of, 61 Service tab, 93 Shared Memory, 96 Ship Transactions Logs, 199–200 side-by-side installation and postupgrade activities database compatibility level verification, 69–70 installation files reviews, 68 vs. upgrade scenario, 65–66 SIMPLE recovery model, 334 Simple recovery model, 275 SMK backup, 174 SMO method, 357 SOAP, open-source developer, 496–497 social security numbers decrypting, 179 encrypting, 178–179 670 Index sparse columns and column sets, 260–261 creating, 260 enabling a column as, 11 filtered indexes created on, 262 sp_browsereplcmds, 403 sp_configure command advanced options using, 103–104 backup compression default option with, 108 output with default values, 103 vs. SQL Server Management Studio (SSMS), 102 sp_configure filestream_access_level, values for, 95 sp_estimate_data_compression_savings stored procedure, 259 spGetThresholds, CREATE PROCEDURE code, 485 sp_repladdcolumn, 420 sp_repldropcolumn, 420 sp_trace_create statement, 567 SQLAGENT.OUT file, 447 sqlcmd, 445 SQL code enabling CDC, 148 enabling column as sparse column, 11 SQLDiag, 570 SQL ERRORLOG file, 444 SQL high-availability options. See high-availability options SQL Management Objects (SMO) method, 357 SQL profiler event selection, 463 SQL profiler running trace, 571 SQL Server encryption algorithms supports, 174 encryption keys used in, 175–176 fully qualified name of object. See fully qualified object names replication. See replication roles. See database-level roles; server-level roles Server Authentication Properties, 139 SQL Server 2000 DDL replication, 410 files directory for, 72 Merge Replication, 420 partition, 581 running BPA for, 50 SQL Server 2005 ALTER CONTRACT command, 528 database mirroring in. See database mirroring DDL Replication, 419–420 DMVs, 430 files directory for, 72 HTTP endpoints, 484 Proxy accounts, 448 running BPA for, 50 server-side tracing, 567 SQL Service Broker (SSB), 520, 523 Surface Area Configuration Tool, 150 table partitions, 581 updatable subscriptions, 403 SQL Server 2008 adding filters, 412 agent job location, 452 job step types, 448 proxy account, creation, 449 proxy account, job step properties, 451 agent issues, 447–454 backup types available with, 275–277 blocking, 572 CDC functionality. See CDC (Change Data Capture) certificates functionality, 176 command, 445 Index 671 components of, 32–33 compressed backup feature of advantages of, 5 Copy Only Backup option, 6–7 concurrency issues, 446–447 configuration manager, 458–459 CPU and memory, 597 CPU load, 460, 538 create views of, 634 CREATE VIEW Statement, 635 creating functions, 640–641 creating triggers, 641–643 databases Bulk-Logged recovery model, 618 constraints, types of, 623–625 CREATE INDEX statement, 626 creating indexes, 625–626 creating tables, 619–621 Creating User-Defined Data Types (UDFs), 621–622 database recovery model, 617–618 index options, 627–628 data type available in. See data types deadlocks, 573, 576–577 default SQL profiler event selection, 462 development improvements in LINQ support, 16 MERGE statement, 17 DMF. See DMF (Declarative Management Framework) DMVs, 578 dynamic filters, data, 411 EKM. See Extensible Key Management (EKM) encryption enhancements, TDE, 12 ERRORLOG file, 446, 455–456, 458 failed job execution, 454 filegroup supports of, 73 files directory for, 71–72 Free Editions of, 35 Full-Text Engine, 630 HTTP endpoints, 484–485 installation. See Installation, of SQL Server 2008 job step history, 453 lock compatibility matrix, 574–575 lock escalation, 574 locking, 571–572 Management Data Warehouse (MDW), 587 multiuser data-driven applications, 560 object explorer, 456–457 ongoing maintenance. See ongoing maintenance optimal performance, 560 perfmon, 428 performance data collection, 586 performance enhancements in, 12 data collection, 15 freeze plan, 14 performance data management and Resource Governor, 12 Policy-Based Management feature. See Policy-Based Management Profiler, 460, 561 feature of, 568 monitor for deprecated features, 461 performance problems, monitor for, 460 trace definition creation, 567 profiler application, 463 IO load, 466 long running queries, 464 performance monitor, 465–466 physical disk counters, 465 trace setting, 463–464 publication, subscriber types, 410 publisher articles, 411–412 query response time, 560 . 344 server audit specification, creating, 146 server cluster configuration, considerations for, 66–67 Server Editions. See SQL Server 2008 Enterprise Edition; SQL Server 2008 Standard Edition server- level. roles; server- level roles Server Authentication Properties, 139 SQL Server 2000 DDL replication, 410 files directory for, 72 Merge Replication, 420 partition, 581 running BPA for, 50 SQL Server. 420 sp_trace_create statement, 567 SQLAGENT.OUT file, 447 sqlcmd, 445 SQL code enabling CDC, 148 enabling column as sparse column, 11 SQLDiag, 570 SQL ERRORLOG file, 444 SQL high-availability options.