<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/i-know-a-query-s-gonna-be-bad-when-tsql2sday-ngvz4dujq" -->

---
title: I Know a Query’s Gonna Be Bad When… #TSQL2sday | daily.dev
description: A short opinion piece identifying a classic warning sign of a problematic SQL query: an inline comment changelog listing dates and author initials. The author...
canonical: https://daily.dev/posts/i-know-a-query-s-gonna-be-bad-when-tsql2sday-ngvz4dujq
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: I Know a Query’s Gonna Be Bad When… #TSQL2sday | daily.dev
og:description: A short opinion piece identifying a classic warning sign of a problematic SQL query: an inline comment changelog listing dates and author initials. The author...
og:url: https://daily.dev/posts/i-know-a-query-s-gonna-be-bad-when-tsql2sday-ngvz4dujq
og:image: https://api.daily.dev/og/posts/NgVZ4dUJQ.png
og:image:alt: I Know a Query’s Gonna Be Bad When… #TSQL2sday
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# I Know a Query’s Gonna Be Bad When… #TSQL2sday

**[Brent Ozar](https://daily.dev/sources/brentozar)** · 3 min read · 0 upvotes · 0 comments

## Summary

A short opinion piece identifying a classic warning sign of a problematic SQL query: an inline comment changelog listing dates and author initials. The author argues this pattern signals technical debt, lack of proper change control, copy-paste-driven development, and a codebase nobody dares to refactor. The post uses the T-SQL Tuesday #200 prompt (signs a query is going to be bad) as its framing, and ends on an optimistic note that teams stuck in these patterns are often secretly ready for change.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.brentozar.com/archive/2026/07/i-know-a-querys-gonna-be-bad-when-tsql2sday>

## Similar posts on daily.dev

- [Beautiful T-SQL Queries: Three Could Delete the Company](https://daily.dev/posts/beautiful-t-sql-queries-three-could-delete-the-company-ni51yxeeb) · SQL Authority · 36 upvotes · 7 comments
- [Most of you calling yourselves “senior developers” are actually just professional litterers](https://daily.dev/posts/most-of-you-calling-yourselves-senior-developers-are-actually-just-professional-litterers-4qqappjr4) · Medium · 0 upvotes · 0 comments
- [There's No Limit to How Bad Code Can Get](https://daily.dev/posts/there-s-no-limit-to-how-bad-code-can-get-nsoryvawm) · Lobsters · 0 upvotes · 0 comments

---

Tags: [#microsoft-sql-server](https://daily.dev/tags/microsoft-sql-server), [#technical-debt](https://daily.dev/tags/technical-debt)

[View this post on daily.dev](https://daily.dev/posts/i-know-a-query-s-gonna-be-bad-when-tsql2sday-ngvz4dujq)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"I Know a Query’s Gonna Be Bad When… #TSQL2sday","url":"https://daily.dev/posts/i-know-a-query-s-gonna-be-bad-when-tsql2sday-ngvz4dujq","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/i-know-a-query-s-gonna-be-bad-when-tsql2sday-ngvz4dujq"},"datePublished":"2026-07-07T13:19:18.291Z","dateModified":"2026-07-07T13:21:28.077Z","description":"A short opinion piece identifying a classic warning sign of a problematic SQL query: an inline comment changelog listing dates and author initials. The author...","image":"https://media.daily.dev/image/upload/s--1KxV4ohY--/f_auto/v1722860400/public/Placeholder%2007","thumbnailUrl":"https://media.daily.dev/image/upload/s--1KxV4ohY--/f_auto/v1722860400/public/Placeholder%2007","isAccessibleForFree":true,"articleSection":"Brent Ozar","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Brent Ozar","logo":"https://media.daily.dev/image/upload/s--uHhajUhc--/c_limit,w_256/f_auto,q_auto/v1780213426/logos/brentozar?_a=BAMAMiWQ0","url":"https://daily.dev/sources/brentozar"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/i-know-a-query-s-gonna-be-bad-when-tsql2sday-ngvz4dujq","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"microsoft-sql-server,technical-debt","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Brent Ozar","item":"https://daily.dev/sources/brentozar"},{"@type":"ListItem","position":3,"name":"I Know a Query’s Gonna Be Bad When… #TSQL2sday"}]}
```

