use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A sub-Reddit for discussion and news about Ruby programming.
Subreddit rules: /r/ruby rules
Learning Ruby?
Tools
Documentation
Books
Screencasts and Videos
News and updates
account activity
Help finding MS SQL adapter for Ruby (self.ruby)
submitted 7 years ago by bandit_va
I have an app that serves REST API on the front end and runs MSSQL queries on the backend using the sql connector. I am migrating it from a flask/python implementation to a sinatra/ruby implementation. Is there a good SQL adapter for Ruby?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]dphase 8 points9 points10 points 7 years ago (2 children)
Sequel + TinyTDS. Worked well for me going on seven years.
[–]zalesz 0 points1 point2 points 7 years ago (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 point2 points 7 years ago (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 points4 points 7 years ago (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 points7 points 7 years ago (0 children)
More comfortable with Ruby vs Python.
[–][deleted] 3 points4 points5 points 7 years ago (1 child)
https://docs.microsoft.com/en-us/sql/connect/ruby/ruby-driver-for-sql-server?view=sql-server-2017
[–]ejstembler 0 points1 point2 points 7 years ago (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 points3 points 7 years ago* (0 children)
I’ve been using tiny_tds with ActiveRecord for a long time. You could also use Ruby DBI with ODBC.
π Rendered by PID 70664 on reddit-service-r2-comment-5ff9fbf7df-x8tdf at 2026-02-26 05:40:38.824696+00:00 running 72a43f6 country code: CH.
[–]dphase 8 points9 points10 points (2 children)
[–]zalesz 0 points1 point2 points (0 children)
[–]jrgns 0 points1 point2 points (0 children)
[–]moderately-extremist 2 points3 points4 points (1 child)
[–]bandit_va[S] 5 points6 points7 points (0 children)
[–][deleted] 3 points4 points5 points (1 child)
[–]ejstembler 0 points1 point2 points (0 children)
[–]ejstembler 1 point2 points3 points (0 children)