SQL Server Science

Technical Articles for the DBA / Developer

Home

A Better Cursor Pattern for SQL Server: Cursor Variables and @@CURSOR_ROWS

2026-06-02 · by Hannah Vernon · in t-sql

Replace the traditional WHILE @@FETCH_STATUS cursor loop with a cleaner pattern using cursor variables, STATIC cursors, and @@CURSOR_ROWS for more readable, less error-prone T-SQL.

Self-Hosting Forgejo on Windows Server Hyper-V Step-by-Step

2026-06-01 · by Hannah Vernon · in tools

A complete walkthrough for running Forgejo on Debian 13 inside a Windows Server Hyper-V VM, with Docker Compose, Let’s Encrypt TLS, GitHub repo mirroring, and automated backups to a Windows network share.

Setting Up Your Three-Layer Backup

2026-05-31 · by Hannah Vernon · in Opinion

This is Part 3 of a series. In Part 1, I argued that open source licenses protect your code but not the infrastructure around it. In Part 2, I surveyed the landscape of options for…

Where Should Your Code Live Besides GitHub?

2026-05-30 · by Hannah Vernon · in Opinion

This is Part 2 of a series. In Part 1, I made the case that open source licenses protect your code but not the infrastructure around it. GitHub, npm, and the platforms we depend on…

Your Code Is Open Source. Is It Yours?

2026-05-29 · by Hannah Vernon · in Opinion

Open source licenses protect your code’s freedom. But when the platforms that host, distribute, and discover that code are controlled by a handful of US corporations, how free is it really?

Schedule Jobs in Azure SQL Database with Azure Functions

2026-05-28 · by Hannah Vernon · in configuration, tools

You don’t get SQL Server Agent in Azure SQL Database. If you’ve been a DBA for any length of time, that sentence probably made you twitch. Agent is the workhorse that runs your index maintenance,…

1 2 … 37 Next »

Search

Categories

  • AI for DBAs
  • announcements
    • events
  • basics
    • localization
  • configuration
  • DMVs
  • documentation
  • extended-events
  • Git for DBAs
  • Hot Takes
  • Internals
  • maintenance
    • patching
  • Opinion
  • performance
  • Professional Development
  • recovery
  • reporting
  • security
    • data security
  • service broker
  • SQL Server Agent
  • statistics
  • sys
  • t-sql
    • xml
  • tools
    • data masking
    • wsus
  • troubleshooting
  • Uncategorized

Pages

  • About SQL Server Science
  • Get Better Help with a Minimal, Complete, and Verifiable Example, or MCVE
  • Privacy Policy

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.

To find out more, including how to control cookies, see here: Cookie Policy

Copyright © 2026 SQL Server Science