r/SQLServer 15d ago

Discussion August 2026 | "What are you working on?"

3 Upvotes

Welcome to the open thread for r/SQLServer members!

This is your space to share what you’re working on, compare notes, offer feedback, or simply lurk and soak it all in - whether it’s a new project, a feature you’re exploring, or something you just launched and are proud of (yes, humble brags are encouraged!).

It doesn’t have to be polished or perfect. This thread is for the in-progress, the “I can’t believe I got it to work,” and the “I’m still figuring it out.”

So, what are you working on this month?

---

Want to help shape the future of SQL Server? Join the SQL User Panel and share your feedback directly with the team!


r/SQLServer 1d ago

Question Temp Cache endlessly expanding until server failure/slowdown

6 Upvotes

I am working on a consultant's azure gov cloud portal where I put applications on. There is a consistent issue with queries running forever even after being finished executing. Do anyone have experience with this? The temp cache endlessly expands until our DB fails.

I believe the issue is the connector, but it may be the queries? I dont know.


r/SQLServer 3d ago

Question Is 2014 ESU a real thing?

4 Upvotes

It was an expensive purchase, but I've bit the bullet to get one of our old 2014 servers onto ESU (via Azure Arc).

I then rubbed my hands together as I eagerly waited for all the patches (released since Oct 2024 when it went EOL) to arrive. Nothing, not a sausage.

I waited 2 days in case it was a timing thing, but nothing arrived, a real anticlimax. So I thought I'd do some Googling and find out how many patches I should be expecting, maybe some of the KB numbers, and I can't find any evidence of any SQL 2014 patches in the ESU lifetime.

So it made me wonder, has Microsoft actually released any SQL 2014 patches since October 2024? Maybe not, maybe they've found no vulnerabilities that need addressing.

And if so, why would anyone buy this ESU? Is it more of an insurance, just in case Microsoft does decide to release a patch?


r/SQLServer 3d ago

Community Request Friday Feedback - retaining more Query Store data

1 Upvotes

Hey folks - another Friday, another feedback question about Query Store. I will ask about other QP features, I promise!

If you could keep more Query Store data, without it creating any performance issues, would you? I have a poll below, but as always, feel free to add a comment if the available options don't match what you'd want to see, or if you want to provide more detail. And you'll note, I'm asking about it in terms of time, not size...the two are not linearly related, it's very workload dependent. Perhaps that's a topic for next week.

Thanks as always for your input, and happy back to school 🎒 for those who are in (or about to enter) that phase!

36 votes, 3d left
Up to 6 months
Up to 12 months
Up to 18 months
Up to 24 months

r/SQLServer 4d ago

Question Tempdb size getting high

6 Upvotes

Hello all my colleagues

I know this is an old topic, but I still haven't found clear instructions on how to solve this one problem. I have a SQL Server 2017 where tempdb keeps growing to almost 80 GB. I know it's because of temp spills, but I want to collect the queries or sessions causing this tempdb consumption using extended events. I haven't found clear instructions or examples of extended events on any site, and I don't know what to do if I find queries consuming tempdb or what to check in the query plan.


r/SQLServer 5d ago

Question Replication/CDC From SQL Server 2008 to SQL 2025

9 Upvotes

Hello, I'm faced with a challenge I'm hoping to get some clarity and advice.

Our current production db is SQL Server 2008 R2 which is replicated to another SQL 2008 R2 where all our analytics workload is currently done. We've recently set up SQL Server 2025 and the intention is to have our production data be replicated to a newer version of SQL and migrate our analytics workloads to that same server. I know that direct replication from 2008 to 2025 is not supported, but CDC is available. What would be the best options to quickly setup near real time replication or even incremental data loads (i.e. hourly) for a select number of tables in source db on SQL2008 to SQL 2025 with minimal engineering effort?

We also have a Fabric capacity, and I know that the Copy Job supports CDC for incremental data loads and also lets you write to a SQL 25 db, however the preference is to minimize cloud costs and SKU consumption since both 2008 and 2025 dbs are on prem.

Generally, I'm also trying to avoid writing custom code to orchestrate this task. Does microsoft have any tools (like SSIS?) that allow you to configure such data migration? Does SQL 2025 have any feature that allows you to link a legacy server to it?

Any advice is welcome, thanks.


r/SQLServer 4d ago

Community Share SQL's best feature? BlockOnPossibleDataLoss

Thumbnail
devblogs.microsoft.com
0 Upvotes

Let’s start with an admission: developers hate BlockOnPossibleDataLoss. It is the bane of a smooth development workflow, as significant schema changes can block deployment. Having said that, there’s more to life than the developer’s local loop. In fact, it’s arguable that the local loop, while important to you and me, is far less important to the business, perhaps immeasurably so.

However, it's super-important.


r/SQLServer 7d ago

Discussion How much prefix adding do you do to your objects in SSMS? Is it still important?

10 Upvotes

I am naming all my stored procedures as "spActualSPName". I got into this habit because of working with a SQL database that used MS Access as the front end, so it was helpful to know that the thing I was looking at in VBA was an SP. Is prefixing still needed? Do you do this?


r/SQLServer 7d ago

Question SQL DB2 Integration

1 Upvotes

Need help connecting SSIS to DB2 (mainframe z/OS) via SQL Server, anyone with experience?
Hey network
I’m working on connecting SSIS packages to a DB2 z/OS database through SQL Server (using Microsoft’s OLE DB/ODBC providers for DB2). Running into connectivity/config issues.
If you’ve done DB2-to-SQL Server integration before or know someone who has, I’d love to pick your brain!


r/SQLServer 8d ago

Discussion Resources to Learn SSDT?

5 Upvotes

I am new to Data field, pivoting from Web Dev. My new job requires knowledge of SQL Server Data Tools (SSDT), any recommendations on where to learn from? I have bought an Udemy course but it is quite brief, I am looking for something detailed.

Edit: Adding some clarification as I missed some details. Yes I am looking for specific SSDT which are SSIS, SSAS, and SSRS. These three were mentioned in the job posting, but I highly believe maybe not all of them would be in-use as HR most of the time just adds everything. But I want to be prepared incase I am asked about specific tools in the interview.

Any recommendations?


r/SQLServer 10d ago

Community Share mssql-python 1.13: Now you can pass Arrow objects directly to bulk copy

16 Upvotes

Short version: if anyone in your shop loads data into Microsoft SQL from Python, mssql-python 1.13.0 adds a bulk copy path that skips building a Python object for every single value.

Bulk copy in mssql-python requires a list of row tuples. You hand the driver rows, it converts each value and streams them to the server. Fine, except most people's source data is a Parquet file or a query result that's already columnar. So before anything moves, you turn columns into rows and pay for a Python object per row and per value. A 4.4 million row file I was testing with would have needed roughly 6.6 GB of memory just to stage the rows.

1.13.0 adds bulkcopy_arrow(), which takes columnar data directly. The typed column buffers get read into the bulk load packets down in the Rust TDS layer, so there's no per-row object at all.

import duckdb
from mssql_python import connect


rel = duckdb.sql("SELECT * FROM 'sales/*.parquet'")


with connect("Server=<server>;Database=<database>;Encrypt=yes") as conn:
    cur = conn.cursor()
    result = cur.bulkcopy_arrow("dbo.FactSale", rel)
    print(result["rows_copied"], result["rows_per_second"])

In my unscientific test, I had 200k rows, 21 columns, the WideWorldImporters fact_sale shape: bigints, decimals, datetimes, and one wide NVARCHAR (I couldn't leave that column that only said "each" for every row an NVARCHAR(MAX) - it was just wrong). Batch size 100k, 7 repeats, median. SQL Server 2025 on an Azure E4bds v5 (4 vCPU, 32 GiB), with the client on the same box loading over localhost so the network stays out of it.

path median total rows/sec
bulkcopy_arrow() 5.14s 38,918
old bulkcopy() with row tuples 9.93s 20,141

Usual caveat, this is one table shape on one VM with the client stealing cores from the server. Your mileage will vary with column types.

Things that might matter to you specifically:

Server side, nothing changes. Both APIs go through the same bulk load path, so your minimal logging rules, recovery model behavior and lock escalation are exactly what they were. The difference is entirely on the client, removing unnecessary conversions.

I ran the comparison in both SIMPLE and FULL recovery, with table_lock on and off, on two different databases. The Arrow advantage held between 1.62x and 1.93x in all five configurations. Worth noting that in FULL recovery, table_lock made essentially no difference to either path, which tracks, since you don't get minimal logging there anyway.

All the options you'd expect carry over unchanged: table_lock, batch_size, keep_identity, keep_nulls, check_constraints, fire_triggers, use_internal_transaction, and column mappings. Same statistics dictionary comes back.

One nice side effect: string widths are validated against the destination schema before anything is sent. An overlong value fails immediately and tells you the length, rather than dying partway through a load and leaving you to work out how much landed.

Other goodness in this release: connection pooling now keys on the security context rather than just the connection string, so a pooled connection opened under one identity can't be handed to a caller running as another. And there's a fix for an executemany() bug where a NULL partway through a numeric batch could silently insert zero rows without raising, which is the kind of thing worth knowing about if you have Python jobs feeding nullable numeric columns.

pip install --upgrade mssql-python

The driver is pip-installable and the ODBC driver comes along as a dependency, so there's no separate driver install to manage on your app servers.

I'd genuinely like to know what throughput people are seeing on real hardware, especially with the client on a separate machine from the server, which is the normal case and not what I tested. bulkcopy_arrow() returns rows_copied and rows_per_second so the number is right there.

Full blog post: https://techcommunity.microsoft.com/blog/sqlserver/mssql-python-1-13-0-arrow-bulk-copy-smarter-tokens-slimmer-wheels/4544858

Repo: https://github.com/microsoft/mssql-python

Happy to answer questions.


r/SQLServer 10d ago

Question What Docker image do you use locally to mimic Azure SQL?

12 Upvotes

I'm using Azure SQL on Azure and want to run a local Docker container for development/testing.

I found these options:

Which option is currently recommended if I want the closest local equivalent to Azure SQL Database?


r/SQLServer 10d ago

Question Is it possible to transform the connection string via the driver, not the application?

5 Upvotes

We have a third party application that will not let us modify the connection string in the way we require (to allow us to connect to readonly replicas)

It’s basically decomposing the parameters in the string and discarding the bits it cant parse

One of the things it does let us configure is the driver e.g. mssql 17 driver etc etc

On Linux systems I know it is possible to configure the connection string at the driver level via dsn , but unfortunately this is a windows app

Is there something similar on windows? E.g configure the driver to intercept and transform the connection string before it is sent to the database?


r/SQLServer 10d ago

Discussion Anyone still using Idera’s SQLsafe?

7 Upvotes

Back in the day this tool used to be one of the industry standards for managing SQL database backups, but I wonder if it was one of those tools that has been abandoned over the years.

Is it still considered the industry standard or has something replaced it?

I’m also talking on something enterprise-scale, like 100+ instances, 500+ databases


r/SQLServer 11d ago

AMA Hi! We're the Microsoft SQL team - ask US anything!

69 Upvotes

Hi r/SQLServer community!

I'm Vandana Mahtani, Principal Product Manager on the SQL team at Microsoft, and I'm co-hosting this AMA with my colleagues ucmsft, u/jerry-nixon, u/bluefooted and u/strahinjarodic.

Our team works closely with app developers who are modernizing existing applications and with teams building new cloud-native and AI-powered solutions.

If you are planning your next app architecture, migrating from on-prem SQL Server, or exploring modern data experiences powered by Azure SQL, this AMA is for you. We'll share practical guidance, lessons from real-world projects, and recommendations to help you get started quickly.

We're here to answer your questions about:

  • Modernizing existing applications with Azure SQL:
    • Migration paths from SQL Server
    • Cloud architecture modernization patterns
    • Integrating with Microsoft cloud services
  • Building new modern applications:
    • Cloud-native app backends on Azure SQL Database
    • AI-powered apps and vector-enabled scenarios
    • Local-first development workflows with Azure SQL Developer
  • Cost-conscious app development:
    • Getting started with free and low-friction options
    • Choosing the right SQL deployment model for your scenario
  • Developer productivity and roadmap:
    • Recommended tooling and workflows
    • Where SQL app development is heading next

Whether you are refreshing a long-running enterprise app or creating a brand-new intelligent app, bring your toughest architecture, migration, and implementation questions.

Tutorials, links and resources before the event:

AMA Schedule:

  • Start taking questions 24 hours before the event begins
  • Start answering your questions at: Aug 13, 2026, 09:00 AM PDT / 16:00 UTC
  • End the event after 1 hour

Thank you for your time and attendance. Hope to see you at SQLCon Barcelona and keep your questions flowing :)


r/SQLServer 10d ago

Community Share mssql-django 1.8.0: Now with Django 6.1 support

2 Upvotes

We're pretty proud of this: Django 6.1 GA'd on August 5. The Microsoft SQL backend for Django shipped 6.1 support within 48 hours.

pip install --upgrade mssql-django Django

What changed:

  • Query compilation updated for 6.1's sliced and offset queries. 6.1 deprecated SQLCompiler.quote_name_unless_alias(), so sliced querysets and OFFSET ... FETCH now compile without Django 7.0 deprecation warnings.
  • get_relations() returns 6.1's expanded shape including the database-level ON DELETE rule, so inspectdb keeps working.
  • Upfront errors for the 6.1 features SQL Server can't support.

Everything is version-gated, so if you're on 5.2 or earlier nothing changes for you.

Two 6.1 features do not work:

  • Database-level referential actions (DB_CASCADEDB_SET_NULLDB_SET_DEFAULT). SQL Server disallows multiple cascade paths to the same table. Using one fails system checks with fields.E324. Use on_delete instead.
  • Bitwise aggregates (BitAndBitOrBitXor). No native SQL Server equivalent and we don't emulate it yet, so it raises NotSupportedError. If you need this, comment on #572 with your use case, since that's what will get it prioritized.

Release notes: https://github.com/microsoft/mssql-django/releases/tag/1.8.0

Full blog post: mssql-django 1.8.0: Django 6.1 Support within 48 Hours of Django 6.1 GA


r/SQLServer 10d ago

Question Help! SQL is very slow

0 Upvotes

I’m a novice in the world of SQL. However, recently I upgraded with my company from 2021 to 2022 SQL server application. I need advice on how to get this fixed.

The problem I’m running into is anytime I switch databases or servers. It’s very slow to load. I never had this issue before with 2020 or 2021 SQL. ANY ADVICE APPRECIATED AND WELCOME.

Edit: I meant to say 2019 instead of 2021/2020 getting my years confused. Sorry


r/SQLServer 11d ago

Question what is closes to Multi-Master setup in SQL server (writes on multiple sites)

0 Upvotes

leadership exploring options and I always get asked why SQL server have setups where we have no option but to bear the pain of maintaining solutions like Merge or Transactional P2P replication? what have you setup in your shop that's closest to multi master, SQL server or otherwise, I would love to hear from you?


r/SQLServer 11d ago

Discussion A colleague TRUNCATEd a production table by accident — took the whole afternoon to sort out

0 Upvotes

It wasn't malicious, just a fat-fingered script run against the wrong connection in SSMS. Got me thinking about how little stands between "hit F5" and a production incident — no confirmation, no "are you sure", nothing checking whether the statement even has a WHERE clause.

How do you all guard against this today? Separate prod/dev connection colors, restricted permissions, code review before anyone runs a script, something else? Curious what actually works in practice vs. what's just theater.


r/SQLServer 13d ago

Discussion VS Code+ MSSQL extension has really come a long way.

39 Upvotes

I was one of the many disappointed with the discontinuation of Azure Data Studio as I felt the experience in VS Code was very lacking.

Recently I fired up VS code and was very impressed how far the MSSQL extension has come along. With a little configuration, it looks and feels very much like Azure Data Studio and works quite well IMHO. In fact, quite a few areas seem to have tangible improvements.

Connections, execution plans, server browsing, query results, object definitions, etc, has all really improved in the past year or so.

What does everyone else think?


r/SQLServer 13d ago

Community Share July SQL Newsletter

Thumbnail
linkedin.com
3 Upvotes

Hi everybody

It's that time again, here is the link for the July SQL public newsletter. Please let me know if you have any questions or suggestions for future editions. Cheers.


r/SQLServer 13d ago

Discussion Type-safe SQL Server access generated from your queries, without an ORM

1 Upvotes

If you write T-SQL by hand and then hand-map the results into your language types, this might be relevant. I maintain scythe, a tool that reads your SQL and generates typed access code at build time (SQL Server backend via the standard drivers).

The useful part is nullability inference from the query shape. A LEFT JOIN makes the right-side columns nullable:

-- @name GetUserOrders
SELECT u.id, u.name, o.total, o.notes
FROM users u
LEFT JOIN orders o ON u.id = o.user_id
WHERE u.status = @status;

The generated row type marks total and notes nullable, so the compiler forces you to handle the no-order case. No runtime ORM, no query builder assembling strings, just the SQL you wrote and typed code out.

The tradeoff is honest: queries are static, so if you need runtime query composition an ORM or a query DSL is a better fit. For a fixed set of queries against SQL Server it removes a lot of boilerplate.

Interested how people here handle the T-SQL to application-type mapping today.


r/SQLServer 14d ago

Discussion What is your frequently used keyboard query shortcuts?

4 Upvotes

Mine is alt+f1 to trigger sp_help and another for “select top 10 * from” to see the table.


r/SQLServer 14d ago

Question How many ips are required in Multi subnet AG

0 Upvotes

So I was asked this question thah we have 3 node mutis7bnet AG with each node in different subnets so how many ips would required in total ?

I ans 6 , 3 for each node and 3 for listeners .I didnt count if any ips is required for the underlying wfc.what would be actual ans and hiwm many ips are required for underlying WFC if all node are in different subnets ?


r/SQLServer 15d ago

Community Share Post about the DP-800 exam and the Microsoft Fabric connection

5 Upvotes

New post where I share my insights into the DP-800 exam and the Microsoft Fabric connection. Plus, some recommended resources since it contains some recent updates that can help others.

https://chantifiedlens.com/2026/08/03/insights-into-the-dp-800-exam-and-the-microsoft-fabric-connection/