Let’s Get It Started Lori Edwards, SQL Sentry. Introduction  Sales Engineer for SQL Sentry since 2/2013  Previously – DBA since 2003  PASS volunteer.

Slides:



Advertisements
Similar presentations
ESafe Reporter V3.0 eSafe Learning and Certification Program February 2007.
Advertisements

5 Common SQL Server Performance Issues Jason Hall-SQL Sentry, Dir of Client Services Blog-jasonhall.blogs.sqlsentry.net.
Module 20 Troubleshooting Common SQL Server 2008 R2 Administrative Issues.
Module 3 Installing and Configuring SQL Server 2008 R2.
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.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 11: Monitoring Server Performance.
Module 2: Planning to Install SQL Server. Overview Hardware Installation Considerations SQL Server 2000 Editions Software Installation Considerations.
NovaBACKUP 10 xSP Technical Training By: Nathan Fouarge
Virtual techdays INDIA │ September 2011 Tips for Successful SQL Server Deployment in Enterprise Environment Balmukund Lakhani │ Technical Lead –
JourneyTEAM - – Tales From The Field: 2010 to 2013 Upgrade Horror Stories and How to Avoid Creating a Horror of Your Own.
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.
Troubleshooting SQL Server Enterprise Geodatabase Performance Issues
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 11: Monitoring Server Performance.
1 SQL Server 2000 Administration Kashef Mughal MSB.
Chokchai Junchey Microsoft Product Specialist Certified Technical Training Center.
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.
1 Chapter Overview Performing Configuration Tasks Setting Up Additional Features Performing Maintenance Tasks.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 11: Monitoring Server Performance.
SQL Server 2000 Sys Admin Jeremiah Curtis Engineering Services
SQL School is strongly committed to provide COMPLETE PRACTICAL REALTIME Trainings on SQL Server Technologies – Dev, SQL DBA, MSBI (SSIS, SSAS, SSRS) and.
MISSION CRITICAL COMPUTING Siebel Database Considerations.
SQL SERVER 2008 Installation Guide A Step by Step Guide Prepared by Hassan Tariq.
Oracle Business Intelligence Foundation – Testing and Deploying OBI Repository.
Introduction to SQL Server  Working with MS SQL Server and SQL Server Management Studio.
Introduction to SQL Server for Windows Administrators Presented to WiNSUG 02/05/09 Bret Stateham Owner, Net Connex Blogs.netconnex.com.
6/13/2015 Visit the Sponsor tables to enter their end of day raffles. Turn in your completed Event Evaluation form at the end of the day in the Registration.
Scripting Just Enough SSIS to be Dangerous. 6/13/2015 Visit the Sponsor tables to enter their end of day raffles. Turn in your completed Event Evaluation.
Get the Most out of SQL Server Standard Edition Or How to be a SQL Miser.
Configuring SQL Server for a successful SharePoint Server Deployment Haaron Gonzalez Solution Architect & Consultant Microsoft MVP SharePoint Server
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.
Work Smarter Not Harder Standardize Your Environment With Best Practices.
Blog.eardley.org.uk SharePoint Databases What you need to know Alan Eardley SQL Saturday Exeter 25 April 2015.
Session Name Pelin ATICI SQL Premier Field Engineer.
SQL Server Magic Buttons! What are Trace Flags and why should I care? Steinar Andersen, SQL Service Nordic AB Thanks to Thomas Kejser for peer-reviewing.
Hitting the SQL Server “Go Faster” Button Rob Douglas #509 | Brisbane 2016.
SQL Server Management Strategies
SQL Server Statistics and its relationship with Query Optimizer
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
Hitting the SQL Server “Go Faster” Button
Policy Based Management: Introduction & implementation
Common SQL Server Mistakes and How to Avoid Them
Auditing in SQL Server 2008 DBA-364-M
Solving ETL Bottlenecks with SSIS Scale Out
Limiting SQL Server Exposure
SQL Server May Let You Do It, But it Doesn’t Mean You Should
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
What’s new in SQL Server 2016 Availability Groups
Statistics What are the chances
Peter Shore SQL Saturday Cleveland 2016
Limiting SQL Server Exposure
It’s TEMPDB Why Should You Care?
You Inherited a Database Now What?
Use PowerShell & dbatools to Manage your SQL Server Environment
Governing Your Enterprise with Policy-Based Management
SQL Server Query Design and Optimization Recommendations
Designing IIS Security (IIS – Internet Information Service)
The Fast and Easy Methods to Automate your SQL Server builds
Managing the mystery database
Presentation transcript:

Let’s Get It Started Lori Edwards, SQL Sentry

Introduction  Sales Engineer for SQL Sentry since 2/2013  Previously – DBA since 2003  PASS volunteer  PASSion Award winner 2011    Blog:  LinkedIn: 2 | Let's Get It Started

Agenda  Preparing to install  Configuration  Post configuration  Unattended installations  Questions 3 | Let's Get It Started

Goals for this session  Understand when and why you might want to change configuration values  Create a method for repeatable installs  Create a process for server level documentation Let's Get It Started4 |

Preparing to Install Information to gather prior to install  Read application documentation or talk to your devs!!!  Update OS (service packs)  Collect service packs/cumulative updates 5 |Let's Get It Started

Installation  Service accounts  Preferably different accounts for each service  What kind of accounts should be used  Rights  Access  Windows or Mixed Mode Authentication  If Mixed Mode, set SA password  SQL Server administrators 6 |Let's Get It Started

Installation  Data and log file storage/Backup directories  Defaults to C:\Program Files\Microsoft SQL Server\ \MSSQL\  Ports  Default: 1433  Dynamic ports? Let's Get It Started7 |

Configuration  Now that your SQL Server is installed, let’s check some configurations  Run EXEC sp_configure to get current values  Ways to change configurations  SSMS instance properties  sp_configure Example:  Policy Based Management (PBM) Let's Get It Started8 |

Surface Area Configuration  Used to turn enable/disable features of SQL Server  Changed via PBM facets or sp_configure Let's Get It Started9 |

Surface Area Configuration (cont) Let's Get It Started10 |

Surface Area Configuration  Many of these features affect security  Includes:  AdHocRemoteQueries (aka Ad Hoc Distributed Queries)  XPCmdShell  ClrIntegration  OleAutomation  RemoteDac Let's Get It Started11 |

Enable the remote DAC  Dedicated Admin Connection  Allows remote connections to the server even if the server is non responsive  You may not ever need it, but if you do… 12 |Let's Get It Started

Memory settings  Minimum server memory  Default is 0  If minimum server memory isn’t available, SQL Server service won’t start  Maximum server memory  Default is MB(~2PB!) 13 |Let's Get It Started

Parallelism  Max Degree of Parallelism  Default is unlimited (0)  OPTION(MAXDOP) query hint  Cost Threshold for Parallelism  Default is 5  Tuning that number: e/2010/01/19/tuning-cost-threshold-of-parallelism- from-the-plan-cache.aspx e/2010/01/19/tuning-cost-threshold-of-parallelism- from-the-plan-cache.aspx 14 |Let's Get It Started

Collationsettings  Take a moment with this: Default is: SQL_Latin1_General_CP1_CI_AS  Differences in collation between user database and tempdb can cause issues 15 |Let's Get It Started

Optimize for Adhoc Workloads  Disabled by default  Plan use can be viewed in sys.cm_exec_cached_plans  Weigh difference between cost of compiles vs plan cache bloat 16 |Let's Get It Started

Instant File Initialization  Not technically a SQL Server configuration  Disabled by default  Available SQL Server on Windows Server  Faster database creation and file growth  Transaction logs  Potential security risk.. 17 |Let's Get It Started

Backup Compression  Introduced 2008  Available in Standard Edition 2008R2  Not enabled by default  Free storage savings – why not? 18 |Let's Get It Started

VLFs  Not really a configuration setting  Set appropriate initial size and autogrowth settings log-vlfs-too-many-or-too-few/  Algorithm for VLFs has changed in creation-algorithm-sql-server-2014/  How to check? 19 |Let's Get It Started

TempDB  If possible, put on its own storage  Size appropriately based on growth  Number of files  >= 8 logical cores  Set number of files to number of logical cores  >8 logical cores  Set number of files to 8, increase by  Ensure that the files are equally sized 20 |Let's Get It Started

Indexes  Default index fill factor  Default = 0 (or none)  What/when/why  Resource impact  Pad Index  Not a server level setting  Only applies if fill factor is set Let's Get It Started21 |

Trace Flags  Trace flags are typically used for troubleshooting or correcting specific behavior, but…  TF 3226 – successful backup entries  TF 1117 – grow all tempdb files  TF 1118 – grow tempdb in full extents Let's Get It Started22 |

After completing set up and config  Set up database maintenance  Backups  Recovery model  SLAs  Ensure autogrowth settings are reasonable  Disable AUTO_SHRINK  Disable AUTO_CLOSE 23 |Let's Get It Started

After completing set up and config  Disable the SA account, if possible  SQL Agent Alerts  Severity level 19+  Agent alerts, 823, 824, 825  Anti virus exclusions Let's Get It Started24 |

After completing set up and config  Statistics  AUTO_CREATE_STATISTICS  For queried columns without statistics  AUTO_UPDATE_STATISTICS  Trace flag 2371 for very large tables  AUTO_UPDATE_STATISTICS_ASYNC 25 |Let's Get It Started

Documentation  Almost no one likes documentation – that’s a fact.  Make it a habit  Included script and form from this session Let's Get It Started26 |

Unattended installations  Saves time and keystrokes  Standardize!  Easy to hand off to others  Can install any features of SQL Server (SSRS, SSIS, SSAS) 27 |Let's Get It Started

Unattended installation command line  All settings are configured using parameters  Well over 100 possible parameters (look here: us/library/ms aspx ) us/library/ms aspx  Example:  setup.exe /q /ACTION=CompleteImage /INSTANCENAME=MYNEWINST /INSTANCEID= /SQLSVCACCOUNT=" " /SQLSVCPASSWORD=" " /SQLSYSADMINACCOUNTS=" " /AGTSVCACCOUNT="NT AUTHORITY\Network Service" /IACCEPTSQLSERVERLICENSETERMS 28 |Let's Get It Started

Unattended installation w/ config file  I prefer using a config file  Can be found at C:\Program Files\Microsoft SQL Server\ \Setup Bootstrap\Log\ \ConfigurationFile.ini 29 |Let's Get It Started

Unattended installation w/ config file 30 |Let's Get It Started

Unattended installation w/ config file  Changes to the config file  Remove UIMODE  Change Quiet to “True”  Add IACCEPTSQLSERVERLICENSETERMS = “True” 31 |Let's Get It Started

Unattended installation w/ config file  Ensure any service accounts are set up prior  To run:  Path A = Path to SQL Server installation media  Path B = Path to configuration file  From cmd prompt:  /ConfigurationFile = “ ”  Example: C:\SQL\setup.exe /ConfigurationFile = “D:\config\ConfigurationFile.ini” 32 |Let's Get It Started

Summary At the end of this session, you should have learned:  What information to have on hand for an installation  Various configuration settings and when they would be appropriate to change  Steps to take post configuration  Perform unattended installs 33 | Let's Get It Started

Questions? me at Or tweet Thank you! 34 | Let's Get It Started

And your bonus for attending Let's Get It Started35 | Compilation of posts from SQLPerformance.com or me

6/13/2015 Visit the Sponsor tables to enter their end of day raffles. Turn in your completed Event Evaluation form at the end of the day in the Registration area to be entered in additional drawings. Want more free training? Check out the Houston Area SQL Server User Group which meets on the 2 nd Tuesday of each month. Details at Thank You Sponsors!