Created
April 24, 2013 13:15
-
-
Save mizanRahman/5452035 to your computer and use it in GitHub Desktop.
working with sql server 2008 using ruby
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 'tiny_tds' | |
client = TinyTds::Client.new(:username => 'sa', :password => 'secret', :host => 'localhost') | |
client.execute("use testdb").do | |
result = client.execute("select * from person") | |
result.each do |row| | |
p row | |
end | |
client.close |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment