Virtual techdays INDIA │ 28-30 September 2011 Tips for Successful SQL Server Deployment in Enterprise Environment Balmukund Lakhani │ Technical Lead –

Slides:



Advertisements
Similar presentations
Burt King We will cover: Essentials --No command line needed here (mott) What is SQL Server How does it come to life What are the.
Advertisements

David Johnson | Page #1 © 2009 Blackbaud What Every Blackbaud DBA Ought to Know Welcome to the Support Roundtable for DBAs Presenter: David Johnson, Technical.
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.
Database Optimization & Maintenance Tim Richard ECM Training Conference#dbwestECM Agenda SQL Configuration OnBase DB Planning Backups Integrity.
SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.
Virtual techdays INDIA │ September 2011 High Availability - A Story from Past to Future Balmukund Lakhani │ Technical Lead – SQL Support, Microsoft.
Presenter: Raman Chohan. AGENDA Oracle Best Practices Oracle Backups Why upgrade to Oracle 11? Performance Troubleshooting axiUm Pre-Upgrade Checklist.
MCTS Guide to Microsoft Windows Server 2008 Network Infrastructure Configuration Chapter 11 Managing and Monitoring a Windows Server 2008 Network.
Proper Care and Feeding of your SQL MDB -Recommendations for General MDB Maintenance -Read the notes on the foils! -Revised October
Esri UC2013. Technical Workshop. Technical Workshop 2013 Esri International User Conference July 8–12, 2013 | San Diego, California Administering Your.
Transaction log grows unexpectedly
Optimizing SQL Server 2012 for SharePoint 2013 SharePoint Saturday/Friday, Honolulu March 27, 2015.
Database Security and Auditing: Protecting Data Integrity and Accessibility Chapter 3 Administration of Users.
Manage & Configure SQL Database on the Cloud Haishi Bai Technical Evangelist Microsoft.
Avanade: 10 tips for å sikring av dine SQL Server databaser Bernt Lervik Infrastructure Architect Avanade.
Maintaining a Microsoft SQL Server 2008 Database SQLServer-Training.com.
Stephan Hurni Consultant Trivadis AG, SQL Server notes from the field.
Database Security and Auditing: Protecting Data Integrity and Accessibility Chapter 3 Administration of Users.
Chapter 2: Designing Physical Storage MCITP Administrator: Microsoft SQL Server 2005 Database Server Infrastructure Design Study Guide (70-443)
Clustering SQL Server Tom Pullen Senior DBA, RM Education
Maintaining a Mirrored Database Tips and Tricks by Paul G. Hiles.
Chokchai Junchey Microsoft Product Specialist Certified Technical Training Center.
Learningcomputer.com SQL Server 2008 – Administration, Maintenance and Job Automation.
ArcGIS Server for Administrators
SQL School is strongly committed to provide COMPLETE PRACTICAL REALTIME Trainings on SQL Server Technologies – Dev, SQL DBA, MSBI (SSIS, SSAS, SSRS) and.
Esri UC 2014 | Technical Workshop | Administering Your Microsoft SQL Server Geodatabase Shannon Shields Chet Dobbins.
MISSION CRITICAL COMPUTING Siebel Database Considerations.
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
Linkedin: dennisegraham Dennis E Graham Reporting For SQL Health.
SQL Server 2016 – New Features Tilahun Endihnew March 12, 2016.
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.
New Instance… Now What? Presented by: James Donahoe Senior Solutions Engineer – TeleTracking Technologies MCSA: SQL Server 2012.
Let’s Get It Started Lori Edwards, SQL Sentry. Introduction  Sales Engineer for SQL Sentry since 2/2013  Previously – DBA since 2003  PASS volunteer.
Hitting the SQL Server “Go Faster” Button Rob Douglas #509 | Brisbane 2016.
Administering Your Microsoft SQL Server Geodatabase
ProgressBook Suite Maintenance
SQL Database Management
Administrating a Database
Get the Most out of SQL Server Standard Edition
You Inherited a Database Now What?
Tips for SQL Server Performance and Resiliency
SQL Server Performance Tuning
Lead SQL BankofAmerica Blog: SQLHarry.com
Hitting the SQL Server “Go Faster” Button
Common SQL Server Mistakes and How to Avoid Them
Peter Shore SQL Saturday Pittsburgh 2017
Designing Database Solutions for SQL Server
Installation and database instance essentials
Introduction to SQL Server Management for the Non-DBA
SQL Server May Let You Do It, But it Doesn’t Mean You Should
Tips for SQL Server Performance and Resiliency
Tips for SQL Server Performance and Resiliency
Universal SQL Installations Framework (Script review and Demo)
Dynamics AX Performance
Hitting the SQL Server “Go Faster” Button
Re-Indexing - The quest of ultimate automation
What’s new in SQL Server 2016 Availability Groups
Migrating your SQL Server Instance
Backup and Restore your SQL Server Database
Peter Shore SQL Saturday Cleveland 2016
AlwaysOn Availability Groups
Database hidden disasters…
You Inherited a Database Now What?
Administrating a Database
SQL AlwaysOn Availability Groups
The DBA Quit and now you’re it:
Presentation transcript:

virtual techdays INDIA │ September 2011 Tips for Successful SQL Server Deployment in Enterprise Environment Balmukund Lakhani │ Technical Lead – SQL Support, Microsoft | |

virtual techdays INDIA │ September 2011 A B O U T M E… Working with SQL Technology since 2001 (almost 10 years) Currently working as Technical Lead with Microsoft SQL Support Team Premier Field Microsoft ERP Onsite Ramco Systems Ramco Systems Ramco Systems Team Blog – Personal Blog – Active Participant in MSDN SQL Forums.

 Best Practices or Good Practices or Better Practices?  Installation  Memory  Security  Database Files  TempDB Files Placement  Backup  Monitoring SQL Server virtual techdays INDIA │ September 2011 S E S S I O N A G E N D A

virtual techdays INDIA │ September 2011 Good Practices around Installation/Patching of SQL Server

virtual techdays INDIA │ September 2011 SQL Server Installation/Patching Tricks Use domain account (not domain admin) as Service Account. Have separate account for each server. If you install SQL 2005, please remember to install non-cluster aware component on both nodes. SQL 2008 Onwards, use Slip Streamed media – Avoid known issue of setup itself. – Overall reduced time to install SQL Server. SQL 2008 onwards, first apply patch on passive node in cluster (rolling upgrade), failover and then apply on active node. Provide “Perform Volume Maintenance Tasks” permission (using SecPol.msc) to service account. Use Configuration File / Command line install for faster deployment. Configure antivirus software to skip LDF/MDF/NDF/Backup files (KB ) Make sure ReadMe of release is followed to understand the known issues in advance. Evaluation Edition Expired?

virtual techdays INDIA │ September 2011 Good Practices around Memory Settings of SQL Server

virtual techdays INDIA │ September 2011 SQL Server Memory Configuration Tricks If you are using 32 bit SQL Server and you have more than 2 GB of RAM, please configure AWE if you want more memory to be used. To use AWE, SQL Service account needs “Lock Pages in Memory” privilege. Limit Max Server Memory of SQL Server. Keep an eye on DBCC MemoryStatus output. Don’t use Task Manager to check how much memory SQL is using. Use PerfMon.

virtual techdays INDIA │ September 2011 Good Practices around Security in SQL Server

virtual techdays INDIA │ September 2011 SQL Server Security Tips Change Production Server Port to something other than Don’t add SQL Server Service Account as SysAdmin. Make sure permission is given to those who need it. Rename sa to some other name. Keep strong passwords for SQL Logins. Don’t add unwanted users to SQL Server. Remove Builtin\Administrators Disable xp_cmdshell unless it is absolutely needed. Use Windows Authentication where ever possible.

virtual techdays INDIA │ September 2011 Demo Recover from a locked out situation

virtual techdays INDIA │ September 2011 Good Practices around Database Files

virtual techdays INDIA │ September 2011 SQL Server Database Files Tips Multiple Transaction Logs file won’t help in performance. Don’t Shrink the data files to save space unless it’s the last thing in the world! Don’t let the file grow automatically. Plan in advance. Don’t have AutoShrink of database turned ON – worst than performing manual shrink. Don’t have AutoClose ON for the database. Avoid having percentage growth. Fix size is better. Frequent Autogrowth is not healthy. Don’t Scan the files by Antivirus.

virtual techdays INDIA │ September 2011 Demo Problem caused due to Many VLFs & Shrink is an E V I L

virtual techdays INDIA │ September 2011 Good Practices around TempDB Files

virtual techdays INDIA │ September 2011 SQL Server TempDB Managament How may tempdb database we have? There are multiple suggestions around how many tempdb data files. If you see any contention on PAGELATCH then increase the tempdb files. Track tempdb usage and make sure that drive has enough space to allow growth. If there are multiple temdpb data files, make sure the size is same.

virtual techdays INDIA │ September 2011 Good Practices around Monitoring

virtual techdays INDIA │ September 2011 SQL Server Monitoring Automate as much as you can. Alert for long Blocking Alert for Data File Free Space. Alert for High CPU Usage. Be proactive Check ErrorLog regularly. Check for Dumps. Use DDL Triggers on production to avoid any mishap of dropping objects. Install Performance DashBoard on Servers to look in graphical DMVs output. Use SSMS colour feature to make sure you are working on proper server.

virtual techdays INDIA │ September 2011 Demo SQL Server Management Studio Status Bar Color & DDL Trigger to avoid accidents

virtual techdays INDIA │ September 2011 And … have a solid maintenance plans.

virtual techdays INDIA │ September 2011 SQL Server Maintenance Plan tips Don’t blindly update stats for all table and rebuild all indexes. Check with Business Unit about tables and their data change frequency. Check the RTO and RPO from business to decide backup frequency. If recovery model is full, make sure log backups are taken.. Please! Please!! Please!!! Don’t ever have shrink in the Maintenance Plan. Myth – If backup is successful, backup file is restorable. Check database integrity (DBCC CheckDB) on regular basis. Have a sound disaster recovery plan! And make sure you test the plan before you actually do it.

virtual techdays INDIA │ September 2011 Puzzle Time!

virtual techdays INDIA │ September 2011 Puzzle Full backup 1 (12:00 PM) T-Log backup 1 (1:00 PM) T-Log backup 2 (2:00 PM) T-Log backup 3 (3:00 PM) Full backup 2 (3:25 PM) T-Log backup 4 (3:35 PM) 03:22 PM

virtual techdays INDIA │ September 2011 RELATED CONTENT in VTD Sep 29 th 2011 – DBA Track  Ancient Trade of Performance Tuning - Index, Beyond Index and No Index  Pinal Dave  11:45am - 12:45pm  High Availability - A Story from Past to Future  Balmukund Lakhani  1:45pm - 2:45pm  Monitoring Performance in Cloud for SQL Azure Applications  Vinod Kumar  3:00pm - 4:00pm  Managing SQL Server Made Easy - Features and Concepts  Amit Banerjee  4:15pm - 5:15pm

virtual techdays THANKS │ September 2011 Please do give your Feedback, Complete evaluation at the end of this session. You could also write to be at : │ twitter.com/blakhanihttp:// twitter.com/blakhani