334 points · by kogir · 9y ago · 140 comments
Also, by having the SQLPAL be directly descended from the Windows SQLOS should mean that Windows and Linux SQL Server have similar performance, and they're not paying a significant overhead that's typical of platform emulation.
Good shit.
This is a great thing for customers too. The systems will work very similarly and less code means fewer bugs and security risks.
It did come out of the UNIX-based Sybase SQL Server, though:
https://en.wikipedia.org/wiki/Sybase
I wonder if there was an OS abstraction layer at that time (Sybase ported it to OS/2 together with Microsoft first) that was then thrown away by Microsoft after they licensed the source code and went on their own?
Encryption is easier to manage and it has built in solutions for HIPPA and PCI.
SQL reporting services and the entire ecosystem of apps that run on top of MSSQL..
Better clustering, ha, revision control and backup.
Most likely better enterprise support, and you'll be able to port "legacy" applications that were designed with win/sql in mind without having to rewrite your entire DB access and query code.
What? HIPPA, point by point [0].
- Do periodic risk assessments and be able to produce the reports if demanded.
- Have a designated HIPAA compliance officer.
- Have a security policy, train employees on it, and ensure it has sufficient teeth to terminate violators.
- Follow the principle of least privilege when granting access to PHI.
- Limit physical access to facilities.
- No shared accounts, and lock workstations when idle.
- Encrypt data at rest and in transit.
- Log data access.
- Protect data against corruption.
I suppose an RDBMS can help protect data integrity through foreign key constraints and other validation tactics, but the rest of this can't really be performed at database engine layer (unless your users are logging in to MSSQL directly?) so much as the EMR application and the physical, config management (full disk encryption + screensaver password), and bureaucratic environment it's deployed in.
[0] https://www.hhs.gov/hipaa/for-professionals/security/laws-re...
> - Log data access.
> - Protect data against corruption.
It's these three that I imagine MSSQL can help with. I believe it's got a built in storage encryption setup for tables/databases and can definitely be setup to log access to the database and queries run against HIPAA data.
Edit: I am not familar with much of anything microsoft related.
Also tools like puppet and chef for example have an easier time provisioning Unix like machines than Windows (although this has been changing, and the situation could be much better I haven't dealt with it for a bit).
Also you don't have to deal with licenses for Windows server instances which can be another huge painpoint.
Oracle support is being dropped left and right MSSQL is there because it was the defacto enterprise DB for ages and it also has a free version via MSSQL express.
And lastly having more options is never a bad thing.
Although if you're virtualizing Windows Server, it may be effectively free to run an additional Windows Server instance (since you pay per core regardless); but if your hypervisor's resources are already saturated then you could take SQL Server off of it and put it onto a inexpensive Linux Server.
Against which other product did you compare against? There are many database systems supporting Linux. IBM DB2, Oracle Database, to mention a few.
Anyone who has to do that is doing (or did, in the past) something seriously wrong. For me, the biggest reason not to change database after you accumulate a couple dozen terabytes of data is the inconvenience of dumping and restoring it and the downtime it'll cause.
That's the argument against those things - it makes it difficult to switch your database. But there are also some compelling performance arguments in some cases, so in a well-designed system those parts of the code that live in the DB also tend to be important ones.
In fact, even SQL Server Management Studio is a Windows-only application.
The app stack is usually more platform agnostic than you think. Even if it's asp.net you most likely going to be able to run it or easily port it to .net core.
Basically having cross platform .net is pointless without having cross platform everything else especially MSSQL.
Also of note, In November MS added a number of previously enterprise-only features to all versions of SQL Server 2016 (Service Pack 1 and later). Examples: In-memory OLTP, ColumnStore indexes, are available even in the free Express edition now. Native Postgres, to my knowledge, doesn't have comparables for these yet.
https://blogs.msdn.microsoft.com/sqlreleaseservices/sql-serv...
It has surprisingly little effect on many workloads though - then engine is fairly conservative on when it will use it too (and there are easy ways for you to accidentally make it not consider parallelism).
For many workloads you are often better off using the many CPU cores to run different queries than cooperate on a smaller number.
Data warehousing and "big data" are a place where this isn't the case though, and other features MS SQL Server has over PG and others shine here too: the column store indexes, in-memory processing, and so forth. And you get these in the free "express" editions too, as of 2016sp1, though that is only really useful for small projects and prototypes due to other limitations in that edition (10Gb/database, max 4 CPU cores & 1.5Gb RAM put to use per instance) so you'll be paying for standard edition at least for real work.
Some of the analytical tooling around MSSQL is pretty good too. Have had to track performance issues in the past. Even the general query analyzer integrated with Management Studio is great.
I do hope they consider going the electron route for cross-platform management studio, it's worked really well for VS Code, and can imagine it would be a great fit for this as well. Even if quite a bit outside their current tooling.
I might not mind paying for MSSQL if I also did also not have to pay for Windows.
[1]: https://blogs.msdn.microsoft.com/sqlreleaseservices/sql-serv...
PG is still very lacking when it comes to multi-node clusters for high availability for example.
We cannot run our BI on Postgres or we would. But with Microsoft's latest work, even products like Oracle Hyperion can run against SQL Server running on Linux.
Very interested to hear how to made the decision to use MS SQL and the test cases that drove that decision.
And before you ask, we spent A TON if time and money on configuration, paying for multiple postgres experts to help with optimization.
Do I know you? :) Did you actually try HFM or Planning with realistic workloads? I'm very curious... I expect Oracle will soon say SQLServer on Linux is not supported, any day from now. Their Linux support is mostly geared towards Exalytics, which is geared towards Oracle licenses. Then again, these days they're so desperate to sell extra licenses, they might even accept it.
/semi-serious :)
The sql server integration services seem interesting.
I did run into several annoying errors when trying to import from excel.
SQL server came out on top.
Queries returned results faster in sql server, after checking we had set everything up optimally in everything.
It doesn't surprise me though... MSSQL tends to do very well out of the box for most workloads.
[edit] https://www.microsoft.com/en-us/sql-server/sql-server-2016-p...
It would have been nice if some were able to explain why the above reasoning of selling licenses is incorrect? There is no other reason for MS to do this besides money.
I keep thinking it would be cool to see an interactive graph of connection latency, and throughput for 1k, 1mb, 1gb xfers between the major data centers for the big cloud providers. If I could get compute from DO/Linode and use services from Azure and have under 20ms latency for data queries, I might use Azure for services, and Linode or DO for compute.
I know that's too much for some things, but may be work the cost in latency for many use cases... saving a few hundred a month on web/service vm's and leverage Azure beyond that.
(as for downvotes, probably mickeysoft)
[1] https://github.com/lewischeng-ms/sscli/tree/master/pal/unix
[2] https://github.com/lewischeng-ms/sscli/blob/adbd6bbad0816f65...
https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-...
and for the people doing docker