• Skip to main content
  • Skip to primary sidebar

DallasDBAs.com

SQL Server Database Consulting

  • Services
  • Pocket DBA®
  • Blog
  • Testimonials
  • Contact
  • About

SQL

Stories from the HealthCheck – part 4

January 10, 2020 by Kevin3NF Leave a Comment

This week I have been highlighting the top items that I see on almost every SQL Server I run across that need to be changed in almost every instance.

If you know me at all, or have read anything from me, you probably already know what’s coming – 

Number 4, for Freaky Friday:

Indexes

  • No indexes – bad – everything is slow
  • Lots of indexes – bad – everything is slow, despite having some great indexes
  • Duplicate indexes – bad – everything is slow and there is no benefit
  • Unused Indexes – bad – the junk drawer of SQL Server needs some attention
  • Goldilocks indexes (the just right ones) – Great!

You guys are great, and I applaud you for making the effort…but indexes are hard. The idea is easy, but the implementation is hard to get right and it changes over time with your workload.

New features and changing traffic patterns can mess up a perfectly good index strategy.  Reviewing your indexes is like getting your oil changed in the car – do it regularly or risk everything grinding to a halt.

EVERY HealthCheck I have done since starting Dallas DBAs has pointed out that an indexing project was desperately needed.  Some better than others, but they all needed help.

Please – Seek help! (DBAs…see what I did there?)

Thanks for reading!

Kevin3NF

Follow @Dallas_DBAs

Filed Under: HealthCheck, SQL

Stories from the HealthCheck – part 3

January 9, 2020 by Kevin3NF Leave a Comment

This week I am highlighting the top items that I see on almost every SQL Server I run across that need to be changed in almost every instance.

Number 3:

Instance level settings

Many of you (most?) are familiar with instance level settings such as MAXDOP, Backup Compression and Max Server Memory…and you should be. Good for you!

Are you also familiar with ‘Cost Threshold for Parallelism’ and ‘Optimize for Ad Hoc Workloads’? I’m guessing not as much as the others.

The default settings on these are what most clients I see are running, and they are usually WRONG.

Cost Threshold for Parallelism – deals with the question ‘How ugly does this query have to be before I use more than one processor?’ The default is ‘5’, but for most servers today it should be 25 or even 50 to get the best balance of processor usage at the query level.

Optimize for Ad Hoc Workloads – this setting may or may not apply to your server – it depends on the workload and the type of queries you run from your apps. If its not set properly, you may be churning your plan cache, which can be a performance killer.

These are easy to change and easy to get wrong…consult a professional! Google is not a pro, but can help you find one. Like Me (b|t). Or Pinal (b|t). Or Brent (b|t).

Thanks for reading!

Kevin3NF

Follow @Dallas_DBAs

Filed Under: HealthCheck, SQL

Stories from the HealthCheck – part 2

January 8, 2020 by Kevin3NF Leave a Comment

This week I am highlighting the top items that I see on almost every SQL Server I run across that need to be changed in almost every instance.

Number 2:

CheckDB

I’ll give you a little leeway on this one, despite how rampant it is. I get that many of you have never heard of database corruption.

Its a thing.

Its a bad thing

Its a potential data-loss thing! (that got your attention, yeah?)

If your database(s) get corrupted, Microsoft’s standard answer is to restore from your last non-corrupt backup (see yesterday’s post).

Things you should be doing:

  • Set your Page Verification level to Checksum
  • Set up a recurring job to run DBCC CheckDB against ALL of your databases (SQL has built in tools for this, or use Ola Hallengren’s FREE scripts)
  • Turn on alerts for Errors 823, 824, and 825
    • Make sure an email goes to someone that knows how to respond to these errors

Corruption can come from a number of places.

  • Storage subsystem – common
  • Bad versions of SQL Server – less common – patch your servers.
  • Funky Code situations – much less common
  • Other – no, I’m not going to list every possible option, lol

If you do all this and then get that dreaded email or alert from your monitoring tools – read this article before you do anything else.

Now go Check your CheckDBs.  Now.  Go.

Thanks for reading!

Kevin3NF

Follow @Dallas_DBAs

Filed Under: HealthCheck, SQL

Stories from the HealthCheck – part 1

January 7, 2020 by Kevin3NF 1 Comment

This week I will be highlighting the top items that I see on almost every SQL Server I run across that need to be changed in almost every instance.

Number 1 by a landslide:

Backups

We’ve been backing up SQL Server in the same way since at least SQL 7.0 from the late 90’s, yet…there are so many bad or missing backup plans:

  • No backups at all
  • Backups to the same drive as the databases
  • Backups to the same server as the databases
  • Backups with irregular frequency (manual?)
  • Production databases with no transaction log backups (so no ability to restore to a point in time)
  • VM backups only, and once a day at best

Every one of these exposes you to data loss that is probably very unacceptable to your customers.

If you think that because you are in the cloud, or have a great SysAdmin/Infra team you are covered, let me give you two reasons to completely re-think your strategy:

  • User error
  • Ransomware

Your expensive HA solution will not save you from accidentally deleting a table.  Ransomware can bankrupt a small business.

Thanks for reading!

Kevin3NF

Follow @Dallas_DBAs

Filed Under: HealthCheck, SQL

T-SQL Tuesday 121: The Gift of the Dream Job I Didn’t Know I Wanted

December 10, 2019 by SQLandMTB Leave a Comment

T-SQL Tuesday is a monthly blog party for the SQL Server community. It is the brainchild of Adam Machanic (b|t) and this month’s edition is hosted by Mala (b|t) who has asked us to write about “Gifts received this year.” One idea given to write about was “landing a job you never thought you would,” which is perfect for me.

If you’ve followed my story, you know that I’m pretty new to the DBA world. I’m a retired worship leader who’s lost his voice and went home to work side-by-side with his wife in a graphic/web design biz. As I watched that business go through an extended downturn, I attempted to add photography services and grossly underestimated how saturated the local market was. In desperation for meaningful employment I reached out to my friends for help and referrals.

Kevin stepped in and offered a trial period as a DBA apprentice at Dallas DBAs and I’ve never looked back.

Why has becoming a DBA been such an amazing gift? Here are a few of my top reasons.

  • I get the opportunity to learn new things daily.
  • I get challenged by this role a great deal. That makes jobs enjoyable for me.
  • I get a steady income that brings stability and is allowing my family to build a new house in order to foster/adopt more kids.
  • I get to work from home and share an office with my wife—my favorite person in the world.
  • I get to work with my best friend, Kevin.
  • I get to ride my bike way more often than if I worked out of the house.
  • I got a new bike for Christmas as a direct result of this job.
  • I get to ride bikes with Kevin.
  • I get to continue working and serving at our church, which I love.

I could probably go on and on, and I fully expect being a DBA to continue to offer challenges and rewards in the year ahead!

Filed Under: Apprentice, Career, Cycling, Dallas DBAs, TSQL2sday

T-SQL Tuesday 121: Gifts

December 10, 2019 by Kevin3NF Leave a Comment

T-SQL Tuesday is a monthly blog party for the SQL Server community. It is the brainchild of Adam Machanic (b|t) and this month’s edition is hosted by Mala (b|t) who has asked us to write about “Gifts received this year” – which is appropriate for the last month of the decade!

So…many…gifts!

Aside from faith, family and friends which are the truest gifts in my life, I had a fantastic year, SQL Server-wise.

In somewhat order:

  • Dallas DBAs is doing very well and will hit a record for sales in 2019!
  • We hired Jeff and he’s been great…
  • SQLDork continues to contribute and learn every afternoon…
  • Got to go to Summit again this year!
  • SQL 2019!
  • New clients helping me pay Jeff and the Dork…
  • Ellipses, bullet points and exclamation points went on sale…!
  • On-site sponsor at SQL Saturday Cincinnati, Dallas and Austin!
  • Existing clients that trust us with their data and projects…
  • 2 freelance DBAs that I can offload small projects to!
  • New prospects for 2020!!!

I could go into lots of detail on each…but nah…go read some more T-SQL Tuesday posts!

Thanks for reading!

Kevin3NF

Follow @Dallas_DBAs

Filed Under: SQLSaturday, Summit, TSQL2sday

  • « Go to Previous Page
  • Go to page 1
  • Interim pages omitted …
  • Go to page 13
  • Go to page 14
  • Go to page 15
  • Go to page 16
  • Go to page 17
  • Interim pages omitted …
  • Go to page 37
  • Go to Next Page »

Primary Sidebar

Search

Sign up for blogs, DBA availability and more!

Home Blog About Privacy Policy
  • Home-draft
  • Blog
  • About Us

Copyright © 2026 · WordPress · Log in

 

Loading Comments...