Problems displaying this newsletter? View online.
SQL Server Central
Featured Contents
Question of the Day
 
The Voice of the DBA
 

Make It Routine

The first one is hard. The rest are boring.

I hear this statement from someone recently, and it sounds like something a technical person would do with a task. It's often been a goal of mine, or maybe a direction to aim, that I want to make things easier with some script or automation. Sometimes I think it's more aspirational than actual. I might want to make most things routine and automated, but that doesn't always work out.

The first time I tackle something, it should be hard. It's new work. It's a new process/code/thought/action/etc. It's unfamiliar and I spend more time on it than I want. After that, I'd hope I could repeat the thing again in much less time. That's the goal, and that's what we aim for in a lot of DevOps work. Make the things we think are hard, less hard. Make them boring by codifying things, using automation, have the computer replicate the things.

I think the second time I tackle a task is often hard as well. How often have you tried to reproduce something you did and can't quite get it? Heck, I now depend (and use) SQL History constantly because I will write some code, change it a bunch, and then realize that I can't reproduce the version that did the thing (or broke the thing) I was working on. I need to rewind things and figure them out again. Usually by the 4th time I've done something, it's starting to become easier. By the 10th its boring.

Unless I'm playing guitar, in which case, some things take a few more reps than 10.

I've had plenty of developers say never repeat yourself. If you can automate it, you should. In practice, that's hard. Sometimes I'm unsure of whether I'll do something again, or often enough to spend the time automating it. There are also times I'm not sure it's worth the effort. I spent a day once trying to automate a bunch of Outlook appointments, only to realize the whole Office API and deluge of information out there made this much harder than the 15 minutes a year I spend putting in all my Database Weekly reminders.

I don't want to discourage you from automating things and making them routine or boring. My database deployments ought to be routine. The daily checks should be so boring and automated that I don't bother with them because I know the machine is doing the work and will let me know if there is something I should examine. The efforts to refresh dev dbs, or respond to audit requests, or even reset a password ought to be boring and easy. Some of us build ways to smooth these tasks and ease our jobs, and some of us treat every one as an ad hoc thing that we do over and over.

The over and over stuff is going to be taken over by AI. Maybe soon, maybe in a few years, but a lot of simple stuff that you keep doing, that mindless, tedious stuff that doesn't require a lot of thought, is going to be handled by AI agents. Either you'll direct them, or your boss will ask someone else to do it after you leave. AI can handle things like figuring out disks are full and cleaning out old log files, shrinking disks, archiving things, and then writing scripts (and scheduling them) to prevent issues. If that's your job, your days are numbered.

Make things routine by thinking about the pattern, how we could reduce or eliminate a lot of labor, and how we can use a computer to handle them. Even better, learn how to guide an AI to do that work and prove your worth to your employer.

 

Steve Jones - SSC Editor

Join the debate, and respond to today's editorial on the forums

 
 
 Featured Contents
SQLServerCentral Article

Finding Gaps in Sequential Data Using SQL Server

Imran2629 from SQLServerCentral

Many systems expect a sequential range of numbers for invoices, ticket numbers, and more. Learn how you can identify where you have gaps in your sequences.

Technical Article

What is cloud database vendor lock-in? The 3 types explained (and how to audit yours)

Additional Articles from SQLServerCentral

Cloud database vendor lock-in is one of the most expensive surprises in enterprise infrastructure — not because the dependency is hidden, but because most teams never quantify it before committing to a platform.

Blog Post

From the SQL Server Central Blogs - Automated SQL Server Benchmarking with HammerDB and Docker: A Complete Testing Framework

aen from Anthony Nocentino Blog

I’m excited to announce the release of a new open-source project that fully automates HammerDB benchmarking for SQL Server using Docker. If you’ve ever needed to run TPC-C or...

Blog Post

From the SQL Server Central Blogs - T-SQL Snapshot Backups on Availability Group Secondary Replicas

dbafromthecold@gmail.com from The DBA Who Came In From The Cold

One of my favourite features of SQL Server 2022 was the T-SQL Snapshot Backups. The ability to leverage the snapshot capabilities of modern storage arrays to take application consistent...

Pro SQL Server 2022 Wait Statistics: A Practical Guide to Analyzing Performance in SQL Server and Azure SQL Database

Site Owners from SQLServerCentral

Use this practical guide to analyze and troubleshoot SQL Server performance using wait statistics. You'll learn to identify precisely why your queries are running slowly. And you'll know how to measure the amount of time consumed by each bottleneck so you can focus attention on making the largest improvements first. This edition is updated to cover analysis of wait statistics current with SQL Server 2022. Whether you are new to wait statistics, or already familiar with them, this book provides a deeper understanding on how wait statistics are generated and what they mean for your SQL Server instance’s performance. 

 

 Question of the Day

Today's question (by Steve Jones - SSC Editor):

 

Negative and Positive Numbers

If I want to know whether a number of negative, positive, or zero, what is the easiest way to get this in T-SQL?

Think you know the answer? Click here, and find out if you are right.

 

 

 Yesterday's Question of the Day (by Steve Jones - SSC Editor)

Hyperscale Replicas II

How many Azure SQL DB Hyperscale HA replicas can be configured as of Sept 2026?

Answer: 0-4

Explanation: You can configure from 0-4 AH replicas for your Hyperscale edition database. Ref: Hyperscale secondary replicas - https://learn.microsoft.com/en-us/azure/azure-sql/database/service-tier-hyperscale-replicas?view=azuresql-db

Discuss this question and answer on the forums

 

 

 

Database Pros Who Need Your Help

Here's a few of the new posts today on the forums. To see more, visit the forums.


SQL Server 2019 - Administration
Having some performance issues with linked server query - When I run my query from DW, which uses a linked server, it times out. I then take that query, run directly on a linked server with select top 1 and it takes 85 minutes. Now I restore the linked server DB in test. I run the same query from test DW and it takes […]
Editorials
Your Favorite Quotes - Comments posted to this topic are about the item Your Favorite Quotes
AI Experience Gap that we keep talking about - Comments posted to this topic are about the item AI Experience Gap that we keep talking about
I Don't Want To Do XX - Comments posted to this topic are about the item I Don't Want To Do XX
Article Discussions by Author
Hyperscale Replicas II - Comments posted to this topic are about the item Hyperscale Replicas II
Practical Reporting Queries with CROSS APPLY (Part 3) - Comments posted to this topic are about the item Practical Reporting Queries with CROSS APPLY (Part 3)
Implementing Type 4 Slowly Changing Dimensions in SQL Server - Comments posted to this topic are about the item Implementing Type 4 Slowly Changing Dimensions in SQL Server
The Disabled Index - Comments posted to this topic are about the item The Disabled Index
Server-Level Table sizes - Comments posted to this topic are about the item Server-Level Table sizes
ORDER BY alias - Comments posted to this topic are about the item ORDER BY alias
Optional Parameter Plan Optimization in SQL Server 2025: Fixing the Kitchen-Sink Search Procedure - Comments posted to this topic are about the item Optional Parameter Plan Optimization in SQL Server 2025: Fixing the Kitchen-Sink Search Procedure
Squared Values - Comments posted to this topic are about the item Squared Values
Managing Feature Flags with GET_BIT() and SET_BIT() in SQL Server - Comments posted to this topic are about the item Managing Feature Flags with GET_BIT() and SET_BIT() in SQL Server
Stored Procedures for Server-Level Object and Column Search - Comments posted to this topic are about the item Stored Procedures for Server-Level Object and Column Search
Databricks Genie Spaces for SQL Analysts: Natural Language Querying Without Leaving Your Data Platform - Comments posted to this topic are about the item Databricks Genie Spaces for SQL Analysts: Natural Language Querying Without Leaving Your Data Platform
 

 

RSS FeedTwitter

This email has been sent to {email}. To be removed from this list, please click here. If you have any problems leaving the list, please contact the webmaster@sqlservercentral.com. This newsletter was sent to you because you signed up at SQLServerCentral.com.
©2019 Redgate Software Ltd, Newnham House, Cambridge Business Park, Cambridge, CB4 0WZ, United Kingdom. All rights reserved.
webmaster@sqlservercentral.com

 

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -