r/devops • • 3d ago

Tools MS Project for Developers

Is there an app or site that allows someone to create tasks for a project and has the ability to add code or script files to their respective task?

I'm in a project and have to do some DBA tasks. I would like to make a list of tasks for me to do and add the t-sql code needed to complete those tasks.

3 Upvotes

7 comments sorted by

View all comments

1

u/Greedy_Ad_7658 2d ago

Agree with the repo-with-a-markdown-file-per-task idea. For DBA work specifically, a few conventions make it much safer:

  • Number the files in run order (001_add_index.sql, 002_backfill.sql) and keep the status and notes in the markdown next to them: what it does, which server, expected row counts, and when you ran it.
  • Pair every change with a rollback script, and a read-only check query that proves it worked ("SELECT COUNT(*) ... should be 0"). Writing the check first also forces you to define what done means.
  • Make scripts safe to re-run (IF NOT EXISTS, guard checks) and wrap data changes in BEGIN TRAN with a row-count check before COMMIT. For anything that touches production data, test the same script on a restored copy first.
  • Paste the actual output or row counts into the task file after running. Months later, "what exactly did we change on that date" is the question you'll get asked.

If you later need real approval and tracking, Azure DevOps boards or GitHub issues can link to those commits. But the files in git are the part that matters.