Connecting the "sequel" gem to MSSQL via ODBC

Posted . Visible to the public.

After you configured your ODBC describe in

you can connect with sequel Show archive.org snapshot :

require "rubygems"
require "sequel"
db = Sequel.odbc("MyODBCDatabaseName", :user => "my_user_name", :password => "my_password")
db["select top 5 name from user"].collect
Profile picture of Martin Straub
Martin Straub
Last edit
Keywords
ruby, gem, SQL, Server
License
Source code in this card is licensed under the MIT License.
Posted by Martin Straub to makandra dev (2012-03-23 09:40)