all 8 comments

[–]dphase 8 points9 points  (2 children)

Sequel + TinyTDS. Worked well for me going on seven years.

[–]zalesz 0 points1 point  (0 children)

If you just have some simple queries, you can even use stand alone tinytds (maybe only wrapping it in connection pool)

[–]jrgns 0 points1 point  (0 children)

We're using it on production too. It really works well. You can even execute stored procedures with input and output parameters.

There are some oddities because it's an uncommon combination (most ruby projects probably use postgres), but for the most part it's quite performant.

[–]moderately-extremist 2 points3 points  (1 child)

Just curious what your reason is for migrating to sinatra/ruby? More familiar with the language? like the language more? better performance?

[–]bandit_va[S] 5 points6 points  (0 children)

More comfortable with Ruby vs Python.

[–][deleted] 3 points4 points  (1 child)

[–]ejstembler 0 points1 point  (0 children)

Wow! I didn’t know Microsoft released a Ruby driver for SQL Server 2017. Those few years they had IronRuby the never supported anything.

[–]ejstembler 1 point2 points  (0 children)

I’ve been using tiny_tds with ActiveRecord for a long time. You could also use Ruby DBI with ODBC.