Common Mistakes Developers Make By Bryan Oliver SQL Server Mentor at SolidQ.

Slides:



Advertisements
Similar presentations
ITEC474 INTRODUCTION.
Advertisements

Chapter 9. Performance Management Enterprise wide endeavor Research and ascertain all performance problems – not just DBMS Five factors influence DB performance.
Big Data Working with Terabytes in SQL Server Andrew Novick
Fundamentals, Design, and Implementation, 9/e Chapter 11 Managing Databases with SQL Server 2000.
F HEPNT/HEPIX Sept, 1999 Use of SPQuery and STAT At FNAL.
Proper Care and Feeding of your SQL MDB -Recommendations for General MDB Maintenance -Read the notes on the foils! -Revised October
Chapter 9 Overview  Reasons to monitor SQL Server  Performance Monitoring and Tuning  Tools for Monitoring SQL Server  Common Monitoring and Tuning.
Managing and Monitoring SQL Server 2005 Shankar Pal Program Manager SQL Server, Redmond.
Setting Up a Sandbox Presented by: Kevin Brunson Chief Technology Officer.
NovaBACKUP 10 xSP Technical Training By: Nathan Fouarge
Overview What is SQL Server? Creating databases Administration Security Backup.
Maintaining a Microsoft SQL Server 2008 Database SQLServer-Training.com.
Troubleshooting SQL Server Enterprise Geodatabase Performance Issues
Introduction to Databases Chapter 8: Improving Data Access.
1 Intro to Info Tech Database Management Systems Copyright 2003 by Janson Industries This presentation can be viewed on line at:
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 10 Database Performance Tuning and Query Optimization.
DATABASE ADMINISTRATION WHAT IS IT?. THE GIST Database administrators are responsible for creating and maintaining the databases that form the core of.
1 Introduction to Database Systems. 2 Database and Database System / A database is a shared collection of logically related data designed to meet the.
1 Robert Wijnbelt Health Check your Database A Performance Tuning Methodology.
Physical Database Design Chapter 6. Physical Design and implementation 1.Translate global logical data model for target DBMS  1.1Design base relations.
Improving Efficiency of I/O Bound Systems More Memory, Better Caching Newer and Faster Disk Drives Set Object Access (SETOBJACC) Reorganize (RGZPFM) w/
Oracle9i Performance Tuning Chapter 1 Performance Tuning Overview.
1 Oracle Architectural Components. 1-2 Objectives Listing the structures involved in connecting a user to an Oracle server Listing the stages in processing.
Win202 Database Administration. Introduction Welcome to OpenEdge. Type 2 Storage Areas. One of the big selling points for the OpenEdge platform and Win202.
Learningcomputer.com SQL Server 2008 – Administration, Maintenance and Job Automation.
1 All Powder Board and Ski Oracle 9i Workbook Chapter 9: Database Administration Jerry Post Copyright © 2003.
DB Performance Ana Stanescu CIS764 - Fall 08 KSU.
© 2008 Quest Software, Inc. ALL RIGHTS RESERVED. Perfmon and Profiler 101.
1 Chapter Overview Performing Configuration Tasks Setting Up Additional Features Performing Maintenance Tasks.
By Shanna Epstein IS 257 September 16, Cnet.com Provides information, tools, and advice to help customers decide what to buy and how to get the.
Week 7 : Chapter 7 Agenda SQL 710 Maintenance Plan:
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.
Infrastructure for Data Warehouses. Basics Of Data Access Data Store Machine Memory Buffer Memory Cache Data Store Buffer Bus Structure.
MISSION CRITICAL COMPUTING Siebel Database Considerations.
Learningcomputer.com SQL Server 2008 –Views, Functions and Stored Procedures.
Database technology Introduction ER Modeling Database objects (intro) SQL.
Performance. Performance Performance is a critical issue especially in a multi-user environment. Benchmarking is one way of testing this.
1 Chapter Overview Monitoring Access to Shared Folders Creating and Sharing Local and Remote Folders Monitoring Network Users Using Offline Folders and.
SSMS SQL Server Management System. SQL Server Microsoft SQL Server is a Relational Database Management System (RDBMS) Relational Database Management System.
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 Saturday Pittsburgh So you want to be a DBA What is a DBA? Michael John Ed Wagner SQL Saturday Pittsburgh October 3rd 2015.
How to kill SQL Server Performance Håkan Winther.
Putting Your Head in the Cloud Working with SQL Azure David Postlethwaite 19/09/2015David Postlethwaite.
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.
DBA Quick Start What do you do when you’ve fallen into a job as a DBA? Take a deep breath, Find out what you’ve got, And dive right in!
New Instance… Now What? Presented by: James Donahoe Senior Solutions Engineer – TeleTracking Technologies MCSA: SQL Server 2012.
Database Administration for the Non-DBA Denny Cherry twitter.com/mrdenny.
1 Copyright © 2005, Oracle. All rights reserved. Oracle Database Administration: Overview.
10 Things All BI Administrators Should Know Robert L Davis Database Engineer
McGraw-Hill/Irwin Copyright © 2005 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 9: Database Administration All Powder Board and Ski.
You Inherited a Database Now What?
Tips for SQL Server Performance and Resiliency
SQL Replication for RCSQL 4.5
SQL Server Performance Tuning
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
Dynamics AX Performance
Hitting the SQL Server “Go Faster” Button
What’s new in SQL Server 2016 Availability Groups
Migrating your SQL Server Instance
TEMPDB – INTERNALS AND USAGE
SQL Server Performance Tuning
Database hidden disasters…
You Inherited a Database Now What?
Chapter 11 Managing Databases with SQL Server 2000
Query Processing.
Database administration
Presentation transcript:

Common Mistakes Developers Make By Bryan Oliver SQL Server Mentor at SolidQ

1 Most Common Mistake Made in Developing SQL Server Databases This list is based upon experience over the last 10 plus years as both a DBA and a Developer It is a list that is meant to cause discussion and I will always allow a person the right to disagree with me.

2 Database Configuration Not enough File Groups for disk activity Normalization of Database Poor indexing of Tables Foreign key relationships Lack of naming standards.

Database Configuration Cont. Choice of data types No Baseline or Benchmarks of each Database File Growth set to Auto and 10% or some inadequate size Temp DB not Optimized for CPU’s Running SQL Server in mixed-authentication mode with a NULL password for the systems administrator (sa) account

4 T SQL Development Use of Adhoc SQL Not defining owner or schema name when calling a SQL Object Lack of naming standards Inadequate Development Testing Inadequate Load Testing

T-SQL Development Cont. Use of Cursors Locking Issues Overuse of Temp Tables Query Plan examining Making Databases Case Sensitive

6 T SQL Development Cont. No or Poorly Commented Code Adding a Column in Production Defining Rows that Exceed The Max Length Spaces in Object Names Not Having An Archive Plan For Each Table

T-SQL Development Cont. Sorting by Ordinal Select field1, field2, field3 from pubs order by 1, 2 Bad Connection Strings and Bad Info in Sysprocesses Not Using Primary Keys and Clustered Indexes Objects Not Owned by DBO Using Hungarian Notation for Column Names

8 Performance Tuning worst practices System performance not a component of requirements analysis No dedicated development and test environments No load testing No SQL Server maintenance No managerial support for high performance No performance monitoring and management tool

9 Ten Things a SQL Server DBA Should Never Do Rebuilding an index in daylight hours - this will hit disk I/O very heavily. It is rarely useful to do this during normal working hours, so always schedule it for the evening or overnight - that is, during the period of lowest user activity. Stopping the database engine without warning - why? Lots of frustrated users and a telephone (yours) that won't stop ringing. Performing a service pack upgrade during working hours - usually this involves re-starting the core database engine. Don't do it, it'll annoy many people.

10 Ten Things a SQL Server DBA Should Never Do Running test queries against live servers - do you really know how long they'll run for or how much disk I/O they will demand? I thought not! Defragmenting the drive on which the database files sit - have you ever done this to your home PC? Then you'll know why you shouldn't do it to a live box in working hours. No, no, no. Being arrogant towards developers - why? A few can be a complete pain, but explaining to them the issues and trying to work towards a good working compromise is usually more productive than treating them unsympathetically. Likewise the support guys - you need each other. Foster good relationships with your work colleagues, in the long term it pays dividends..

11 Ten Things a SQL Server DBA Should Never Do Backing up during working hours - it's all about disk I/O. It serves the backup or it serves your users. If you have to do it, look at differentials or transaction log backups: they take less time and reduce dropped connections as a result. Executing updates against live data - you are kidding, right? At the very least, write a script, test it against a live copy, and backup the live database before you apply it. And if possible have a regression script which will allow you to back out the updates if reverting to a backup is not possible Performing vendor upgrades without testing or backing up - sad as it seems, vendors don't always test their upgrades thoroughly. Nor can they practically test against every hardware and software configuration available out there.. So always back up before running a patch. And if you can apply it to a test or development server first, do it.

12 Ten Things a SQL Server DBA Should Never Do Not securing your database servers - run the Microsoft Baseline Security Analyzer against your servers to find out your vulnerabilities and get clued up on security.Microsoft Baseline Security Analyzer Dropping a live database and the effect on your career - I once worked with someone who did this. He got sacked on the spot, and rightly so. If you only engage your brain to do one thing as a DBA, make sure it kicks off the alarm bells whenever you issue a DROP command

13 Find out more Check these out: – – –

14 Q & A Send questions to me at: Information about SolidQ at: THANK YOU!