Eight Things A DBA Should Always Do with SQL Server

SQL Server
44 Comments

I started tweeting various single-words you could start an argument with the other day. I really liked this suggestion from @SQL_Kiwi:

It got me thinking. What are the things that I would say you a DBA should always do or be ready for with SQL Server, unconditionally?

You should always:

As for the “nevers”, I’ll let you come up with that list.

Previous Post
Oracle Flashback: Undeleting Data
Next Post
We’re Hiring a Salesperson

44 Comments. Leave new

  • Never enable auto-shrink.

    Reply
  • Another good one to start discussions among DBA’s, sys admins, storage admins and pretty much everyone in IT…. Virtualization

    Reply
  • DBA should always set job notifications to notify on failure in production.

    Reply
    • Except if it’s a developer’s job. The last thing I want as a DBA is job failure notifications for non-DBA jobs.

      Reply
  • Never ask your Microsoft Rep when they will have SQL Server for Unix.

    Reply
  • Never listen to a VAR company’s SQL Server recommendation when implementing Microsoft Dynamics AX.

    Reply
  • Never leave your ‘sa’ password blank.

    That’s about the only one I can think of that may not have a ton of rebuttals, besides:
    Never hit your server with a sledge hammer, despite the occasional desire to do so.

    Reply
    • Kendra Little
      January 8, 2015 2:52 pm

      Sometimes you just have that Office Space kind of a day. I guess that’s what printers are for.

      Reply
      • Funny that. I’m from Dallas and have met Mike Judge several times. We have talked about our worst or the worst IT contracting jobs and laughed about a shared hatred for all Fax machines. Joked more than once that someone should play Frog Baseball with the Fax Machine to teach it a lesson. After one of these sessions me and a friend realized we knew where one of these Fax Machines lived and how to get to it.

        NEVER commit a hate crime against a Fax Machine. Especially while intoxicated.

        Reply
    • How about: never use SQL Authentication?

      Reply
      • Tis unfortunate when vendor’s apps require SQL Authentication.

        Reply
      • Why?

        Reply
      • Scenario for using SQL Authentication (please inform if invalid):
        I’m a developer and accidental DBA. I’ve created a SQL Authentication account for DBA sysadmin tasks, while my integrated security account is lumped with all other users for testing.

        Reply
        • Alex – people often create a separate AD account for that, and then remote desktop into a different machine when they do domain-admin-level work.

          Reply
          • Thanks Brent. That was my initial feedback as well; the AD administrator said he’s against setting up an additional “test” account for me, so I’m making due for now, but I’ll add it to my growing list of issues to readdress.

  • Never: Run a bunch of code without reading it OR
    Assuming that you are running it against a test instance !

    Reply
  • Another one: Never pluralize an acronym with an apostrophe.

    Reply
  • Never put the word ‘TEST’ in your Production SQL Server Name and/or SQL Instance.

    Reply
    • Kendra Little
      January 8, 2015 3:06 pm

      I shouldn’t laugh, because someone probably learned that the hard way, but…. oh wow, that’s funny. And true.

      Reply
      • A “SysAdmin” with no SQL experience should never set up a SQL Server… (everything and I mean everything on C:)

        Reply
  • Pushing the edge maybe, but never use a GUID as a PK/clustered index on a highly transactional OLTP db.

    Reply
    • James Anderson
      January 9, 2015 10:47 am

      I wouldn’t say never on that as there may be a requirement to maintain a unique Id across multiple tables/databses/systems. A sequential GUID can be a bit better.

      Reply
      • That requirement (unique ID across many systems) is why the architects at my previous employer chose to use a GUID, and also why it was an absolute nightmare to fix once we had exhausted the other options to improve perf.

        Reply
  • Never assume the backup was done on the production side by another member of your team before you start making major changes.

    Reply
  • Never give developers sys admin access. Ever. (ooh, stirs pot!!)

    Reply
  • Never assume you know all there is to know about SQL Server

    Reply
    • “Never assume you know all there is to know about SQL Server” – Because the Developers with SysAdmin are the true experts.

      Reply
  • Never use a consultant’s data conversion SSIS package.

    Never trust a vendor who says his application maintains data integrity without the use of foreign keys, triggers, contraints, or enforced natural keys.

    For all things in life – never use a cunning plan when a simple one will do.

    Reply
  • Never assume the backups will restore…

    Reply
  • Philip Kelley
    January 10, 2015 8:52 pm

    Never let anyone (developer, manager, or in between) get away unquestioned with sentences containing the words “assume” or “should”.

    Reply
  • Matthew Holloway
    January 11, 2015 10:28 pm

    Never assume that the staging database is not actually the production database just because someone was supposed to update the connection string during the last roll out.

    Reply
    • Ooooooo OUCH!

      Reply
      • Matthew Holloway
        January 12, 2015 2:39 pm

        Oh aye, my first and biggest mistake in SQL (3 months into first experiences with SQL), I deleted what should have been an obsolete database several months after a roll out.
        Consequently I now take DB’s offline before deleting them and we now take backups of our staging servers… even though in theory dbs should never live here longer than a day.

        Reply
        • Matthew Holloway
          January 12, 2015 2:47 pm

          A colleague was able to restore everything except the last hour or so and some schema changes with some fancy restores from the prod database that was not actually being updated and the log files we had from being in full recovery mode.
          It wasn’ t pretty. There was a fair bit of shouting and cursing the new guy. It was a lesson in never assuming and always having more backups than you think you will ever need.

          Reply
  • Never turn your back on a running Sql Server. Back Slowly Away.

    Reply
  • Never delete the tempdb. It’s not temporary

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

Fill out this field
Fill out this field
Please enter a valid email address.