cd /news/large-language-models/verified-llm-based-query-rewriting-f… · home › topics › large-language-models › article
[ARTICLE · art-182222] src=al.radbox.org ↗ pub= topic=large-language-models verified=true sentiment=↑ positive

Verified LLM-Based Query Rewriting for Microsoft SQL Server

Microsoft researchers Kukjin Lee, Anshuman Dutt, Vivek Narasayya and Surajit Chaudhuri published a demonstration paper in Proceedings of the VLDB Endowment (volume 19, issue 12, pp. 4594-4597, August 1, 2026) describing an LLM-based query tuning tool for Microsoft SQL Server that recommends semantically equivalent query rewrites to cut execution time. The tool, shipped as an extension to SQL Server Management Studio (SSMS), verifies semantic equivalence of each candidate rewrite using SQL Server's query optimizer, since the LLM alone cannot guarantee it, and uses an anytime tuning algorithm to stay within a user-supplied time budget and minimum required improvement. The authors call it the first tool of its kind that lets DBAs and application developers safely operationalize LLM-based query rewriting.

recommendation

Verify every LLM-proposed query rewrite for semantic equivalence with the database optimizer before applying it, and cap the search with an anytime algorithm so slow verification steps are short-circuited within the time budget.

more in playbook: Verifying model output
by read1 min views1 publishedDec 5, 2026

Verified LLM-Based Query Rewriting for Microsoft SQL Server Authors:

Kukjin Lee , Anshuman Dutt , Vivek Narasayya , Surajit Chaudhuri Published:

Proceedings of the VLDB Endowment, volume 19, issue 12, pp. 4594-4597. August 1, 2026. Abstract:

Query rewriting is one of the techniques used by database developers and administrators to tune the performance of poorly performing SQL queries. We have developed an LLM-based query tuning tool for Microsoft SQL Server that takes as input a query, tuning constraints such as minimum required improvement and time budget, and automatically recommends semantically equivalent query rewrites that improve the execution time of the query. The software tool is incorporated as an extension to SQL Server Management Studio (SSMS). Our demonstration highlights two important capabilities. First, while LLMs have the ability to generate promising candidate rewrites for the given query, they cannot guarantee semantic equivalence of a query rewrite. We use a technique we developed for verifying semantic equivalence of two queries, which leverages the built-in capabilities of Microsoft SQL Server's query optimizer. Second, we judiciously use the given time budget by adopting an anytime tuning algorithm and employing optimizations that help short-circuit the expensive steps of verification and execution for each candidate rewrite. To the best of our knowledge this is the first tool of its kind that enables DBAs and application developers to safely operationalize LLM-based query rewriting. BibTeX:

@article{lee2026,
  title = {{Verified LLM-Based Query Rewriting for Microsoft SQL Server}},
  author = {Kukjin Lee and Anshuman Dutt and Vivek Narasayya and Surajit Chaudhuri},
  journal = {Proceedings of the VLDB Endowment},
  volume = {19},
  issue = {12},
  year = 2026,
  month = 8,
  day = 1,
  doi = {10.14778/3827998.3828074},
}
── more in #large-language-models 4 stories · sorted by recency
── more on @microsoft 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/verified-llm-based-q…] indexed:0 read:1min 2026-12-05 · —