Live data from Hacker News

Ask HN: Would you consider running SQL Server on Linux?

news.ycombinator.com

21–30 of 90 posts

Re: Ask HN: Would you consider running SQL Server on Linux?

#21
I actually have been running SQL Server for linux for the past few months.

In a docker container, no less.

This is entirely for testing a part of our application that needs to connect to legacy mssql servers. The server is spun up, databases are created programmatically, tests are run, and then the container is destroyed.

As for running this in production, ahahaha no.

Re: Ask HN: Would you consider running SQL Server on Linux?

#22
post #19

Why would I invite that headache when I can just install PostgreSQL instead? https://www.pg-versus-ms.com/ says it all.

The certificate has expired, Chrome gives a nice ugly warning. But thanks for the link, I'm curious.

I just sent an e-mail about that to the person running the site, assuming the e-mail address in the top right is relevant.

Re: Ask HN: Would you consider running SQL Server on Linux?

#23
post #2

> If not, why not? First most important question to answer: in what way MS SQL Server would be better than PostgreSQL? Fields to consider: - Easier to install? (apt-get install postgresql-server) - Easier to use? (initiating the Sybase client library used to be terrible) (EDIT: it was installing the client library, not initiating it) - Easier to manage? (Postgres is excellent in this field) - Has important functions…

Yeah, I agree. Each has the odd thing the other doesn't but it is hard to justify the cost of SQL Server over Postgres

What if I want to run an application that doesn't support Postgres?

Re: Ask HN: Would you consider running SQL Server on Linux?

#24

I would consider using it because: 1. I work in a backwards enterprise shop where "no one ever got fired for choosing Microsoft" and it would be easier (read as "possible) to get IT here to support it than Postgres. (That said, they do support Mongo internally but won't admit that to software teams) 2. It's much cheaper than Oracle, which is the other "enterprise" database where it's easier to get an install done 3.…

Can you elaborate on point 3? If the argument is ideological, I get it. I'm more interested in the technical argument.

Re: Ask HN: Would you consider running SQL Server on Linux?

#25
post #19

Why would I invite that headache when I can just install PostgreSQL instead? https://www.pg-versus-ms.com/ says it all.

The certificate has expired, Chrome gives a nice ugly warning. But thanks for the link, I'm curious.

I sent the author an email. It's just a plain HTML page behind the expired SSL.

Re: Ask HN: Would you consider running SQL Server on Linux?

#26

Earlier quoted context omitted.

Yeah, I agree. Each has the odd thing the other doesn't but it is hard to justify the cost of SQL Server over Postgres

> but it is hard to justify the cost of SQL Server over Postgres For the benefits of readers who don't know, SQL Server Standard Edition is ~$2k USD per CPU core, and Enterprise Edition is $7k.

EnterpriseDB is something like $1700/core/year, which targets the same market - "enterprise" shops who want a vendors neck to wring when something breaks.

Honestly, SQL Server is priced very well - even enterprise edition given the features it provides. The biggest problem I have with it is T-SQL being terrible compared to pl/pgsql and the lack of developer-centric features like arrays, composite types, and a lot of other QoL features postgres has that MSSQL doesn't.

If you're going to deploy SQL Server, being able to do it on a platform that doesn't make me as a sysadmin/DevOps Engineer want to strangle myself with cluster configuration nightmares is a welcome change.

Re: Ask HN: Would you consider running SQL Server on Linux?

#28

No, almost certainly not. Why would I use MSSQL in the first place, when I could just use PostgreSQL? The main reason I could see to use MSSQL would be "you're in a Windows shop already", and if that isn't the case, I don't see much reason for it.

In my experience, the main reason why most organizations run things like SQL Server or indeed Oracle is because they want to run applications that depend on those particular databases.

Sure - but it would be weird for an application to depend on SQL server and not depend on Windows, and if you're going to be running Windows for some of your servers anyway it's easier to use the same platform for all of them.

Re: Ask HN: Would you consider running SQL Server on Linux?

#29
Yes, absolutely, because of Microsoft's licensing model for HyperV.

Windows Datacenter Edition is not cost effective for us, and that means we only run two Windows instances per host. By moving MSSQL to Linux, we can free up a Windows Server Standard license for other purposes.

You can run as many non-Windows instances on HyperV as your want, but you can only run 2 Windows instances unless you pay to license every physical core on the server a second or third time, even if you are not using them for Windows (for example, if you wanted to run a third Windows instance on a host.) This means we have additional hardware capacity that we use to run Linux instances next to the 2 allowed Windows instances.

Re: Ask HN: Would you consider running SQL Server on Linux?

#30
post #28

Earlier quoted context omitted.

In my experience, the main reason why most organizations run things like SQL Server or indeed Oracle is because they want to run applications that depend on those particular databases.

Sure - but it would be weird for an application to depend on SQL server and not depend on Windows, and if you're going to be running Windows for some of your servers anyway it's easier to use the same platform for all of them.

There are some .NET Core programs that also depend on SQL Server but not Windows necessarily. Bitwarden[1] comes to mind.

[1] https://help.bitwarden.com/article/install-on-premise/

Post reply on HN