Category: Blog

  • The Book of Redgate: Do Your Best Work

    One of our mission statements in the Book of Redgate says: attempt to do the best work of your life.

    I’d like to think that at most points in time, people are trying to go good work. There are always times when you are distracted, ill, new child, etc. However, doing the best work of your life? Do you think you are always doing the “best work” at a new place? Or being the best version of yourself at this current position?

    I think I am, and this is a good reminder to strive for being the best you can be at that point in time.

    The text alongside this value is: We’d like you to achieve your own greatness and to be all that you can be. We’ll try hard to allow that to happen and we’d like you to try hard too.

    That’s comforting and inspiring. I do think we try to allow people to grow and achieve things. It’s a nice environment.

    I have a copy of the Book of Redgate from 2010. This was a book we produced internally about the company after 10 years in existence. At that time, I’d been there for about 3 years, and it was interesting to learn a some things about the company. This series of posts looks back at the Book of Redgate 15 years later.

  • A DevOps Workshop Tomorrow in Atlanta

    Tomorrow is the Redgate DevOps Day in Atlanta. You can still sign up, so do that if you can make it. Here’s the rough outline

    • Vision Session – w/ Advocate Steve Jones
    • Redgate Flyway hands-on Session
    • 6 ways to Elevate Database Monitoring
    • Whiteboarding Session
    • Test Data Manager Demo Session
    • Networking/Happy Hour

    Lunch is provided and I’m looking forward to this. I’m traveling from Baton Rouge today to Atlanta (probably right now), coming from a customer visit.

    Register and come see me in Atlanta tomorrow

  • SQL Saturday NYC 2025 Slides Building an API with DAB

    I forgot to do this Saturday, and was traveling all day yesterday, but I’m finally getting this done. Thanks to everyone that attended my talk on building an API with the Data API Builder.

    Slides: BuildingAPI.pptx

    Demo code repo: https://github.com/way0utwest/DAB-Experiments

    Note, the repo is a little unorganized, but I’ve tried to add some stuff in the Getting Started as READMEs. If you have questions, let me know.

  • T-SQL Tuesday #186–Agent Jobs

    It’s that time of the month again, when the T-SQL Tuesday blog party takes place. I manage this site, and am looking for hosts all the time. This month I managed to convince Andy Levy to host, and I’m grateful for his participation.

    His invitation is asking about SQL Agent jobs and how they are managed. It’s focused, but he gives a lot of choices for how to examine this subsystem in SQL Server.

    Note: if you work in Oracle or PostgreSQL or anything else, how do you schedule work in an automated fashion? Cron? Something else? You can still write.

    If you want to host, ping me and I’ll get you a month.

    Designing Jobs for an Enterprise

    I used to work in a fairly large enterprise (5,000+ people, 500+ production SQL instances) with a small staff. It was 2-3 of us to manage all these systems, as well as respond to questions/queries/issues with dev/test systems. As a result, we depended heavily on SQL Agent.

    We decided on a few principles which helped us manage jobs, with a (slow) refactoring of the existing jobs people randomly created with no standards. A few of the things we did are listed below. This isn’t exhaustive, but these are the main things I remember.

    Name schedules clearly

    Scheduling gets crazy. As a result, we would try to name with the days and times something ran. For days, we’d use SMTWRFSa. If something ran every day, that was in the name. If it were week days, then it had MTWRF in the name. Thursdays only were R.

    We’d include a time, such as 0200 or 1830 in there. If there were just one or two times, we’d list those. If it were more often, we had “every hour” or “every 15 minutes”.

    This wasn’t perfect, but it made most schedules clear.

    Job Names and Descriptions

    We tried to make job names clear with a starting noun (Backup, Maintenance, Sales), which was a little overloaded. It was a DBA thing for most work that DBAs might run and a department for those business level things.

    Job Steps

    I tried desperately to get away from code in the job step and use stored procedures instead. This helps us tune and watch things that run, and it keeps code in code places.

    For DBA stuff, we had a DBA database on each instance for our procs. We’d put our code in there (Ola’s procs, our own custom maintenance things, checks, ETL, etc.). This way we could more easily run server level stuff.

    For business level jobs or things related to a db, we want a proc in there. Then call that. This also let us often have a logging table alongside the proc where we could track progress.

    Alerts/Operators

    Luckily we had a monitoring solution that notified us when jobs failed. We didn’t use these systems. However, we did have an auditing report that queried DMVs and noted job failures and stored this data in a table (rolling 30 days) and used it to produce a daily report we archived in a folder.

    This was for our ISO compliance and auditors loved it. We would store a daily report and then add a daily note of any actions we took. That way we knew what we did and had a record.

    Summary

    For most of the other options (categories, etc.) we ignored them. The goal was to keep things very simple and streamlined. We had a standard job we deployed to most servers as part of a build process.

    We also drove a lot of activity in code off queries as much as possible and only used a table to log exceptions. We might have a table that stored the “FinanceDW” db name as an exception. The backup process would get a list of all dbs, and then delete those in the exception table. Then run as normal.

    K.I.S.S. worked very well for us.