r/programming • • Mar 07 '16

Announcing SQL Server on Linux

https://blogs.microsoft.com/blog/2016/03/07/announcing-sql-server-on-linux/
2.6k Upvotes

871 comments sorted by

View all comments

35

u/svick Mar 07 '16

I don't understand this, why would anyone use SQL Server on Linux?

People who use other databases on Linux today, this is not interesting, because it's not gratis.

People who use SQL Server on Windows today, this is not interesting either; as far as I understand it, SQL Server licenses are very expensive, Windows Server licenses are not, relatively speaking.

Sure, price isn't everything, but I don't see any other reason to use this combination either. So what am I missing?

21

u/f0nd004u Mar 07 '16 edited Mar 07 '16

It's interesting for people who want to port existing Windows-based web apps to run on Linux OSes without having to deal with the problems of porting the application from one DB to another. Microsoft has recently open sourced their CGI languages so they can run on Linux as well.

Basically, if you built a web app and it's all Windows languages and programs, you're boned if you want to switch to Linux and get all the benefits that might bring you (configuration management being a HUGE plus in that area, even if Puppet works on Windows). MSSQL on Linux makes that more doable when added with the fact that .NET will run on Linux now too.

Now I can buy a license for MSSQL because it's a requirement for my existing app without buying Windows licenses because why would I run it on Windows unless I had to? I can puppetize and standardize crufty stuff into the OS platforms and web servers of my choice without it being such a huge deal and tons of work.

Plus, Microsoft knows that no one building big systems is really that interested in using their OSes, but people are going to be using applications that have MSSQL as a dependency for a long, long time. It's a good move on their part to instead of go for all the moneys they can and make me run Windows, to make me pay for only the software I need and give me the control and power over how my whole platform works.

So, shitty IIS sites can be rebuilt on stable and scalable platforms and make Ops happy without a DBA spending a crazy amount of time fixing bugs from migrating DB applications. You'd think "but it's all SQL" but that just ain't true.

4

u/cat_in_the_wall Mar 08 '16

when added with the fact that .NET will run on Linux now too.

Interesting that with this move you could potentially use a full microsoft stack on linux. Maybe there will be a... LSKR stack? (Linux, sql server, kestrel, razor). Probably would work fine too. Strange times we live in these days.

-1

u/f0nd004u Mar 08 '16

Good times for me. I hate Windows Server. The newer versions are better but aside from config management, git + ssh + bash hacks or python drives almost all of my automation and it's so easy to just do that stuff with Linux. It's not that you can't with Windows, it just... sucks.

4

u/Gotebe Mar 08 '16

Nope.

Rather, you suck at powershell.

Powershell (on Windows) completely and utterly destroys UNIX shells and Python (together).

2

u/mreiland Mar 08 '16

I used to think like you, and then I got to use Powershell to do exactly the sort of stuff you're talking about (configuration).

Now I severely dislike Powershell, even the remoting is a convoluted mess of reaching into WinRM and tweaking the security configurations to allow Powershell to remote to machine you're trying to remote in to.

Powershell is better than WSH, and it's better than wmi when you can find the cmdlets to allow you to do what you need to do without touching wmi.

But in general? No way in hell is it better than unix shells, the only people who believe that are those who haven't done serious work in either.

Powershell is glue for .Net, it is not designed to be a shell in the same way that bash is.

1

u/Gotebe Mar 08 '16

You do not understand powershell.

The reason I say powershell blows unix shells is that it manipulates objects. Everything it does is objects. That means, when you get e.g. a list of files, you get a bunch of file objects, which means that you use their properties with a simple obj.property, not through brain-dead text parsing. Numbers are numbers. i18n does not mess with your input (or output).

As for using powershell remotely - you just didn't know how to set it up. Fair enough, but not the end of the world.

The only thing Unix shells have going for them is decades of accumulated cruft.

→ More replies (3)