I canβt give you a fully processed example, since I just started working with Ruby with MS SQL Server, but based on my experience and you said, I would suggest using the model tool Sequel.
Sequel definitely supports and tests on MS SQL Server, but the situation seems a little less clear with Active Record. I have not used DataMapper, so I can not comment on this. As far as I know, the only ORMs for Ruby are DataMapper, Sequel, Active Record 2 and Active Relation / Active Record 3 (new material for accessing Rails 3 data).
There is an Active Record adapter for MS SQL , but for me this did not work with MRI 1.8.7. Microsoft's IronRuby team uses the version of this adapter to run IronRuby on Rails with MS SQL Server, so you can try using Active Record to combine IronRuby. IronRuby is currently in the Release Candidate phase, so this should work, although there are still many bug fixes available.
source share