فهرست زیر ترتیب، سلسلهمراتب و شماره صفحههای چاپشده در کتاب را حفظ میکند.
درباره نویسندهAbout the Authorxix
درباره داور فنیAbout the Technical Reviewerxxi
قدردانیهاAcknowledgmentsxxiii
مقدمهIntroductionxxv
بخش I: نصب و پیکربندیPart I: Installation and Configuration1
فصل 1: برنامهریزی استقرارChapter 1: Planning the Deployment3
نسخهها و مدلهای مجوزEditions and License Models3
ملاحظات سختافزاریHardware Considerations6
تعیین حداقل نیازمندیهای راهبردیSpecifying Strategic Minimum Requirements7
ذخیرهسازیStorage7
ملاحظات سیستمعاملOperating Systems Considerations17
پیکربندی سیستمعاملConfiguring the Operating System18
تنظیم Power PlanSetting the Power Plan18
بهینهسازی برای سرویسهای پسزمینهOptimizing for Background Services18
اعطای User RightهاAssigning User Rights19
انتخاب قابلیتهاSelecting Features22
سرویس Database EngineDatabase Engine Service23
Analysis ServicesAnalysis Services24
Machine Learning ServerMachine Learning Server24
Data Quality ClientData Quality Client25
Client Connectivity ToolsClient Connectivity Tools25
Integration ServicesIntegration Services25
سازگاری عقبرو ابزارهای کلاینتClient Tools Backward Compatibility25
Client Tools SDKClient Tools SDK26
Distributed Replay ControllerDistributed Replay Controller26
Distributed Replay ClientDistributed Replay Client26
SQL Client Connectivity SDKSQL Client Connectivity SDK26
Master Data ServicesMaster Data Services27
جمعبندیSummary27
فصل 2: نصب گرافیکیChapter 2: GUI Installation29
Installation CenterInstallation Center29
زبانه PlanningThe Planning Tab29
زبانه InstallationThe Installation Tab31
زبانه MaintenanceThe Maintenance Tab32
زبانه ToolsThe Tools Tab34
زبانه ResourcesThe Resources Tab35
زبانه AdvancedThe Advanced Tab36
زبانه OptionsThe Options Tab39
نصب یک نمونه مستقل Database EngineInstalling a Stand-Alone Database Engine Instance39
گامهای آمادهسازیPreparation Steps40
صفحه Feature SelectionThe Feature Selection Page45
صفحه Instance ConfigurationThe Instance Configuration Page48
انتخاب Service AccountهاSelecting Service Accounts50
انتخاب CollationChoosing the Collation53
فراهمسازی امنیت InstanceProvisioning Instance Security59
پیکربندی InstanceConfiguring the Instance61
پیکربندی Distributed ReplayConfiguring Distributed Replay67
تکمیل نصبCompleting the Installation68
جمعبندیSummary70
فصل 3: نصب Server CoreChapter 3: Server Core Installation73
نصب یک InstanceInstalling an Instance73
پارامترهای الزامیRequired Parameters74
پارامتر RoleRole Parameter77
نصب پایهBasic Installation77
Smoke TestهاSmoke Tests79
عیبیابی نصبTroubleshooting the Installation82
پارامترهای اختیاریOptional Parameters85
Product UpdateProduct Update89
استفاده از Config FileUsing a Config File91
روالهای نصب خودکارAutomatic Installation Routines95
بهبود روال نصبEnhancing the Installation Routine96
آمادگی ProductionProduction Readiness98
جمعبندیSummary100
فصل 4: نصب روی سیستمعاملهای ناهمگونChapter 4: Installation on Heterogeneous Operating Systems101
نصب SQL Server روی LinuxInstalling SQL Server on Linux101
نصب دستی SQL ServerInstalling SQL Server Manually102
پیکربندی SQL ServerConfiguring SQL Server105
نصب بدون مداخلهUnattended Installation108
نصب SQL Server در Docker ContainerInstalling SQL Server in a Docker Container111
اجرای Image ارائهشده توسط MicrosoftRunning a Microsoft-Supplied Docker Image111
ساخت Docker Image ساده برای SQL ServerCreating a Simple Docker Image for SQL Server113
ساخت Docker Image قابل پیکربندی برای SQL ServerCreating a Configurable Docker Image for SQL Server119
پشتیبانی KubernetesKubernetes Support125
جمعبندیSummary125
فصل 5: پیکربندی InstanceChapter 5: Configuring the Instance127
پیکربندی InstanceInstance Configuration127
استفاده از sp_configureUsing sp_configure127
پیکربندی پردازنده و حافظهProcessor and Memory Configuration129
Trace FlagهاTrace Flags141
Portها و FirewallهاPorts and Firewalls146
فرایند ارتباطProcess of Communication146
Portهای موردنیاز SQL ServerPorts Required by SQL Server148
پیکربندی پورتی که Instance روی آن Listen میکندConfiguring the Port That the Instance Will Listen On149
پایگاههای داده سیستمیSystem Databases152
mssqlsystemresource (Resource)mssqlsystemresource (Resource)152
MSDBMSDB153
MasterMaster153
ModelModel154
TempDBTempDB154
Buffer Pool ExtensionBuffer Pool Extension159
Hybrid Buffer PoolHybrid Buffer Pool161
جمعبندیSummary162
بخش II: مدیریت پایگاه دادهPart II: Database Administration163
فصل 6: پیکربندی پایگاه دادهChapter 6: Database Configuration165
ذخیرهسازی دادهData Storage165
FilegroupهاFilegroups166
FILESTREAM FilegroupهاFILESTREAM Filegroups170
Memory-Optimized FilegroupهاMemory-Optimized Filegroups177
راهبردهای Filegroup ساختیافتهStrategies for Structured Filegroups180
راهبردهای Memory-Optimized FilegroupStrategies for Memory-Optimized Filegroups182
نگهداری File و FilegroupFile and Filegroup Maintenance183
افزودن FileAdding Files183
گسترش FileExpanding Files186
کوچککردن FileShrinking Files187
Database Scoped ConfigurationهاDatabase Scoped Configurations190
نگهداری LogLog Maintenance191
Recovery ModelRecovery Model192
تعداد Log FileLog File Count193
کوچککردن LogShrinking the Log194
Log FragmentationLog Fragmentation195
جمعبندیSummary202
فصل 7: بهینهسازی جدولهاChapter 7: Table Optimizations205
Table PartitioningTable Partitioning205
مفاهیم PartitioningPartitioning Concepts206
پیادهسازی PartitioningImplementing Partitioning209
پایش جدولهای PartitionشدهMonitoring Partitioned Tables216
Sliding WindowsSliding Windows218
Partition EliminationPartition Elimination221
Table CompressionTable Compression223
Row CompressionRow Compression224
Page CompressionPage Compression225
Columnstore CompressionColumnstore Compression227
پیادهسازی CompressionImplementing Compression228
Memory-Optimized TablesMemory-Optimized Tables232
DurabilityDurability233
ایجاد و مدیریت Memory-Optimized TableهاCreating and Managing Memory-Optimized Tables233
پروفایل PerformancePerformance Profile236
Table Memory Optimization AdvisorTable Memory Optimization Advisor240
Natively Compiled ObjectsNatively Compiled Objects241
جمعبندیSummary244
فصل 8: Indexها و StatisticsChapter 8: Indexes and Statistics245
Clustered IndexهاClustered Indexes245
جدولهای بدون Clustered IndexTables Without a Clustered Index246
جدولهای دارای Clustered IndexTables with a Clustered Index247
Cluster کردن Primary KeyClustering the Primary Key248
مدیریت Clustered IndexهاAdministering Clustered Indexes249
Nonclustered IndexهاNonclustered Indexes253
Covering IndexهاCovering Indexes254
مدیریت Nonclustered IndexهاAdministering Nonclustered Indexes255
Filtered IndexهاFiltered Indexes260
Indexهای کاربردهای تخصصیIndexes for Specialized Application261
Columnstore IndexهاColumnstore Indexes261
Clustered Columnstore IndexهاClustered Columnstore Indexes263
Nonclustered Columnstore IndexهاNonclustered Columnstore Indexes265
In-Memory IndexهاIn-Memory Indexes266
نگهداری IndexهاMaintaining Indexes272
Missing IndexهاMissing Indexes273
Index FragmentationIndex Fragmentation275
عملیات Resumable IndexResumable Index Operations280
Partitioned IndexهاPartitioned Indexes283
StatisticsStatistics284
Filtered StatisticsFiltered Statistics286
Incremental StatisticsIncremental Statistics287
مدیریت StatisticsManaging Statistics287
جمعبندیSummary290
فصل 9: سازگاری پایگاه دادهChapter 9: Database Consistency293
خطاهای ConsistencyConsistency Errors293
درک خطاهای ConsistencyUnderstand Consistency Errors293
تشخیص خطاهای ConsistencyDetecting Consistency Errors295
خرابی پایگاههای داده سیستمیSystem Database Corruption304
DBCC CHECKDBDBCC CHECKDB308
بررسی خطاهاChecking for Errors308
رفع خطاهاFixing Errors313
Emergency ModeEmergency Mode315
سایر فرمانهای DBCC برای CorruptionOther DBCC Commands for Corruption318
Consistency Check در VLDBهاConsistency Checks on VLDBs323
DBCC CHECKDB با PHYSICAL_ONLYDBCC CHECKDB with PHYSICAL_ONLY324
Backup با CHECKSUM و DBCC CHECKALLOCBacking Up WITH CHECKSUM and DBCC CHECKALLOC324
تقسیم WorkloadSplitting the Workload324
انتقال Workload به Secondary ServerOffloading to a Secondary Server325
جمعبندیSummary325
بخش III: امنیت، تابآوری و مقیاسدهی WorkloadهاPart III: Security, Resilience, and Scaling Workloads327
فصل 10: مدل امنیت SQL ServerChapter 10: SQL Server Security Model329
سلسلهمراتب امنیتSecurity Hierarchy329
پیادهسازی امنیت سطح InstanceImplementing Instance-Level Security332
Server RoleهاServer Roles334
LoginهاLogins337
اعطای PermissionهاGranting Permissions340
پیادهسازی امنیت سطح DatabaseImplementing Database-Level Security341
Database RoleهاDatabase Roles341
SchemaهاSchemas345
ایجاد و مدیریت Contained UserهاCreating and Managing Contained Users348
پیادهسازی امنیت سطح ObjectImplementing Object-Level Security351
Server AuditServer Audit352
ایجاد Server AuditCreating a Server Audit353
ایجاد Server Audit SpecificationCreating a Server Audit Specification356
فعالسازی و فراخوانی AuditهاEnabling and Invoking Audits358
Database Audit SpecificationهاDatabase Audit Specifications359
ممیزی AuditAuditing the Audit364
گزارشهای امنیتیSecurity Reports365
SQL Data Discovery and ClassificationSQL Data Discovery and Classification365
Vulnerability AssessmentVulnerability Assessment367
جمعبندیSummary369
فصل 11: رمزنگاریChapter 11: Encryption371
سلسلهمراتب EncryptionEncryption Hierarchy371
مفاهیم EncryptionEncryption Concepts371
مفاهیم Encryption در SQL ServerSQL Server Encryption Concepts372
Transparent Data EncryptionTransparent Data Encryption377
پیادهسازی TDEImplementing TDE378
مدیریت TDEManaging TDE384
مدیریت Cell-Level EncryptionManaging Cell-Level Encryption386
دسترسی به داده رمزنگاریشدهAccessing Encrypted Data391
Always EncryptedAlways Encrypted392
پیادهسازی Always EncryptedImplementing Always Encrypted394
مدیریت KeyهاAdministering Keys403
جمعبندیSummary407
فصل 12: Backup و RestoreChapter 12: Backups and Restores409
مبانی BackupBackup Fundamentals409
Recovery ModelهاRecovery Models409
تغییر Recovery ModelChanging the Recovery Model412
انواع BackupBackup Types415
Backup MediaBackup Media416
راهبردهای BackupBackup Strategies418
فقط Full BackupFull Backup Only419
Full و Transaction Log BackupFull and Transaction Log Backups419
Full، Differential و Transaction Log BackupFull, Differential, and Transaction Log Backups420
Filegroup BackupهاFilegroup Backups420
Partial BackupPartial Backup421
تهیه Backup از DatabaseBacking Up a Database421
Backup در SSMSBacking Up in SQL Server Management Studio421
Backup با T-SQLBacking Up via T-SQL424
Restore یک DatabaseRestoring a Database431
Restore در SSMSRestoring in SQL Server Management Studio431
Restore با T-SQLRestoring via T-SQL436
Restore تا نقطهای از زمانRestoring to a Point in Time441
Restore فایلها و PageهاRestoring Files and Pages445
Restore یک FileRestoring a File446
Restore یک PageRestoring a Page448
Piecemeal RestoreهاPiecemeal Restores451
جمعبندیSummary454
فصل 13: مفاهیم High Availability و Disaster RecoveryChapter 13: High Availability and Disaster Recovery Concepts457
مفاهیم AvailabilityAvailability Concepts458
سطح AvailabilityLevel of Availability458
Recovery Point Objective و Recovery Time ObjectiveRecovery Point Objective and Recovery Time Objective461
هزینه DowntimeCost of Downtime462
طبقهبندی Standby ServerهاClassification of Standby Servers463
فناوریهای High Availability و RecoveryHigh Availability and Recovery Technologies464
AlwaysOn Failover ClusteringAlwaysOn Failover Clustering464
AlwaysOn Availability GroupsAlwaysOn Availability Groups471
Log ShippingLog Shipping477
ترکیب فناوریهاCombining Technologies480
جمعبندیSummary483
فصل 14: پیادهسازی AlwaysOn Availability GroupsChapter 14: Implementing AlwaysOn Availability Groups485
پیادهسازی AlwaysOn Availability GroupsImplementing AlwaysOn Availability Groups486
پیکربندی SQL ServerConfiguring SQL Server492
ایجاد Availability GroupCreating the Availability Group494
Availability Groups روی LinuxAvailability Groups on Linux508
Distributed Availability GroupsDistributed Availability Groups515
مدیریت AlwaysOn Availability GroupsManaging AlwaysOn Availability Groups518
FailoverFailover518
همگامسازی Objectهای UncontainedSynchronizing Uncontained Objects524
MonitoringMonitoring525
سایر ملاحظات مدیریتیOther Administrative Considerations528
جمعبندیSummary530
فصل 15: پیادهسازی Log ShippingChapter 15: Implementing Log Shipping533
پیادهسازی Log Shipping برای DRImplementing Log Shipping for DR533
پیکربندی GUIGUI Configuration536
پیکربندی T-SQLT-SQL Configuration546
نگهداری Log ShippingLog Shipping Maintenance557
Failover در Log ShippingFailing Over Log Shipping557
تعویض RoleهاSwitching Roles558
MonitoringMonitoring564
جمعبندیSummary566
فصل 16: مقیاسدهی WorkloadهاChapter 16: Scaling Workloads569
Database SnapshotهاDatabase Snapshots569
پیادهسازی Database SnapshotImplementing Database Snapshots572
بازیابی داده از SnapshotRecovering Data from a Snapshot576
ReplicationReplication577
مفاهیم ReplicationReplication Concepts577
انواع ReplicationTypes of Replication579
پیادهسازی Transactional ReplicationImplementing Transactional Replication582
افزودن AlwaysOn Readable Secondary ReplicaهاAdding AlwaysOn Readable Secondary Replicas607
مزایا و ملاحظاتBenefits and Considerations608
پیادهسازی Readable SecondaryهاImplementing Readable Secondaries608
جمعبندیSummary618
بخش IV: Performance و نگهداریPart IV: Performance and Maintenance621
فصل 17: Metadata در SQL ServerChapter 17: SQL Server Metadata623
معرفی Metadata ObjectهاIntroducing Metadata Objects623
Metadata سطح Server و InstanceServer-Level and Instance-Level Metadata626
نمایش Registry ValueهاExposing Registry Values627
نمایش جزئیات ServiceExposing Service Details628
تحلیل مصرف Buffer CacheAnalyzing Buffer Cache Usage629
Metadata برای Capacity PlanningMetadata for Capacity Planning631
نمایش File StatهاExposing File Stats631
استفاده از File Stat برای Capacity AnalysisUsing File Stats for Capacity Analysis635
Metadata برای عیبیابی و Performance TuningMetadata for Troubleshooting and Performance Tuning639
دریافت Perfmon CounterهاRetrieving Perfmon Counters639
تحلیل WaitهاAnalyzing Waits644
Database MetadataDatabase Metadata647
Metadata-Driven AutomationMetadata-Driven Automation652
چرخه خودکار Database SnapshotهاDynamically Cycling Database Snapshots652
Rebuild فقط Indexهای FragmentشدهRebuilding Only Fragmented Indexes655
جمعبندیSummary657
فصل 18: Locking و BlockingChapter 18: Locking and Blocking659
درک LockingUnderstanding Locking659
Lock GranularityLock Granularity659
رفتار Lock در Online MaintenanceLocking Behaviors for Online Maintenance661
Lock CompatibilityLock Compatibility666
Lock PartitioningLock Partitioning667
درک DeadlockهاUnderstanding Deadlocks668
Deadlock چگونه رخ میدهدHow Deadlocks Occur668
به حداقل رساندن DeadlockهاMinimizing Deadlocks670
درک TransactionهاUnderstanding Transactions670
ویژگیهای TransactionTransactional Properties671
Transaction با In-Memory OLTPTransaction with In-Memory OLTP681
Isolation LevelهاIsolation Levels682
Cross-Container TransactionهاCross-Container Transactions684
Retry LogicRetry Logic686
مشاهده Transaction، Lock و DeadlockObserving Transactions, Locks, and Deadlocks687
مشاهده TransactionهاObserving Transactions687
مشاهده Lock و ContentionObserving Locks and Contention691
مشاهده DeadlockهاObserving Deadlocks695
جمعبندیSummary696
فصل 19: Extended EventsChapter 19: Extended Events699
مفاهیم Extended EventsExtended Events Concepts699
PackageهاPackages700
EventهاEvents700
TargetهاTargets701
ActionهاActions702
PredicateهاPredicates702
Typeها و MapهاTypes and Maps702
SessionهاSessions704
ایجاد Event SessionCreating an Event Session704
استفاده از New Session Dialog BoxUsing the New Session Dialog Box707
استفاده از T-SQLUsing T-SQL713
مشاهده داده جمعآوریشدهViewing the Collected Data717
تحلیل داده با Data ViewerAnalyzing Data with Data Viewer717
تحلیل داده با T-SQLAnalyzing Data with T-SQL723
همبستهسازی Extended Events با داده سیستمعاملCorrelating Extended Events with Operating System Data727
همبستهسازی Eventها با Perfmon DataCorrelating Events with Perfmon Data727
یکپارچهسازی Event Session با Eventهای سطح سیستمعاملIntegrating Event Sessions with Operating System–Level Events729
جمعبندیSummary736
فصل 20: Query StoreChapter 20: Query Store739
فعالسازی و پیکربندی Query StoreEnabling and Configuring Query Store739
کار با داده Query StoreWorking with Query Store Data746
گزارشهای SSMSSSMS Reports747
Objectهای T-SQL مربوط به Query StoreQuery Store T-SQL Objects751
حل مشکلات Query StoreResolving Issues with Query Store756
جمعبندیSummary757
فصل 21: Distributed ReplayChapter 21: Distributed Replay759
مفاهیم Distributed ReplayDistributed Replay Concepts760
اجزای Distributed ReplayDistributed Replay Components760
معماری Distributed ReplayDistributed Replay Architecture761
پیکربندی محیطConfiguring the Environment761
پیکربندی ControllerConfiguring the Controller762
پیکربندی ClientهاConfiguring Clients763
پیکربندی ReplayConfiguring the Replay765
کار با Distributed ReplayWorking with Distributed Replay768
همگامسازی TargetSynchronizing the Target772
ایجاد TraceCreating a Trace773
Replay کردن TraceReplaying the Trace803
جمعبندیSummary807
فصل 22: خودکارسازی روالهای نگهداریChapter 22: Automating Maintenance Routines809
SQL Server AgentSQL Server Agent809
مفاهیم SQL Server AgentSQL Server Agent Concepts810
امنیت SQL Server AgentSQL Server Agent Security814
ایجاد Jobهای SQL Server AgentCreating SQL Server Agent Jobs817
پایش و مدیریت JobهاMonitoring and Managing Jobs842
ایجاد AlertهاCreating Alerts845
Multiserver JobsMultiserver Jobs848
پیکربندی Serverهای MSX و TSXConfiguring the MSX and TSX Servers848
ایجاد Master JobهاCreating Master Jobs854
مدیریت Target ServerهاManaging Target Servers856
جمعبندیSummary860
فصل 23: Policy-Based ManagementChapter 23: Policy-Based Management863
مفاهیم PBMPBM Concepts863
FacetهاFacets863
ConditionهاConditions864
TargetهاTargets864
PolicyهاPolicies865
Evaluation ModeهاEvaluation Modes865
Central Management ServerهاCentral Management Servers866
ایجاد PolicyهاCreating Policies874
ایجاد Policy سادهCreating Simple Policies874
ایجاد Policy پیشرفتهCreating an Advanced Policy883
مدیریت PolicyهاManaging Policies885
Import و Export کردن PolicyهاImporting and Exporting Policies886
Enterprise Management با PolicyهاEnterprise Management with Policies887
ارزیابی Policyها با PowerShellEvaluating Policies with PowerShell889
جمعبندیSummary890
فصل 24: Resource GovernorChapter 24: Resource Governor893
مفاهیم Resource GovernorResource Governor Concepts893
Resource PoolResource Pool893
Workload GroupWorkload Group895
Classifier FunctionClassifier Function895
پیادهسازی Resource GovernorImplementing Resource Governor896
ایجاد Resource PoolهاCreating Resource Pools896
ایجاد Workload GroupهاCreating Workload Groups900
ایجاد Classifier FunctionCreating a Classifier Function903
آزمون Classifier FunctionTesting the Classifier Function908
پایش Resource GovernorMonitoring Resource Governor909
پایش با Performance MonitorMonitoring with Performance Monitor909
پایش با DMVهاMonitoring with DMVs913
جمعبندیSummary921
نمایهIndex923