How to connect to SQL Server 2005 database through Ruby in Windows
I have luck using FreeTDS and TinyTDS on Linux. I prefer that path because messing with ODBC was a pain.
In addition, I recommend using the Sequel ORM, because it helps remove the task of dealing with different flavors of SQL, allowing us to concentrate on programming, not writing queries that are tied to a particular DBM.