SQL Tips & Tricks Best practices from the field John Nelson Apps Systems Engineer Steve Thompson Senior Consultant, Softchoice
@JohnNelsonNmbr2 Microsoft MVP, MMS Speaker 20 Years in IT, 15 with SQL/Data Chicken Wingz! Steve Thompson John Nelson Microsoft MVP, MMS/Teched IT/Dev connections Speaker IT - Longer than #2, 23 yr. with SQL/Data, SMS since 1995! BBQ
Agenda Configuring SQL Server Optimization and Tuning Backing up/Restoring SSRS SQL Server Audit (PowerShell)
Configuring SQL ServerConfiguring SQL Server
Configuring SQL Server Installation location - Drive other than C: - Local, local, local NTFS block size Memory
Configuring SQL Server Properly Size CM database Multiple DB files Log files TempDB - TSQL & PowerShell Database file Autogrowth Avoid if possible Used fixed amounts (512 or 1024MB)
Optimization and TuningOptimization and Tuning
Optimization and Tuning Database Indexes Statistics Why do they need to be kept up to date? Ola Hallengren TIP: Use Custom database
DemoDemo Configuring & Tuning
Backup/Restore
Backup / Restore Use Native SQL Server backup Advantages Other databases! notifications Database compression
Backup / Restore CD.LATEST 1511 and later Restore Requirements Multiple database files larger DB's may help Restore Requirements Avoid Custom objects in Master!
SSRS
SSRS Use SQL Server data tools Separate download with SQL 2014 Migrate custom databases Tips and tricks (XML) Backup custom reports Two methods
DemoDemo Backup & SSRS tips and tricks
SQL Server AuditSQL Server Audit
SQL Server Audit Document SQL Server and database properties Find common misconfigurations Create XLS baseline
DemoDemo SQL Server Audit
Questions?????????????? ????
Evaluation s: And Then … Please provide session feedback by clicking the EVAL button in the scheduler app (also download slides). One lucky winner will receive a free ticket to the next MMS! Discuss: Ask your questions-real world answers! Plenty of time to engage, share knowledge.