Menu

1 / 4

AI-Written SQL (and Stored Procedures) From “Works” to “Trusted”

DEV Community: sql·Judy·4 days ago
#a11WezMS
#devtosql#devto#dev#code#script
Long article (4167 words) — no AI summary yet.
Reading 0:00
15s threshold

Assetization = auditable + deterministic + verifiable: engineering assets that AI writes and that people can understand and audit

AI has made writing cheap; reviewing has not become any cheaper. This piece is not about how to make models write more accurate SQL. It asks a different question: can we make it impossible for the model to write the wrong thing at all — put it in the planning layer and hand generation to a deterministic compiler? The goal is not a piece of code that runs, but an asset that people can read, change, and port.

1 Writing got cheap; reviewing did not

A 60% accuracy rate is not enough for production

Direct natural-language-to-SQL for complex queries typically lands around 60% accurate — roughly one error every three or four attempts. For throwaway scripts you read yourself, that hit rate does save time. But once the result feeds a report, a reconciliation, or a downstream batch job, every error is a rework cycle.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.