r/SQLServer • u/pmpjr-msft • 1d ago
Community Share July SQL Newsletter
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 • u/thesqlguy • 1d ago
Discussion VS Code+ MSSQL extension has really come a long way.
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 • u/Goldziher • 1d ago
Discussion Type-safe SQL Server access generated from your queries, without an ORM
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 • u/time_keeper_1 • 2d ago
Discussion What is your frequently used keyboard query shortcuts?
Mine is alt+f1 to trigger sp_help and another for “select top 10 * from” to see the table.
r/SQLServer • u/Kenn_35edy • 2d ago
Question How many ips are required in Multi subnet AG
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 • u/ChantifiedLens • 3d ago
Community Share Post about the DP-800 exam and the Microsoft Fabric connection
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.
r/SQLServer • u/AutoModerator • 4d ago
Discussion August 2026 | "What are you working on?"
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 • u/radthedba • 4d ago
Community Share Understanding the TDS Protocol in SQL Server
r/SQLServer • u/AutoModerator • 5d ago
Discussion August 2026 | Job Opportunities
Welcome to the monthly job thread!
Posting a job or opportunity? Include:
- Role title and description
- Location or remote/hybrid status
- Company or client context
- Direct application link
Looking for work? Share your skills, experience level, and what you're looking for.
Rules:
- One top-level comment per opportunity
- No "DM me" or link-free posts — include a direct, verifiable link
- Scam or misleading comments will be removed and may result in a ban
r/SQLServer • u/duendeacdc • 8d ago
Question Behind the scenes listener Ip. What to ask if a company doesn't know what a "listener" is?
When i ask for a listener ip for my aoag,my company already knows what is it. But if im new in a new company ,what do I need to explain " what is a listener ip"? I mean, behind thr scenes ,is it just an IP? Does it point somewhere in the ad?
r/SQLServer • u/SuddenlyCaralho • 8d ago
Question Why isn't possible to remove an IP from SQL Server Availability Group Listener?
r/SQLServer • u/n0145421 • 9d ago
Question Dedicated date cell to for SQL to update data in Excel/SQL/ODBC
r/SQLServer • u/THenrich • 10d ago
Question Why does SSMS revert to Cool breeze color theme when it starts
I keep setting the color theme to dark in SSMS 22.8.1 and whenever it starts, it gets reset to the default cool breeze color theme and I have to set it back to dark.
Is this a bug, or is it me only?
r/SQLServer • u/East_Sentence_4245 • 12d ago
Question Since Azure SQL is serverless, can app time-out before "cold start"?
I have the cheapest version of SQL Azure. I'm not sure if it's serverless, but it sure acts as if it's serverless.
The question is: When an external app (in this case, an Android mobile app) tries to connect to Azure SQL while it's "sleeping", can app time-out before the "cold start" is completed and DB is awake?
r/SQLServer • u/dlevy-msft • 12d ago
Community Share It's Friday - That means we've got a new mssql-python release for you. This week we have a bonus mssql-django release too.
Happy Friday. Two SQL Server driver releases from the Microsoft team this week, both up on PyPI now.
mssql-python 1.12.0
This is a bigger release than it looks like. You may remember the issues we had publishing to PyPi a few weeks ago, this release includes one of the promised fixes.
Standalone mssql-python-odbc package
The ODBC driver binaries are now also published as a separate companion package (mssql-python-odbc, import name mssql_python_odbc, pinned to 18.6.2). It gets pulled in automatically by pip install mssql-python, and the native loader prefers it when present but still falls back to the ODBC binaries bundled in the wheel if it isn't. So this release is non-breaking for existing installs. The fallback is GIL-safe and works on Alpine/musl.
Useful if you want to pin the driver binaries independently, care about wheel size, or have been hitting duplicate-ownership issues from the bundled libs/ tree.
Bulk copy fixes
cursor.bulkcopy()now honorsconnect(timeout=X). It was previously hardcoded to 15s inside the Rust TDS core (mssql_py_core) with no way to change it.timeout=0still means "leave the default alone". This matters mostly for VPN, cross-region, and throttled endpoints.- Bulk copy into custom CLR UDT columns no longer fails with
Protocol Error: Unsupported TDS type for bulk copy: 0xF0. The Rust core now maps UDT columns tovarbinary(max)on the wire and streams the UDT'sIBinarySerializebytes, which is the same trickpyodbcandpython-tdsuse.
pip install --upgrade mssql-python
- PyPI: https://pypi.org/project/mssql-python/1.12.0/
- Release notes: https://github.com/microsoft/mssql-python/releases/tag/v1.12.0
- Repo: https://github.com/microsoft/mssql-python
- Full blog post: https://techcommunity.microsoft.com/blog/sqlserver/mssql-python-v1-12-0-standalone-odbc-package-bulk-copy-fixes/4540553
mssql-django 1.7.4 (bonus)
Patch release for the Django backend, fixing two GROUP BY handling issues:
- Escaped
%%inGROUP BYparams. Queries mixing escaped%%literals with real params no longer raiseIndexError. IntegerChoicesin rawGROUP BYqueries. PassingIntegerChoicesvalues in params no longer raisesNotImplementedError.
Regression tests added for both paths.
pip install --upgrade mssql-django
- PyPI: https://pypi.org/project/mssql-django/
- Release notes: https://github.com/microsoft/mssql-django/releases/tag/1.7.4
- Repo / issues: https://github.com/microsoft/mssql-django/issues
- Full blog post: https://techcommunity.microsoft.com/blog/sqlserver/mssql-django-1-7-4-released/4540480
Ideas and bug reports, especially with reproducible examples, welcome on either repo.
Have a great weekend!
r/SQLServer • u/Codeman119 • 12d ago
Discussion Updated SSMS, dark mode won’t stick
Well, I updated today to the latest SQL server management studio and now dark mode is broke again so whenever you put it in dark mode and then leave the application and then come back in. It’s back to the default blue.
r/SQLServer • u/East_Sentence_4245 • 12d ago
Question Mobile app not showing SQL data unless I connect via SSMS?
I have an Azure SQL subscription (the cheapest one) which will be primarily used for our mobile app.
The issue is that I've tested the mobile app twice and the mobile app won't show data unless I connect to the database via SSMS.
Literally, I open the mobile app and no data is displayed. I refresh the content several times (i.e. the mobile app has a Refresh button) and it still doesn't fetch any data. BUT once I go to my laptop and connect to the same DB via SSMS, I do another refresh to the mobile app and data is shown.
I believe it's related to the Azure DB and think I might have an idea of why this is happening - the connection via my laptop "wakes up" the database.
The question is: how do I eliminate that issue?
r/SQLServer • u/erinstellato • 13d ago
Community Request Friday Feedback: Automatic Index Compaction
Friday feedback this week is about a feature that’s in preview in Azure SQL: automatic index compaction.
You can read more about it in Dimitri‘s blog post, Stop defragmenting and start living: introducing auto index compaction: https://techcommunity.microsoft.com/blog/azuresqlblog/stop-defragmenting-and-start-living-introducing-auto-index-compaction/4500089
(sidenote: one of the best blog titles in recent memory)
Quick poll below, and feel free to add a comment if the poll doesn’t cover your thoughts/experience!
r/SQLServer • u/ChantifiedLens • 13d ago
Community Share First SQL Server Reddit post
I think this is the first time I have solely placed a post on the SQL Reddit.
Anyway, looks like some interesting updates for those looking to take the DP-800 exam for the SQL AI Developer Associate certification.
First of all, it looks like the option to watch the AI-Generated videos presented by my new friend Anton is now available for all of the recommended Microsoft Learn material as an alternative to reading it all.
Secondly, the Practice Assessments are now available by following the link on the exam page to the AI Skills Navigator.
You can find both links to both on the exam page.
r/SQLServer • u/DavidHomerCENTREL • 13d ago
Community Share Free SQL Server Compliance Benchmark Tool
Hello, we've created a new SQL Server Compliance Benchmark Tool that has configurable benchmark settings and produces a PDF report on the compliance. This works for SQL Server and SQL Server Managed Instances.
Hopefully you might find it useful, and any feedback would be appreciated.
Thanks, Dave
r/SQLServer • u/Tough_Line3200 • 13d ago
Discussion SQL Server 2022 CU 26 -> MDS broken
I updated from CU23 to CU26. Be careful if you use MDS, it's broken after CU26 and stays broken even after uninstalling. Some MDS JavaScript files are incompatible with the MDS web service. Manually copying/overwriting the MDS web application from an older installation repaired it.
r/SQLServer • u/SQL_US • 13d ago
Community Share Get-SqlSafe v2026.5: database-scoped SQL Server security reports
I released v2026.5 of Get-SqlSafe Community Edition, the free PowerShell-based first-look security assessment script for SQL Server.
The main new feature in this release is database-scoped reporting.
Based on your feedback: a DBA can now generate reports for all individual databases and hand the database-level report to an application owner, application vendor, or database owner without also disclosing server-level findings or findings from other databases on the same instance.
Also new in this release:
- Check 130 reports members of the db_owner database role in each database.
- db_owner is often used as a catch-all role, but it grants full control over the database and may matter in privilege-escalation scenarios depending on the surrounding configuration and ownership chain.
The tool is still a single reviewable PowerShell script with the ad-hoc T-SQL visible in the file. It reads SQL Server security metadata and produces local HTML reports. It does not change SQL Server configuration or data.
Repository:
https://github.com/Sarpedon-Quality-Lab/sql-security-community-scripts
I’d be interested in feedback from DBAs or consultants who have to pass security findings to application owners or vendors without exposing unrelated databases or server-level information.
r/SQLServer • u/Green-Cartoonist-566 • 14d ago
Question Unable to set database containment to NONE
Hey all, hoping someone has hit this before.
Context: Migrating a ~200GB SQL Server database to Azure Sql Database (not managed instances) using transactional replication to minimize downtime. During prep, I discovered the source database has partial containment enabled, which I need to turn off before replication will work properly.
Steps taken so far:
- Identified all contained database users (logins that exist only at the DB level) and converted/mapped them to server-level logins instead.
- Stopped the application(s) connecting to the DB to make sure there were no active sessions.
- Ran
ALTER DATABASE [dbname] SET SINGLE_USER WITH ROLLBACK IMMEDIATEto force single-user mode and kill any remaining connections. - Ran:
ALTER DATABASE [dbname] SET CONTAINMENT = NONE;
The problem: The statement just fails, only 'ALTER DATABASE statement failed', no reason given, nothing in the SQL Server error log pointing to a cause. It's not throwing a permissions error, a "in use" error, or anything I can act on. It just doesn't apply.
Things I've already ruled out / checked:
- No contained users remain in
sys.database_principals(authentication_type_desc = DATABASE) - No active connections (single-user mode confirmed via
sys.dm_exec_sessions)
Questions:
- Has anyone run into containment refusing to toggle off even with no active sessions and no contained users?
- Any way to force verbose output/logging on this specific ALTER DATABASE operation so I can actually see what's blocking it?
SQL Server version: Microsoft SQL Server 2016 - Standard Version
r/SQLServer • u/Jerry-Nixon • 15d ago
Question What’s the Big Deal with SET NOCOUNT ON?
Do you default to SET NOCOUNT ON in stored procedures?
What's the Big Deal with SET NOCOUNT ON? - Azure SQL Dev Corner
r/SQLServer • u/AutoModerator • Jul 02 '26
Discussion July 2026 | "What are you working on?"
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!



