SQL Server Science
Technical Articles for the DBA / Developer
Home » legacy-code

Scanning Stored Procedures for SQL Injection with AI

2026-04-23 · by Hannah Vernon · in AI for DBAs

Use AI to audit stored procedures for SQL injection EXEC patterns, QUOTENAME misuse, and second-order injection risks.

Eliminating Legacy Cursors: An AI-Assisted Deep Dive

2026-04-23 · by Hannah Vernon · in AI for DBAs

A deep dive into decomposing complex legacy cursors with AI using the bulk-first, loop-for-side-effects pattern.

Mapping Stored Procedure Dependencies with AI

2026-04-23 · by Hannah Vernon · in AI for DBAs

Use AI to map stored procedure dependencies, table access, and circular references across your codebase.

Dissecting Dynamic SQL with AI

2026-04-23 · by Hannah Vernon · in AI for DBAs

Feed complex dynamic SQL to AI for execution flow explanation, injection risk analysis, and parameterized rewrites.

Converting Implicit Joins to ANSI Syntax with AI

2026-04-23 · by Hannah Vernon · in AI for DBAs

Use an AI agent to convert legacy implicit joins to ANSI JOIN syntax safely.

Understanding Unfamiliar Code: Reverse-Engineering Legacy Procedures

2026-04-23 · by Hannah Vernon · in AI for DBAs

Feed undocumented stored procedures to an AI agent and get clear explanations, dependency maps, and refactoring suggestions. Tame your legacy code.

Search

Categories

  • AI for DBAs
  • announcements
    • events
  • basics
    • localization
  • configuration
  • DMVs
  • documentation
  • extended-events
  • Internals
  • maintenance
    • patching
  • performance
  • 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