Designing Database Solutions for SQL Server

Slides:



Advertisements
Similar presentations
Module 3: Creating and Tuning Indexes. Planning Indexes Creating Indexes Optimizing Indexes.
Advertisements

Maintaining and Automating SQL Server
Module 20 Troubleshooting Common SQL Server 2008 R2 Administrative Issues.
SQL Server 2005 features for VLDBs. SQL Server 2005 features for VLDBs aka (it’s fixed in the next release)
SQL Server Best Practices Keep Your Database In Top Performance Shape and Maintain Effective Backups September, 2007 Richard Kokoski.
SQL Server 2005 Implementation and Maintenance Chapter 10: Maintaining and Automating SQL Server.
Backup, Integrity Check and Index and Statistics Maintenance
Working with SQL Server Database Objects
Module 6 Implementing Table Structures in SQL Server ®2008 R2.
Database Optimization & Maintenance Tim Richard ECM Training Conference#dbwestECM Agenda SQL Configuration OnBase DB Planning Backups Integrity.
Maintenance Plans Keith Binford Nebiyu Sorri. Maintenance Plans Most plans have at least four steps: Database consistency checking Database backup and.
Fundamentals, Design, and Implementation, 9/e Chapter 11 Managing Databases with SQL Server 2000.
SQL Server 2005 Database Engine Sommarkollo Microsoft.
Backup, Integrity Check and Index and Statistics Maintenance
Proper Care and Feeding of your SQL MDB -Recommendations for General MDB Maintenance -Read the notes on the foils! -Revised October
CS27510 Commercial Database Applications. Maintenance Maintenance Disaster Recovery Disaster Recovery.
Module 5 Understanding SQL Server 2008 R2 Recovery Models.
Database Configuration and Maintenance Database Configuration and Maintenance Exam / 30.
Overview SAP Basis Functions. SAP Technical Overview Learning Objectives What the Basis system is How does SAP handle a transaction request Differentiating.
Module 9: Managing Schema Objects. Overview Naming guidelines for identifiers in schema object definitions Storage and structure of schema objects Implementing.
Module 15: Monitoring. Overview Formulate requirements and identify resources to monitor in a database environment Types of monitoring that can be carried.
Module 8: Server Management. Overview Server-level and instance-level resources such as memory and processes Database-level resources such as logical.
Maintaining a Microsoft SQL Server 2008 Database SQLServer-Training.com.
1 Chapter Overview Creating a User Database Setting Database Options Managing User Database Size Placing Database Files on Multiple Disks.
Troubleshooting SQL Server Enterprise Geodatabase Performance Issues
Module 8 Improving Performance through Nonclustered Indexes.
Module 3: Managing Database Files. Overview Introduction to Data Structures Creating Databases Managing Databases Placing Database Files and Logs Optimizing.
15 Copyright © 2005, Oracle. All rights reserved. Performing Database Backups.
Sofia, Bulgaria | 9-10 October SQL Server 2005 High Availability for developers Vladimir Tchalkov Crossroad Ltd. Vladimir Tchalkov Crossroad Ltd.
Chokchai Junchey Microsoft Product Specialist Certified Technical Training Center.
11 MANAGING AND MONITORING DHCP Chapter 2. Chapter 2: MANAGING AND MONITORING DHCP2 MANAGING DHCP: COMMON DHCP ADMINISTRATIVE TASKS  Configure or modify.
Agenda for Today Do Chapter 14 Final Project Review for Final.
Learningcomputer.com SQL Server 2008 – Administration, Maintenance and Job Automation.
IT 456 Seminar 5 Dr Jeffrey A Robinson. Overview of Course Week 1 – Introduction Week 2 – Installation of SQL and management Tools Week 3 - Creating and.
Module 16: Performing Ongoing Database Maintenance
1 Chapter Overview Performing Configuration Tasks Setting Up Additional Features Performing Maintenance Tasks.
Indexes / Session 2/ 1 of 36 Session 2 Module 3: Types of Indexes Module 4: Maintaining Indexes.
Week 7 : Chapter 7 Agenda SQL 710 Maintenance Plan:
1 Chapter Overview Defining Operators Creating Jobs Configuring Alerts Creating a Database Maintenance Plan Creating Multiserver Jobs.
SQL School is strongly committed to provide COMPLETE PRACTICAL REALTIME Trainings on SQL Server Technologies – Dev, SQL DBA, MSBI (SSIS, SSAS, SSRS) and.
SQL/Lesson 7/Slide 1 of 32 Implementing Indexes Objectives In this lesson, you will learn to: * Create a clustered index * Create a nonclustered index.
Chapter 4 Indexes. Index Architecture  By default data is inserted on a first-come, first-serve basis  Indexes bring order to this chaos  Once you.
MISSION CRITICAL COMPUTING Siebel Database Considerations.
Maintenance Practices. Goal  Automate the necessary DBA chores to put organizations on the path of having healthier, consistent and more trustworthy.
1 Chapter Overview Using Standby Servers Using Failover Clustering.
Log Shipping, Mirroring, Replication and Clustering Which should I use? That depends on a few questions we must ask the user. We will go over these questions.
SQL SERVER MAINTENANCE PLANS Kat
Module 6: Creating and Maintaining Indexes. Overview Creating Indexes Understanding Index Creation Options Maintaining Indexes Introducing Statistics.
You Inherited a Database Now What? What you should immediately check and start monitoring for. Tim Radney, Senior DBA for a top 40 US Bank President of.
11 Copyright © 2009, Oracle. All rights reserved. Enhancing ETL Performance.
SQL Server DBA Online TrainingSQL Server DBA Online Training.
ProgressBook Suite Maintenance
SQL Database Management
You Inherited a Database Now What?
Automated Restore Script Output for Ola Hallengren’s Maintenance Solution 1) Start SQL Services on Local 2) Connect to Azure AlwaysOn 3) Delete all maintenance.
Module 4: Creating and Tuning Indexes
Introduction to SQL Server Management for the Non-DBA
Designing Database Solutions for SQL Server
Dynamics AX Performance
The Ultimate Maintenance Plan By Ed Roepe Perimeter DBA, LLC
Microsoft SQL Server 2014 for Oracle DBAs Module 7
Database systems Lecture 6 – Indexes
The Ultimate Maintenance Plan By Edward Roepe Perimeter DBA, LLC
AlwaysOn Availability Groups
You Inherited a Database Now What?
Chapter 11 Managing Databases with SQL Server 2000
Sql Saturday Philadelphia
Ch 10. Maintaining and Automating SQL Server
Designing Database Solutions for SQL Server
Presentation transcript:

Designing Database Solutions for SQL Server Christian Bolton | Technical Director, Coeo Graeme Malcolm | Microsoft

Course Topics Designing Database Solutions for SQL Server 01 | Managing a SQL Server Environment 02 | Designing Database Security 03 | Designing a Backup & Recovery Solution 04 | Designing a High-Availability Solution 05 | Troubleshooting & Maintaining a database

Christian Bolton | Technical Director, Coeo Graeme Malcolm | Microsoft 05 | Troubleshooting & Maintaining a Database Christian Bolton | Technical Director, Coeo Graeme Malcolm | Microsoft

Module Overview Key Maintenance Tasks Tools and Techniques for Monitoring Investigating Problems

Key Maintenance Tasks Ensuring Database Integrity Maintaining Indexes Automating Database Maintenance

Ensuring Database Integrity Physical Integrity Data pages are written top physical storage as SQL Server requested and can be read correctly Logical Integrity Data within pages is logically correct

Ensuring Database Integrity DBCC CHECKDB Checks logical and physical integrity in the database Offers some repair options Runs online using a internal database snapshot Synchronize executions with your backup strategy

Ensuring Database Integrity Option Description PHYSICAL_ONLY Only checks the physical integrity to reduce overhead NOINDEX Does not perform logical checks on nonclustered indexes EXTENDED_LOGICAL_CHECKS Performs additional logical checks of indexed views, spatial, and XML indexes TABLOCK Uses locks instead of database snapshots ALL_ERRORMSGS Returns all error messages instead of the default action that returns the first 200 NO_INFOMSGS Returns only error messages and no informational messages ESTIMATEONLY Estimates the amount of tempdb space that it requires to run

Ensuring Database Integrity DBCC CHECKDB Repair Options Database needs to be in SINGLE_USER mode REPAIR_REBUILD REPAIR_ALLOW_DATA_LOSS Consider restoring a database instead of allowing data loss

Running CHECKDB

Index Fragmentation Fragmentation occurs when data changes cause index pages to split Internal fragmentation when pages are not full External fragmentation when pages are not in logical sequence Detecting fragmentation Index properties in SQL Server Management Studio sys.dm_db_index_physical_stats

FILLFACTOR and PAD_INDEX ALTER TABLE Person.Contact ADD CONSTRAINT PK_Contact_ContactID PRIMARY KEY CLUSTERED ( ContactID ASC ) WITH (PAD_INDEX = ON, FILLFACTOR = 70); GO FILLFACTOR leaves space in index leaf-level pages for new data to avoid page splits PAD_INDEX uses the value specified in FILLFACTOR for the intermediate pages of the index

Removing Fragmentation REBUILD Rebuilds the whole index Needs free space in the database Performed as a single transaction Beware of log space requirements REORGANIZE Sorts the pages and is always online Less transaction log usage Work isn’t lost if interrupted ALTER INDEX IX_Contact_LastName ON Person.Contact REBUILD; ALTER INDEX IX_Contact_City ON Person.Contact REORGANIZE;

Online Index Operations ALTER INDEX IX_Contact_EmailAddress ON Person.Contact REBUILD WITH (ONLINE = ON, MAXDOP = 4 ); Enterprise Edition of SQL Server can rebuild indexes online Enables concurrent user access Slower than the equivalent offline operation Effectively creates a new index in parallel with the old so space in the data file is a consideration Lots of updates during the rebuild will use tempdb heavily

Updating Statistics As data changes, statistics become outdated Updated automatically or on demand AUTO_UPDATE_STATISTICS Database option on by default UPDATE STATISTICS Manually trigger an update for a table or specific statistics sp_updatestats Updates all statistics in a database ALTER INDEX REBUILD Also rebuilds the statistics with FULLSCAN

Automating Database Maintenance SQL Server Maintenance Plans Help you to schedule core maintenance tasks Uses SSIS to perform tasks

SQL Server Maintenance Plans

Tools and Techniques for Monitoring Activity Monitor Dynamic Management Views and Functions Performance Monitor SQL Server Profiler SQL Trace

Tools and Techniques for Monitoring Database Engine Tuning Advisor Distributed Replay SQL Server Data Collection SQL Server Utility Control Point Microsoft System Center Operations Manager

Troubleshooting and Maintaining a Database Summary Key Maintenance Tasks Tools and Techniques for Monitoring Investigating Problems

Designing Database Solutions for SQL Server Managing a SQL Server Environment Designing Database Security Designing a Backup & Recovery Solution Designing a High-Availability Solution Troubleshooting & Maintaining a database