Connecting the "sequel" gem to MSSQL via ODBC

Posted About 12 years ago. 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
Last edit
About 12 years ago
Keywords
ruby, gem, SQL, Server
License
Source code in this card is licensed under the MIT License.
Posted to makandra dev (2012-03-23 09:40)