-
-
Save sohooo/25390fdf5076df412efea5f1124064f1 to your computer and use it in GitHub Desktop.
DSN-less ODBC Connection with ruby-sequel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'sequel' | |
DB = Sequel.connect(:adapter=>'odbc',:driver=>'SQL Server Native Client 10.0',:server=>'localhost',:port=>1433, :uid=>'myuser',:pwd=>'mypass',:db_type=>'mssql') | |
DB.fetch("SELECT * FROM artist") do |row| | |
puts row | |
end |
Author
sohooo
commented
Jan 20, 2018
- SAP HANA ODBC
- Red Hat ODBC Config
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment