News for hackers. Stuff that matters.
Re:SQL Notebook by infogulch on Tuesday May 09, 2017 @01:46PM (#14302264)
I feel like rewriting this on top of SQL Server Express would still be valuable. Setting up and managing linked servers manually, especially with non-SQL Server databases can be a pita especially considering managing their drivers etc.

Also, SQL Server is awful at importing/exporting data directly. Almost all forms are broken in various ways and are a source of endless grief. The only reliable built-in way is to use SSIS which is like using a 200-ton tank for a paperweight.

Re:SQL Notebook by jimktrains2 on Tuesday May 09, 2017 @02:02PM (#14302428)
> I feel like rewriting this on top of SQL Server Express

Why choose a proprietary engine? Why not use PostgreSQL or even MySQL?

Re:SQL Notebook by frik on Tuesday May 09, 2017 @02:50PM (#14302828)
I can recommend HeidiSQL, a useful GUI for MySQL, MariaDB, MSSQL and Postgres. https://en.wikipedia.org/wiki/HeidiSQL

They probably meant SQL Server Compact, which is a smaller package and comparable to SQLite. It was meant to power WinFS back in 2006. But it's closed source and now legacy.

https://en.wikipedia.org/wiki/SQL_Server_Compact

Re:SQL Notebook by krylon on Tuesday May 09, 2017 @02:44PM (#14302790)
There are many business applications that target SQL Server exclusively.

On the one hand, I find that highly annoying. On the other hand, even if you don't like Microsoft, SQL Server is fairly awesome, performance-wise and stability-wise.

But still, there are many applications where you cannot really choose what database engine you want to use.

Re:SQL Notebook by infogulch on Tuesday May 09, 2017 @03:07PM (#14302958)
I suppose PostgreSQL+FDW would be just as good as SQL Server Express+Linked Servers technically. You end up trading users' MSSQL experience for pgsql.

I wonder if it would be easy to support both backends and be able to switch between them depending on the query and which features and integrations you want.

Re:SQL Notebook by Pxtl on Tuesday May 09, 2017 @05:31PM (#14303974)
> Also, SQL Server is awful at importing/exporting data directly. Almost all forms are broken in various ways and are a source of endless grief. The only reliable built-in way is to use SSIS which is like using a 200-ton tank for a paperweight.

So much this. BCP is inferior to 5 lines of C# code, the tools for importing and exporting data in SSMS are buggy and cumbersome, SSIS is a gigantic monster. Simple "Export the results of my query into an INSERT statement" is a moronically obvious workflow and is non-existent.

I've read that the tools division of MSSQL was running on a skeleton crew for a long time, and it shows.

Re:SQL Notebook by mistermann on Tuesday May 09, 2017 @05:52PM (#14304116)
Despite everyone saying SSMS is hands down the best database IDE, while this may be true it is also true that MSSQL tooling is a train wreck compared to what it could be. It almost seems Microsoft intends to keep it this way, perhaps because they'd have to finally admit to the decade of neglect? Who knows the exact reason, but it's a sad situation.
Re:SQL Notebook by infogulch on Tuesday May 09, 2017 @06:14PM (#14304281)
What kind of tooling are you speaking of? Honest question.
Re:SQL Notebook by Pxtl on Tuesday May 09, 2017 @07:06PM (#14304630)
Sql Server Reporting Services is great but the server website was obviously mid-2000s until very recently, even containing markup that wouldnt render in Chrome.

SSIS is a hellscape of unnecessary designers for an ETL framework, and generates ultra-brittle packages that crash if the slightest schema tweaks happen.

SSDT stores your schema and publishes diffs for easy deployment, but will gobble up all your RAM for half an hour to compile... if it doesn't crash.

And SSMS has the worst tabbed interface ever for managing queries.

Re:SQL Notebook by infogulch on Wednesday May 10, 2017 @10:38AM (#14308524)
I agree with you on all points. Products on the periphery of SQL Server have been severely neglected for years. There is a replacement for some of SSRS in PowerBI and SSAS, which is actually pretty nice. If I'm not mistaken, people serious about version control and deployment in SQL Server use redgate software.

My question is how other databases fare in these areas. I'm not familiar with any solutions for Reporting UI, ETL, and Schema Version Control in MySQL or PostgreSQL. What built-in tools do other databases have that outperform SQL Server's (obviously crumbling) functionality?

Re:SQL Notebook by mistermann on Thursday May 11, 2017 @01:24AM (#14314018)
The general consensus is usually that this MS tooling, yes the one just described, is very good! Certainly far better than the competition. It boggles the mind.
Re:SQL Notebook by jetti on Wednesday May 10, 2017 @02:24PM (#14310384)
>Simple "Export the results of my query into an INSERT statement" is a moronically obvious workflow and is non-existent.

I've only used SSIS for a few months now, but wouldn't this just be a simple Data Flow Task for that. Now, I'm not saying I would use SSIS for that (because I frankly hate SSIS) but it is a trivial thing to do.

Re:SQL Notebook by voltagex_ on Tuesday May 09, 2017 @11:28PM (#14305719)
I've never been able to match bcp's speed when importing large amounts of data, though.
Re:SQL Notebook by Pxtl on Tuesday May 09, 2017 @11:48PM (#14305792)
I've never had an import job where run time was a key concern... but the old ADO.Net Bulk Insert thingy has always been good enough when Entity Framework was too slow (which, for inserts, it generally is).
Re:SQL Notebook by flukus on Wednesday May 10, 2017 @01:18AM (#14306071)
How large a job are you talking? Did you use a transaction? A transaction + being in a nearby location has been good enough for every import I've done (millions of rows).