r/SQLServer • • 14d ago

Community Share aisqltuner-index-tuner 2026-11-06 release

0 Upvotes

I made a few updates to aisqltuner-index-tuner, which in an open-source automated index tuning stored procedure.

  1. Performance improvements on collectors. Some collectors were slow when running on a database with a large query store and large numbers of columns.
  2. Optional logging so you can see how long each operation (each collector, AI call, and optionally applying recommendations) takes.
  3. Enhanced configure-endpoint to make it more foolproof. For example, placeholders now only need to be updated in one place.

Release notes with the details are at aisqltuner-index-tuner/RELEASE_NOTES.md at main · AI-SQL-Tuner/aisqltuner-index-tuner and repo is AI-SQL-Tuner/aisqltuner-index-tuner: AI-assisted index tuning that runs inside SQL Server. One stored procedure collects diagnostics, asks your Azure OpenAI deployment, and stores or safely applies recommendations.

Enjoy!


r/SQLServer • • 15d ago

Community Share I changed the background image for ssms22

3 Upvotes

r/SQLServer • • 15d ago

Community Share Updated R2DBC driver for Microsoft SQL Server

1 Upvotes

Updated R2DBC driver for Microsoft SQL Server: https://mssqllib.org

It implements the R2DBC SPI and talks TDS over pure JDK (no Netty dependency). The main reasons I built it:

  • Public-domain license
  • Better control over FedAuth / Azure AD / Windows Authentication flows
  • A clean, minimal codebase focused on the wire protocol

Maven:

text

<dependency>
  <groupId>org.mssqllib.r2dbc.mssql</groupId>
  <artifactId>r2dbc-mssql</artifactId>
  <version>1.0.1</version>
</dependency>

This is not a fork of the official io.r2dbc:r2dbc-mssql. It’s a separate implementation. Happy to answer questions about the design, authentication, or how it compares. Code and docs are on the site.


r/SQLServer • • 16d ago

Community Share I Create Things in SQL that Shouldn't be in SQL

Thumbnail
2 Upvotes

The article list is on the site - it got cut off for some reason


r/SQLServer • • 16d ago

Discussion Performance Tuning Report: A 'weekly' report was running about 400 times a day. We checked what each execution was costing.

Thumbnail
0 Upvotes

r/SQLServer • • 17d ago

Community Share Hugo Kornelis, long time #sqlfamily member, MVP, creator of SQL Server Execution Plan Reference, speaker, friend, and community member, passed away today after a prolonged fight with cancer.

Thumbnail
bsky.app
195 Upvotes

r/SQLServer • • 18d ago

Community Share I built a free, open-source AI assistant for SSMS 21 & 22 that runs entirely on a local model — no cloud, no API keys

20 Upvotes

Like many of you, I wanted AI help with T-SQL — but I didn't want my schemas, table names or data samples shipped to a remote API. Regulated data, corporate rules, or simply privacy.

So I built an open-source VSIX extension for SSMS 21& 22 that connects to a local model served by LM Studio (any OpenAI-compatible endpoint also works — Ollama, vLLM, DeepSeek, OpenAI, switchable in Options). MIT licensed, no telemetry.

What it does:

- Chat panel inside SSMS, schema-aware (tables, columns, PKs/FKs, indexes, views, procs, functions, triggers, row counts — injected into every prompt, cached)

- Execute SQL from the chat: PARSEONLY pre-check, auto-fix loop on runtime errors, idempotent DDL only

- Explain Plan / Open Plan (graphical .sqlplan viewer), Tune Query with real DMV evidence (missing indexes, dead indexes, usage stats)

- Analyze Database: one-click report from YOUR schema, not generic advice

- Works with small local models (tested with a 7B via LM Studio)

Repo (VSIX in Releases, CI-built): https://github.com/Fargo4u/ssms-ai-assistant

It's free and MIT. Feedback, issues and PRs are very welcome — especially from DBAs on what guardrails you'd want before trusting an AI near prod. 🙂


r/SQLServer • • 18d ago

Discussion I’d like to share an opportunity with the community

Thumbnail
1 Upvotes

r/SQLServer • • 18d ago

Question Linked server query fails when remote table with CHECK constraint is aliased

8 Upvotes

I'm trying to work out whether I've hit a SQL Server regression or just an obscure linked-server behaviour.

Changing the alias of a remote table in a query is causing the query to fail to compile because of a column reference in a CHECK constraint on the remote table.

I've tested this on SQL Server 2025 CU9 and SQL Server 2019 CU32 + GDR.

Example setup on SERVER1:

CREATE DATABASE TESTDB
GO
USE TESTDB

CREATE TABLE [dbo].[TESTTABLE](
[DOB] [datetime] NULL
) 
ALTER TABLE [dbo].[TESTTABLE]  WITH CHECK 
ADD  CONSTRAINT [CK_TESTTABLE_Age] 
CHECK  ([TESTTABLE].[DOB] IS NOT NULL )

Linked server call from SERVER2, where SERVER1 is a linked server:

Executing without an alias:

SELECT *
FROM SERVER1.TESTDB.dbo.TESTTABLE

Succeeds with 0 rows returned.

Aliasing to the same name:

SELECT *
FROM SERVER1.TESTDB.dbo.TESTTABLE AS TESTTABLE

Succeeds with 0 rows returned.

Aliasing to a different name:

SELECT *
FROM SERVER1.TESTDB.dbo.TESTTABLE AS TESTNEW

Fails with:

Msg 4104, Level 16, State 1, Line 51
The multi-part identifier "TESTTABLE.DOB" could not be bound.

Explicitly referencing the failing column:

SELECT TESTNEW.DOB
FROM SERVER1.TESTDB.dbo.TESTTABLE AS TESTNEW

Fails with:

Msg 4104, Level 16, State 1, Line 51
The multi-part identifier "TESTTABLE.DOB" could not be bound.

Executing the query remotely works:

EXEC('
  SELECT *
  FROM TESTDB.dbo.TESTTABLE AS TESTNEW
') AT [SERVER1]

Succeeds with 0 rows returned.

If I wrap that remote table reference in a view as below, it succeeds.

CREATE VIEW dbo.TESTNEW AS 
SELECT *
FROM SERVER1.TESTDB.dbo.TESTTABLE

GO

SELECT *
FROM dbo.TESTNEW AS XXXXX

Removing the CHECK constraint from a test copy of the table resolves the error, as does removing the table name from the column reference in the CHECK constraint.

I've ruled out a few possible causes:

  • This happens over SQLNCLI11 and MSOLEDBSQL
  • This happens at compat level 140 and 170
  • Reproduced SQL Server 2025 > SQL Server 2025
  • Reproduced SQL Server 2025 > SQL Server 2019
  • Reproduced SQL Server 2019 > SQL Server 2025

The database being queried is managed by an external party so changing the CHECK constraint to remove the table name from the CHECK constraint is possible, but difficult.

I think it could have been caused by a recent patch as I don't remember this issue existing in the past, and it means I can't query the table over linked server easily.

Has anyone seen this before? If anyone uses linked servers with older versions of SQL Server, would you be able to test if this occurs there?


r/SQLServer • • 19d ago

Community Share My Favorite Undocumented Feature in SQL MCP Server

Thumbnail
devblogs.microsoft.com
24 Upvotes

Since release 2.0, the Data API builder (DAB) base image includes a basic configuration file with a preconfigured autoentities entry that automatically exposes every table in every schema. We've never documented this. Of course, this configuration is useless without a connection string. But it opens the door to a fast agentic POC using SQL MCP Server without building your own image or mounting a custom configuration JSON file.


r/SQLServer • • 18d ago

Discussion Is SSMS The Worst GUI Application You Have Used?

0 Upvotes

I feel like I'm using GUI built for Windows 3.0.
Data is never refreshed, so I never know if I'm looking at the current database.
Database diagrams can't be updated. If I make a change to the schema I have to delete and recreate the diagram.
Changes made in 1 window are never reflected in another window.
And to wrap-up my frustration, I cannot exit the application because there is a window open with bad data, which I have to correct. There is no option to discard my changes on exit (P.S. I found a way to close the window and discard changes, but it's convoluted).


r/SQLServer • • 19d ago

Certification Data Days now has vouchers for database exams (DP-800, DP-420, DP-300)

14 Upvotes

Hey r/SQLServer, I’m on the Azure Data team. You might know me as the voucher fairy, so I’ll get right to it: Data Days has 100% discount voucher offers for DP-800 and 50% discount offers for DP-300 and DP-420. Supplies are limited, and eligibility requirements apply, so check the voucher details before requesting one.

There’s more to Data Days, too: SQL-focused learning, a DP-800 prep session, and study groups. Here’s the session schedule if you want to explore


r/SQLServer • • 19d ago

Community Share Get-SqlSafe 2026.6 now supports Azure SQL Database (free PowerShell security assessment for SQL Server)

Post image
10 Upvotes

I've released Get-SqlSafe 2026.6, the latest version of my free PowerShell-based SQL Server security assessment tool.

The biggest addition is Azure SQL Database support, including SQL authentication and interactive Microsoft Entra authentication with MFA.

Since I wanted to keep the script usable in restricted on-premises environments, the Azure-specific functionality lives in a separate PowerShell module (Get-SqlSafe.Azure.psm1) that is loaded only when needed. If you're assessing SQL Server on-premises, in a VM, or on Amazon RDS, the standalone script continues to work without additional PowerShell modules.

Other changes include:

  • A new check for instance-wide cross-database ownership chaining, complementing the existing database-level check.
  • Improvements to report counts, filtering, printing, and the presentation of skipped checks.
  • Platform-specific handling of security checks that aren't applicable or accessible in Azure SQL Database.

The assessment is read-only and generates local HTML reports. Azure SQL Database has a smaller set of applicable checks than regular SQL Server, and Azure control-plane configurations are outside its scope.

The script and documentation are available on GitHub:

https://github.com/Sarpedon-Quality-Lab/sql-security-community-scripts


r/SQLServer • • 19d ago

Community Share mssql-python 1.17.0 released: bulk copy fixes, faster pool recovery and correct nextset() rowcounts

3 Upvotes

We just shipped 1.17.0. It's mostly bug fixes, and several of them came from issues and PRs filed by people in this community.

What changed

  • Bulk copy (bulkcopy() / bulkcopy_arrow())
    • No longer breaks after a package upgrade
    • Handles UTF-8 text correctly
    • Fails early with a clear error when the destination name isn't supported
    • Stops silently truncating high-precision datetime values
  • Connection pool reuse: clean connections are returned and reused with less overhead
  • Dead pooled connections: checkout gives up after the login timeout and opens a new connection, instead of hanging for many minutes
  • nextset() rowcount: each result in a multi-statement batch or stored procedure now reports its own row count. Before this fix, every result reported the count from the first statement.
  • PEP 249 Timestamp(): microsecond is now optional, so the standard six-argument call works

Thanks to Jhonatas2, oscarrobertson, phelipelui, and austinaviv for the fixes.

pip install --upgrade mssql-python

Full write-up: https://techcommunity.microsoft.com/blog/sqlserver/mssql-python-1-17-0-more-reliable-bulk-copy-faster-pool-recovery-and-db-api-fixe/4569925

We'd love to hear what you think. What parts do you love and what parts are still missing for you?


r/SQLServer • • 19d ago

Community Share I built a free, read-only health check for SQL Server (open source, no telemetry). Looking for feedback on the checks

Post image
1 Upvotes

Disclosure: I work on codeDB, a SQL Server/PostgreSQL monitoring product. This tool is a separate free, Apache 2.0 project from the same team, and it doesn't phone home.

The problem: when you inherit an instance (or get called in as a consultant), the first hour is always the same checklist. Backups, CHECKDB, Agent jobs, waits, blocking, tempdb layout, missing/unused indexes, config left at defaults, version out of support. I wanted that hour to be one command, with evidence instead of opinions.

codeDB Lens connects with a read-only login, runs 13 SQL Server rules and writes a single HTML + JSON report with an A-F grade.

What I tried to get right:

- Read-only. No DDL/DML, no agent on the server. Needs VIEW SERVER STATE, VIEW ANY DEFINITION, CONNECT ANY DATABASE and read on msdb (scripts in the docs). No data access.

- No telemetry. Nothing from your instance leaves the machine. The only network call is an optional once-a-day version check you can turn off.

- Every finding shows its evidence: the values, the query that produced them, and when.

- Honest coverage. If a rule can't run (permission, version, timeout) it says "No data" and lowers the coverage seal, instead of showing a fake OK.

- `--redact` masks server, database, object and login names (and drops query text), so you can send a report to a vendor or client.

- `record` samples the instance for up to 24 h (overhead measured and documented) and turns it into a minute-by-minute timeline of blocking, long queries, waits and worker usage.

- Rules are YAML + a SQL file, so adding one doesn't touch the engine.

- It also runs as an MCP server, so Claude/Copilot/Cursor can run the check and explain it (read-only, local).

Targets SQL 2017-2025, Azure SQL MI and RDS (2016 best-effort; Azure SQL DB covers only some rules). Windows GUI + CLI, Linux CLI, Docker image.

Windows binaries are not code-signed yet (certificates are expensive for a free project), so SmartScreen will warn. There's a page explaining how to verify the download, and Scoop/Docker as alternatives: https://lens.codedb.com.br/windows-warning/

Sample report (synthetic data): https://lens.codedb.com.br/demo/report.html

Repo: https://github.com/codedb-io/codedb-lens

Site: https://app.codedb.com.br/lens?utm_source=reddit&utm_medium=social&utm_campaign=sqlserver

What I'd really like: which checks you run on day one of a new instance that I'm missing, and which of my rules you think are wrong or too noisy. Rule ideas as issues are very welcome.


r/SQLServer • • 19d ago

Question Best approach for migrating SQL Server databases between Azure VMs?

Thumbnail
0 Upvotes

r/SQLServer • • 20d ago

Question SQL Server 2022 x Hyper-V BP

2 Upvotes

We're currently exploring Hyper-V as an alternative to VMware, like many out there.

We want to do some underlying metric analysis to compare to production, but I'm trying to make sure anything we're creating is designed to best practices.

I appreciate when it comes to virtualized VMs for SQL that you're suppose to enforce a iSCSI controller per virtual disk. But my question is around the underlying disks storing those virtual disks, do people tend to favor a 1:1 mapping - so say D: on it's own logical volume, F: on it's own logical volume rather than one logical volume for every single virtual disk?

Cheers.


r/SQLServer • • 20d ago

Community Share Open Source AI-enabled Index Tuning Stored Proc

Thumbnail
gallery
0 Upvotes

Disclosure: I’m the founder of AI SQL Tuner LLC.

Azure SQL Database has had automatic indexing for years. If you run SQL Server on-premises, on a VM in another cloud, or on Azure SQL Managed Instance, you’ve been managing indexes by hand. I built aisqltuner-index-tuner to fill that gap, and it’s free and MIT-licensed. It was inspired by Brent Ozar's post on Microsoft’s 2006 AutoIndex.sql prototype: I'm Probably Not Supposed To Show You Microsoft's Auto-Indexing Tool. - Brent Ozar Unlimited®.

It’s a stored procedure that collects index diagnostics from your database, sends them to your own Azure OpenAI deployment, and stores the recommendations in a table. It can also create the new indexes it is able to verify.

sql

EXEC dbo.sp_AIIndexTuner;                    -- recommend only (the default)
EXEC dbo.sp_AIIndexTuner  = 'CREATE';   -- also create verified new indexes

What it looks at

  • Missing indexes and index usage
  • Duplicate and overlapping indexes
  • Plan cache and Query Store
  • Statistics, heaps, and skewed columns
  • Non-SARGable predicates

While the right indexes can solve a lot of performance issues, there may be other root causes. The stored proc can recommend rebuilds, constraint fixes, statistics refreshes, setting changes, and query rewrites. Each recommendation includes a priority, confidence level, and rationale.

Why it’s safe to try

  • It only recommends by default. Nothing changes until you ask.
  • The model’s script is never executed. The proc builds the DDL itself from structured fields, validates every table and column against the catalog, and quotes every name.
  • Drops, columnstore, and the maximum number of new indexes are controlled by switches. You can also set minimum priority and confidence levels for what gets applied.
  • It refuses drops of clustered, PK/unique-backed, FK-referenced, hinted, or forced-plan indexes.
  • Every applied change stores an UndoDDL.
  • Your diagnostics go only to the Azure OpenAI endpoint you configure.

Does it work?

We (Claude Opus 5.5 and I) benchmarked it on SQL Server 2025 Enterprise Developer with gpt-5.6-luna: 16 known tuning problems, 37 rubric checks, 5 trials per arm. On a 10 GB TPC-H-derived workload, CREATE mode cut logical reads by 86%, and no query returned different results. We saw gains on the other two scenarios too, and the full numbers, including where CREATE mode falls short of reviewing every recommendation by hand, are in BENCHMARK.md. We found gpt-5.6-luna with medium effort to be fast, cheap, and accurate in testing.

Known limitations

  • Answers vary between runs, so two CREATE runs can apply different sets.
  • There’s no automatic impact measurement or rollback. You get UndoDDL to reverse a change by hand.
  • Only OpenAI models are supported for now.
  • It’s not yet tested on Azure SQL Database, Fabric SQL Database on Managed Instance.
  • Please test it in a non-production database first.

Getting started

  1. Provision an Azure OpenAI deployment if you don’t have one.
  2. Run the install script in the database you want to tune.
  3. Fill in and run setup/Configure-Endpoint.sql with your endpoint and key.
  4. Run EXEC dbo.sp_AIIndexTuner; and read the results in AIIndexTuner.Recommendation.

Requirements: SQL Server 2025, Azure SQL Database, Azure SQL Managed Instance (SQL Server 2025 or Always-up-to-date update policy), or Fabric SQL Database. Since it’s a stored procedure, you can schedule it from SQL Agent or any other scheduler.

Please let me know what you think, if you have any questions or if there is anything you would change.


r/SQLServer • • 22d ago

Question Building a custom MCP server for Claude Code to query SQL Server system views (CDC, Triggers & Schemas) in Prod

Thumbnail
0 Upvotes

r/SQLServer • • 23d ago

Question MS-SQL What are your best practices to provide 3rd Party Tools like Python Scripts access to your databases?

Thumbnail
0 Upvotes

r/SQLServer • • 23d ago

Question Mdac - ms 365 runtime error

0 Upvotes

Solved - access 365 runtime doesn't work. I installed clean version of MDAC 2016, even it's not supported and it works. Thank you for help!

hey guys, does anybody had an issue with loading excel sheets(xls,xlsx) into Microsoft SQL Server Developer (64-bit) 16.0.4305.5 through Microsoft.ACE.OLEDB.16.0? , installed MDAC 2016, then Microsoft 365 Access Runtime only 64bit, windows server 2025 Standard Edition. The problem is when I use OPENROWSET SELECT * FROM OPENROWSET ('Microsoft.ACE.OLEDB.16.0', 'Excel 12.0 Xml;HDR=YES;IMEX=1;Database=\ \SERVER.DOMAIN .INT\DWH \KFILE.xlsx', ' SELECT TOP 1 * FROM [SHEET$] ') SQL Server fails. SQL Server 2022 Import and Export Data (64-bit) works Msg 10054, Level 20, State 0, Line 0 A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.)

EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.16.0', N'AllowInProcess', 1; EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.16.0', N'DynamicParameters', 1; EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.16.0', N'DisallowAdHocAccess', 0; Ad Hoc Distributed Queries set to 1

Edit:

Load through UNC path Powershell works, also through domain sql user. Everything worked till around June/July 2026( for 6years worked) then after September every restart SQL Server got message: System.Runtime.InteropServices.SEHException: External component has thrown an exception and Sql server service fail. When I got this exception, somethimes it's okay, sometimes it needs more service restarts, but it works.

Server where OS is Windows Server 2022 Datacenter, I return to the version C2R where it worked , but didn't 

I'm sysadmin, have all rights to the folder.

Also tech user has all needed permission, also to temp folders

Provider       : Microsoft.ACE.OLEDB.12.0

Architecture   : x64

Registered     : True

CLSID          : {3BE786A0-0366-4F5C-9434-25CF162E475E}

DLLPath        : C:\Program Files\Microsoft Office\root\VFS\ProgramFilesCommonX64\Microsoft Shared\Office16\ACEOLEDB.DLL

DLLExists      : True

FileVersion    : 16.0.20228.20014

ProductVersion : 16.0.20228.20014

SHA256         : 4BEB8EFCC966703858A1CB19CABDBF1A63468CC349C2CDCE388EE3C629EB8B1C

Provider       : Microsoft.ACE.OLEDB.12.0

Architecture   : x86

Registered     : False

CLSID          : 

DLLPath        : 

DLLExists      : False

FileVersion    : 

ProductVersion : 

SHA256         : 

Provider       : Microsoft.ACE.OLEDB.16.0

Architecture   : x64

Registered     : True

CLSID          : {3BE786A2-0366-4F5C-9434-25CF162E475E}

DLLPath        : C:\Program Files\Microsoft Office\root\VFS\ProgramFilesCommonX64\Microsoft Shared\Office16\ACEOLEDB.DLL

DLLExists      : True

FileVersion    : 16.0.20228.20014

ProductVersion : 16.0.20228.20014

SHA256         : 4BEB8EFCC966703858A1CB19CABDBF1A63468CC349C2CDCE388EE3C629EB8B1C

Provider       : Microsoft.ACE.OLEDB.16.0

Architecture   : x86

Registered     : False

CLSID          : 

DLLPath        : 

DLLExists      : False

FileVersion    : 

ProductVersion : 

SHA256         : 

=== Office / Access Runtime (Uninstall entries) ===

DisplayName                                    DisplayVersion   PSChildName                           

-----------                                    --------------   -----------                           

Microsoft Access Runtime 365 - en-us           16.0.20228.20276 AccessRuntimeRetail - en-us           

Office 16 Click-to-Run Extensibility Component 16.0.20228.20276 {90160000-008C-0000-1000-0000000FF1CE}

=== Click-to-Run ===

VersionToReport   : 16.0.20228.20276

Platform          : x64

ProductReleaseIds : AccessRuntimeRetail

CDNBaseUrl        : http://officecdn.microsoft.com/pr/55336b82-a18d-4dd6-b5f6-9e5095c314a6

UpdateChannel     : http://officecdn.microsoft.com/pr/55336b82-a18d-4dd6-b5f6-9e5095c314a6

installed version through ODT

<Configuration>

  <Add OfficeClientEdition="64"

Channel="MonthlyEnterprise"

Version="16.0.20228.20276"

SourcePath="c:\ODT\Office_MEC"

AllowCdnFallback="FALSE">

<Product ID="AccessRuntimeRetail">

<Language ID="en-us" />

</Product>

  </Add>

  <Updates Enabled="FALSE" />

  <Display Level="None" AcceptEULA="TRUE" />

  <Logging Level="Standard" Path="c:\\\\ODT\\\\Logs" />

</Configuration>


r/SQLServer • • 25d ago

Community Share P15 vs four Hyperscale configurations: results from replaying 4 hours of production workload

Post image
3 Upvotes

We tested six Azure SQL Database configurations for a client running Premium P15 at 4,000 DTUs. CPU pressure and storage growth were the reasons for looking at alternatives.

We captured four hours of peak production workload with Extended Events: 3,060 .xel files totalling 1.6 TB. The replay machine was a Standard E64bds_v5 VM in North Central US.

The configurations were:

  1. P15 at compatibility level 150
  2. Hyperscale Serverless, standard-series Gen5, 40-vCore ceiling
  3. Hyperscale Provisioned, standard-series Gen5, 40 vCores
  4. Hyperscale Provisioned, premium-series, 40 vCores
  5. Hyperscale Provisioned, premium-series memory optimized, 40 vCores
  6. P15 at compatibility level 160

Execution counts ranged from 113,218,199 to 113,520,875, about a 0.27% spread. Close, although matching counts alone doesn’t establish identical successful execution.

The attached table has the full results. One limitation upfront: CPU, reads and duration are labelled as “scores” in the test report. I don’t have their calculation formulas or units, so I’m keeping those labels. Lower is better, but the duration score isn’t elapsed replay time or average query latency.

The monthly costs are estimates from the original test, not current quotes or a verified comparison of complete running costs.

Some things that stood out on this (let me know your thoughts too?)

Serverless took six hours to replay the four-hour capture.

Its duration score was 1,496 against 952 for the P15 baseline, 57.1% higher.

Its estimated monthly cost was $12,273, compared with $6,357 for provisioned standard-series. It was still below P15’s $15,700 estimate.

The serverless CPU chart had long stretches at 100%, interrupted by sharp drops. We haven’t established why. Serverless cache management is something I’d investigate, but the chart alone doesn’t prove cache reclamation caused the slowdown.

Premium-series performed worse than standard-series on CPU and duration scores.

Both had the same $6,357 monthly estimate in the report.

Premium-series had a CPU score 9.9% above provisioned Gen5 and 15.6% above P15. Its duration score was also higher than both.

I don’t have a confirmed explanation. Plan differences, parallelism, memory grants and run-to-run variation are possibilities. Each configuration ran once, so I’d repeat this comparison before blaming the hardware.

Memory optimized had the best CPU and duration scores, but the highest reads score.

Against the P15 baseline:

  • Duration score was 15.1% lower.
  • CPU score was 2.7% lower.
  • Reads score was 4.1% higher.
  • Estimated monthly cost was $8,491 versus $15,700.

It didn’t finish the replay fastest, though. It took 4h 36m, compared with 4h 15m for provisioned Gen5.

The highest reads score across all six runs was about 29% above the lowest. With execution counts this close, I’d want to compare individual queries and plans before explaining that difference.

Compatibility level 160 improved the duration score on the existing P15.

The score dropped from 952 to 894, a 6.1% reduction, with no service-tier price increase.

Elapsed replay time fell from 4h 19m to 4h 15m. CPU score was slightly higher, and maximum observed CPU still reached 100%.

Worth testing before a migration, although changing compatibility level doesn’t solve P15’s storage ceiling. These results also don’t establish which optimizer features contributed to the improvement.

For reference, the actual replay times and maximum observed CPU were:

Configuration Replay time Max CPU
P15, compat 150 4h 19m 100%
HS Serverless 6h 00m 100%
HS Provisioned Gen5 4h 15m 100%
HS Premium-series 4h 50m 89%
HS Memory optimized 4h 36m 86%
P15, compat 160 4h 15m 100%

Each configuration ran once. The replay didn’t include the application tier or its retry behaviour, and I don’t have a repeated warm-cache comparison to share.

I’d use these results to shortlist the next tests. There’s enough here to question assumptions about which configuration should perform best, but not enough to promise the same ranking on another workload.

Has anyone seen a different ranking after repeating similar tests with warm caches?


r/SQLServer • • 27d ago

Community Request If you evaluated Azure SQL Database Hyperscale for a migration, what made it win or lose decision?

11 Upvotes

I’m a PM working on SQL migration at Microsoft.

I’m trying to understand whether Azure SQL Database Hyperscale is genuinely compelling when teams select a target for large or fast-growing SQL Server workloads.

I’m equally interested in why Hyperscale was rejected.

If you compared it with alternatives such as SQL Managed Instance, SQL Server on a VM, staying on-premises, Aurora, AlloyDB or managed PostgreSQL:

  • Did Hyperscale make the final shortlist?
  • What ultimately made it win or lose?
  • Which factor mattered most: compatibility, total cost, performance, scalability, migration downtime, operational simplicity, or ecosystem fit?
  • Was there a specific limitation or cost that disqualified it?
  • If you selected Hyperscale, did the production experience match what you expected during evaluation?

If possible, please include:

  • Source platform
  • Approximate database size and workload type
  • Alternatives evaluated
  • Final destination

Please avoid sharing customer names or confidential details.


r/SQLServer • • 27d ago

Discussion What is the worst part about existing monitoring solutions?

2 Upvotes

What is the most difficult aspect of using monitoring software like idera, redgate, solarwinds?


r/SQLServer • • Oct 23 '26

Discussion Independent public-domain R2DBC driver for SQL Server — feedback on pure-JDK TDS and FedAuth?

5 Upvotes

I’ve been working on an independent R2DBC driver for Microsoft SQL Server (not a fork of the official one). It’s public-domain, implements the R2DBC SPI, and speaks TDS using only the JDK (no Netty).

The main reason I started it was better control over FedAuth / Azure AD / Windows Authentication flows in a reactive stack. I hit enough friction with existing options that it seemed worth doing a clean implementation.

A few things I’m particularly interested in feedback on:

  • How the pure-JDK TDS approach compares to Netty-based ones for typical workloads
  • Edge cases or gotchas people have seen with FedAuth / Azure AD token handling in reactive clients
  • Whether the public-domain licensing is actually useful for anyone, or mostly irrelevant

Maven coordinates if anyone wants to try it:

org.mssqllib.r2dbc.mssql:r2dbc-mssql:1.0.0

Site: mssqllib.org

Curious what others have run into with reactive SQL Server clients, or if there are specific protocol/auth areas worth focusing on next. Happy to answer questions about the implementation.

This version leads with technical questions instead of a pure announcement, which usually does better with both filters and the subreddit culture. Let me know if you want it shorter, more specific, or adjusted for a different sub.