Problems displaying this newsletter? View online.
SQL Server Central
Featured Contents
Question of the Day
The Voice of the DBA
 

SQL Server Still Wins

Is it worth continuing to run SQL Server when PostgreSQL licensing is zero? Rebecca Lewis has a well written post on why that looks at some of the pros and cons of paying for SQL Server instead of moving to PostgreSQL. She starts with some of the things PostgreSQL does well, of which I think the Extensibility is really cool. SQL Server has some of this in CLR and the non-SQL language support, but those seem kludgy and complex to me. They aren't really integrated into the SQL Server platform.

They're good, but I do wish vendors or the community could add some extensions in a way PostgreSQL does. Of course, I also worry about stability, so maybe this is a wish that isn't really a great idea.

The pros list for SQL Server is quite a good list, at least for existing users. Tooling isn't close, both for DBAs and developers, and inside the platform. At Redgate, we support both SQL Server and PostgreSQL with Redgate Monitor, and there is so much more information that we can gather from SQL Server on what's happening. It's truly amazing when I compare them. We constantly are looking to add to our PostgreSQL monitoring solution and ensure admins see as close a view in PostgreSQL as SQL Server, but the reality is so much information is available.

On the dev tool side, while SSMS can be slow, it's still way better than any other database development tools I've seen.

The innovation argument for SQL Server over PostgreSQL isn't a great one, as PostgreSQL continues to evolve, but I'm glad Microsoft continues to work on the engine. I wasn't enamored with SQL Server 2022, but I do like 2025 and look forward to what comes in 2028 (my guess). What I really wish, however, is that Microsoft marketed SQL Server more, with a little less Fabric in the way.

That being said, I am continually grateful for the SQL Server marketing team's support of SQL Saturday/Day of Data events.

It is interesting to think that the Microsoft-stack gravity is Rebecca's third argument. It certainly makes a lot of work convenient if you use Microsoft tools, and I completely agree that ripping this out is a major reason why people stick with SQL Server. Across the last 5-6 years, I've had many customers tell me they're moving to PostgreSQL and abandoning SQL Server. They constantly ask Redgate for more PostgreSQL tools (and we've built some), but the reality is that a year, or two, or three later, they still have those ambitious plans. They haven't moved.

It's really, really hard to change database platforms.

That might not seem like a pro, but it is a reason why SQL Server still wins in many organizations. It's comfortable, effective, performs well under a variety of situations, and quite frankly, there are millions of people who are more comfortable with it than many other platforms.

I like other platforms, but I love SQL Server. It's been good for my career and I look forward to spending the next 10-15 years continuing to help others get the most out of their installations.

 

Steve Jones - SSC Editor

Join the debate, and respond to today's editorial on the forums

 
 Featured Contents
SQLServerCentral Article

Parameter Sniffing in Production: How a 200ms Query Became a 90-Second Outage

vgupta from SQLServerCentral

Learn how parameter sniffing appeared in a real system and how the issues were solved.

Technical Article

Never ship a broken semantic model again: how to build automated tests in Power BI with user-defined functions

Additional Articles from SQLServerCentral

User-defined functions (UDFs) in Power BI let you build reusable, automated tests for your semantic models — so you catch broken measures, duplicate rows, and faulty relationships before they reach your reports. This article walks through how to use UDFs alongside PQL.Assert to standardize testing across your team, and how to automate those tests with Power Automate or a Fabric Notebook.

Blog Post

From the SQL Server Central Blogs - KDA: Echoes of Deception - Case 4

Zikato from StraightforwardSQL

Someone hacked Digitown's municipality and stole classified documents. 45 million rows of router traffic, an IP lookup table, and KQL's anomaly detection to find who did it.

Blog Post

From the SQL Server Central Blogs - 5 Starter Projects for Your AI and Data Engineering Portfolio

epivaral from SQL Guatemala

Reading tutorials is fine. Shipping something is better. If you are trying to break into data engineering or AI, nothing on your resume carries more weight than a GitHub...

Pro SQL Server Internals

Site Owners from SQLServerCentral

Pro SQL Server Internals is a book for developers and database administrators, and it covers multiple SQL Server versions

 

 Question of the Day

Today's question (by Steve Jones - SSC Editor):

 

DBCC CHECKDB Limits I

When running DBCC CHECKDB on SQL Server 2025, can I include the Resource Database?

Think you know the answer? Click here, and find out if you are right.

 

 

 Yesterday's Question of the Day (by Steve Jones - SSC Editor)

BIT_COUNT I

In SQL Server 2025, I have a table (dbo.UserPermission) that contains this data:

UserID  UserPermissions
15
23
37

What is returned when I run this code:

select bit_count(UserPermissions) as PermissionCount
from dbo.UserPermission
where UserID = 3;

Answer: 3

Explanation: The binary representation of 7 is: 0111. BIT_COUNT() counts the number of bits set to 1 and returns a 3. Ref: BIT_COUNT() - https://learn.microsoft.com/en-us/sql/t-sql/functions/bit-count-transact-sql?view=sql-server-ver17

Discuss this question and answer on the forums

 

 

 

Database Pros Who Need Your Help

Here's a few of the new posts today on the forums. To see more, visit the forums.


Editorials
What is the Cloud? - Comments posted to this topic are about the item What is the Cloud?
Midjourney, Healthcare? - Comments posted to this topic are about the item Midjourney, Healthcare?
Changes, Happiness, and a Few Tears - Comments posted to this topic are about the item Changes, Happiness, and a Few Tears
Follow Your Hunch - Comments posted to this topic are about the item Follow Your Hunch
Article Discussions by Author
SQL Art, Part 4: Happy 4th of July — A British DBA's Guide to Celebrating a War We Don't Talk About - Comments posted to this topic are about the item SQL Art, Part 4: Happy 4th of July — A British DBA's Guide to Celebrating a War We Don't Talk About, which is is not currently available on the site.
Extreme DAX: Take your Power BI and Fabric analytics skills to the next level - Comments posted to this topic are about the item Extreme DAX: Take your Power BI and Fabric analytics skills to the next level
Changing the Schema - Comments posted to this topic are about the item Changing the Schema
Index Fragmentation Explained: Page Splits, Logical Reads, and What to Do - Comments posted to this topic are about the item Index Fragmentation Explained: Page Splits, Logical Reads, and What to Do
BCP on Linux - Comments posted to this topic are about the item BCP on Linux
You Probably Don't Need a Vector Database - Comments posted to this topic are about the item You Probably Don't Need a Vector Database
SQL Server 2022 - Administration
BCA KCP Pulogadung Trade Centre Tlp:0817839777 - WhatsApp: 0817839777 Kw. Industri Pulogadung, Jl. Raya Bekasi Km. 21, Ruko No.A2/18-19, RW.3, Wil, Kec. Cakung, Kota Jakarta Timur, Daerah Khusus Ibukota Jakarta 13920
Alamat Kantor BCA KCP Klender Tlp:0817839777 - WhatsApp: 0817839777 Jl. I Gusti Ngurah Rai No.8 A-B, RT.8/RW.6, Wil, Kec. Duren Sawit, Kota Jakarta Timur, Daerah Khusus Ibukota Jakarta 13470
Alamat BCA KCP Pondok Bambu Tlp:0817839777 - WhatsApp: 0817839777 Pondok Bambu Center, Jl. Pahlawan Revolusi No.30 Blok A/5-6, RT.2/RW.2, Wil, Kec. Duren Sawit, Kota Jakarta Timur, Daerah Khusus Ibukota Jakarta 13430
SQL Server 2022 - Development
Finding 'bad' characters - Hi All I am trying to find 'bad' characters that users might type in. My query is finding them as expected, but the results include records that I think my query should not return. Here is my query select NOTES  , ascii(left(NOTES ,1)) from trip with(nolock) where (patindex('%[^ !-~]%' collate Latin1_General_BIN, NOTES ) > 0 […]
Increment a number in a SQL Query based on a value - I have an issue where I have a Bill of Material list of items where some of the item numbers are blank. I need to give them sequential numbers from a beginning number like 9000000. then the next blank would be 9000001 and so on. I thought I could create a table and store the […]
 

 

RSS FeedTwitter

This email has been sent to {email}. To be removed from this list, please click here. If you have any problems leaving the list, please contact the webmaster@sqlservercentral.com. This newsletter was sent to you because you signed up at SQLServerCentral.com.
©2019 Redgate Software Ltd, Newnham House, Cambridge Business Park, Cambridge, CB4 0WZ, United Kingdom. All rights reserved.
webmaster@sqlservercentral.com

 

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