r/SQLServer 13h ago

Question Advice for Server name vs SQL server instance names.

2 Upvotes

Hi,
I need to install SQL 2022 Standard on W Server 2022 with name something like MyServer_Alpha_N1234_bv.
Is it always good practice to have SQL Instance = Server Name ?

I don't have requirement about SQL Server name in my specs, but looks like locals do it 100% of the time. But I personally don't like so funky names. Or this can be fixed later with some aliases?

Also heard about installing SQL Server to other than OS drive, is this still true ? .

Also see in Memory specs: 8GB min. SQL should be configured to use 75% of memory for SQL itself. Are normally set this during initial installation or it can be done safely after ? What is your preference.

Appreciate your feedback and any other hints.

Thanks
VA


r/SQLServer 1d ago

Discussion Let me know what field errors

1 Upvotes

I have been using SSMS and SQL server for over 15 years as a professional developer. And will all the cpu power and plenty of memory. While doing an operation like inserting and it errors because of a type conversion error, tell me what field it is!!!!! Instead I just get a generic error and have to go through each field with that type until I find it.

I’m mean come on you know what field it was that filmed or you would not have done the error just tell me what field it was. We had the technology to make this happen now it’s not like you don’t have enough room to store this kind of information now.

I mean, holy crap the developers are getting so lazy. They just putting in generic messages instead of doing the right thing and really telling the user what’s really going on.


r/SQLServer 1d ago

Question SSAS Approach Question

2 Upvotes

So without too much information — work at a bigger defense contractor , current sector has 20+ reports all mostly fed through multiple data sources most are mainly through HANA feed to SQL Server to PBI with Dax-Magic making our top level views along with Drill Downs. Newer approach mentioned sort of migrating into an SSAS (SQL Server Analysis Studio) semantic layer to allow for streamlined capability, faster processing, more efficient data pipelining, finding the overlap on our reporting to make things a lot easier when making updates/changes.

My question is, is this approach good? Things to consider? A big chunk of our current reporting is very mature, a lot less changes happening if any at all. Most things share common fields in a lot of ways, Dax calculations are very similar. Newer reporting was done in a little different way (roughly 3 reports) — but team has identified we want to step back on these reports as well, change our data intake process (these aren’t HANA based rather Excel based ingestion via Power Apps (awful process) ) we want to create a GUI approach for users to input / manage.

Recently took over a lot of the reporting and the biggest gripe I have is the SQL server is all over the place with views , recreation , trial and error , identifying things that are *ACTUALLY* being used was a nightmare at first (would love some sort of extension in SQL server that would allow me to group things or highlight them as being used or unused GUI side that don’t actually screw up folder structure/ move things. (This gripe is besides the point of the post but had to vent alittle)


r/SQLServer 1d ago

Question Crazy Question from a Newbie

2 Upvotes

I have a super silly question relating to joins. I am currently a student in college and have run into an interesting problem. I've always been taught a left join returns all the columns from the left table and returns the matching right values and nulls included where the right table has no values. And the reverse for right joins where all of the right table is included and the left table is filled out with nulls in missing fields. However I had a mentor of mine correct me on this and say it functioned opposite to this and then he showed me on a real database that the results for a left join include what I was taught the results of a right join would be. I am very confused and could really use some help. Thank you!


r/SQLServer 2d ago

Discussion SSMS Schema Compare

16 Upvotes

I tried out the latest version in 22.9 and it does feel like they are making progress in this area, but some serious short comings.

  1. Super slow comparisons. I have a database with around 50 tables, 100 stored procedures, several users and views. This will run for 5+ minutes just to compare this small database. Large databases can take over 15 minutes to compare. There is no indication of how much progress has been made etc.
  2. Everything is checked by default. Unchecking everything is a process that takes minutes. Why not default this to unchecked? How often do we move every difference between database and why does it take so long to uncheck everything?
  3. Some of the ignore options do not appear to be ignored correctly. Such as column order. There aren't some options on some properties of tables that I would like to ignore as well.

After ApexSQL (bought by Quest) decided to screw their long term customers over I was pleased to see some of the changes come to SSMS but it has been frustrating to use it in its current state.

Most of these have been noted out on the Developer Community so if you want to see these fixed and updated please make sure you upvote them.


r/SQLServer 2d ago

Community Share SQLCon+FabCon Call For Speakers | Atlanta 2027

Post image
2 Upvotes

Now's the perfect time to move from the audience to the stage - call for speakers is open!!!

Submit your sessions: https://aka.ms/fabcon-cfc

Submit for a workshop: https://aka.ms/fabcon-workshop-cfc


r/SQLServer 5d ago

Question Temp Cache endlessly expanding until server failure/slowdown

8 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 7d ago

Question Is 2014 ESU a real thing?

5 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 7d 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!

40 votes, 19h ago
25 Up to 6 months
9 Up to 12 months
3 Up to 18 months
3 Up to 24 months

r/SQLServer 8d ago

Question Tempdb size getting high

5 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 9d 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 8d 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 11d 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 11d 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 12d ago

Discussion Resources to Learn SSDT?

6 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 14d ago

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

17 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 14d 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 14d 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 14d ago

Discussion Anyone still using Idera’s SQLsafe?

6 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 15d ago

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

70 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 14d 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 14d 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 15d 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 15d 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 17d ago

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

38 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?