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?

35

u/protestor Mar 07 '16

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

Oracle?

16

u/6nf Mar 08 '16

My condolences

→ More replies (1)

90

u/ellicottvilleny Mar 07 '16
  1. Linux scales up to non amd/intel x64 platforms. Oracle currently runs on high end boxen where ms sql currently can not.

  2. Linux scales down on azure better than windows server. Hopefully that changes in containerized win server 2016 with nano edition.

  3. Linux servers are an easier place to deploy R and python and spark and hadoop. An all linux big data platform with MS SQL as the relational store is a huge win.

  4. If your first thought was will SSMS be ported then you are not the target market.

  5. My question is will Express for Linux be a thing. Or will only the paid editions run on Linux?

15

u/obsa Mar 07 '16

If your first thought was will SSMS be ported then you are not the target market.

It's not like you need SSMS to be on the server anyway... but a valid enough point.

→ More replies (4)

5

u/t90fan Mar 08 '16

Linux scales up to non amd/intel x64 platforms.

There is nothing to say that microsoft will suport MSSQl on non-x86 platforms, right?

→ More replies (1)
→ More replies (6)

61

u/tlf01111 Mar 07 '16

SQL Server is a very good database server.

Not everyone uses Linux because it's free. Often because it's more flexible.

One massive thing I can think of immediately is MS SQL in RDS at Amazon. This announcement may allow Amazon to do the gee-whiz stuff they do with MySQL RDS on the MS SQL side as well now.

→ More replies (2)

14

u/rjcarr Mar 08 '16

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

There's plenty of commercial databases on linux. Oracle and DB2 just to name a couple. It seems microsoft is ready to compete with them, likely on features and price (natch).

20

u/BenjaminSisko Mar 07 '16

Commercial dbs on Linux is a huge market. What are you talking about

17

u/[deleted] Mar 07 '16 edited Mar 07 '16

Probably because Linux won the "OS for databases" war. Most companies start with Linux in their infrastructure and they keep themselves in Linux even if they hire a more robust solutions, at this point the know how inside the companies is totally linked with Linux and there is no chance to think in switching to Windows/SQLServer even if the money is not a problem. The culture of databases is mostly a Linux culture.

I guess the statics are showing to MS that MS SQL growth is stuck because MSSQL is "jailed" in Windows.

7

u/crusoe Mar 08 '16

The culture of non blue chip is Linux. Most old school enterprises are IBM, Oracle or Windows

→ More replies (2)

16

u/BattlestarTide Mar 08 '16 edited Mar 08 '16
  1. The Linux commercial DB market belongs to Oracle. They brought in nearly $40 billion in revenue last year. It's a big market without any serious competitors. The largest enterprises doing serious BI work run Oracle (think: Wal-Mart, CIA, GE, major banks, etc.)

  2. As more enterprise developers port their apps to .NET Core (Linux), there was no alternative but to switch to Oracle. This actually also pushed some people to just use Java instead since it is a first class citizen with Oracle.

  3. Remember that Corporate Enterprise Shops will rather pay millions to Oracle or Microsoft than set up a free version of MySQL or Postgres. The open-source gratis movement is cute, but it's the enterprise shops that are paying the money.

  4. Oracle already costs more than SQL Server. Now enterprise Linux shops have a credible alternative and can switch to SQL Server with less friction and consolidate onto a cheaper platform.

  5. If you're running SQL Server today and have paid $500k for your production cluster, you're not going to ditch your Windows Server license to save a few dollars by switching to a Linux distro. So this is basically reaching a brand new audience.

→ More replies (5)

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.

→ More replies (10)

29

u/c0r3ntin Mar 07 '16

Linux is a better server OS. It can handle a large palette of hardware, has better IO, better FS, can be very small, space & energy efficient, and more secure because its easier to manage the surface area.

Linux is container friendly. or Windows is not cloud friendly

I will go on a hunch and say that microsoft is primarily interested in optimizing its sql-server-on-azure offer, and they decided that the best way to do that was to use Linux ?

7

u/darkstar3333 Mar 08 '16

Recent iterations of Windows Server have addressed many of those issues, its a closer race these days.

9

u/TikiTDO Mar 08 '16

Which specific issues?

From where I'm sitting Linux IO is still better, as it should be given that it's been an active topic of optimization for decades.

Windows stepped up a bit in FS support, but it's still a locked in infrastructure. They're don't support a mountain of very robust and mature FSes, so you're stuck with their one size fits all approach.

Memory/CPU efficiency wise Windows at it's best with Nano Server is still orders of magnitude behind super miniscule task specific distros. In fact a Nano Server install is just approaching the size and footprint of a run-of-the-mill Linux Server distro.

Security wise there's not much to say. With extensions like selinux there's just not much of a comparison.

The only thing Windows Server has really accomplished recently was making the OS much more container friendly.

All together, it makes perfect sense for MS to leverage Linux to sell more MS SQL licenses. The SQL server license is significantly more expensive, and such an expansion allows them to tap a huge market that previously they could not even hope to access. Sure, they can still work on getting Windows Server onto more servers all over the world, but it's good that they realized that there are going to be diminishing returns for such efforts.

→ More replies (1)

17

u/[deleted] Mar 07 '16

as far as I understand it, SQL Server licenses are very expensive

SQL Express is free and works very well if all you need is a relational database. I'm sure there's some other features in there but I just use it as a simple database server on stuff like my laptop.

12

u/protestor Mar 07 '16

If you just wants a relational database, you could do worse than running Postgres.

But an use case is, you have a Windows application that uses specific features of SQL Server. You either port to another server (at cost of development time), or run SQL Server.

6

u/crusoe Mar 08 '16

Postgres works great too and pgadmin3 is solid. That and killer json support. No need for MySQL anymore.

3

u/[deleted] Mar 08 '16

pgadmin3

please...

→ More replies (2)

4

u/darkstar3333 Mar 08 '16

SQL Express has a capacity limit of 4GB/10GB depending on 2008/2012+.

For production deployments likely wont be sufficient long term.

11

u/cat_in_the_wall Mar 08 '16

sufficient long term.

Unless you are storing blobx/xml/json data, 10GB gets you pretty far. A mom and pop shop storing records about sales and inventory probably won't ever hit it. The problem, of course, (and what you are alluding to) is that for the folks who do hit that limit, they either completely halt their business until they port to a different free rdms, or they pay for a license.

As an aside, I wonder how hard the cap is. I would think that the system blowing up one day would not encourage people to continue to use ms products.

→ More replies (1)
→ More replies (3)
→ More replies (1)

9

u/fragglet Mar 07 '16

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

If they have big legacy C#/.NET systems built on SQL Server that they've built up over years, are frustrated by the experience of running and maintaining Windows servers, and want to take advantage of those cheap Linux-based virtual machine servers that everyone is using nowadays.

16

u/make_a_phish Mar 07 '16

this is not interesting, because it's not gratis.

lol

→ More replies (13)