require 'odbc'
c = ODBC::connect('odbc database name, 'user', 'password')
data = c.run("SELECT * FROM FOO")
data.each do |record|
puts record
end
c.disconnectPost the code you tried with, please. -Chris On 6/19/06, jet ibaÿfffff1ez <[EMAIL PROTECTED]> wrote: > > I'm having a problem with one of the projects i'm handling right now. I was > asked to create automation scripts using watir that could also access SQL > Server 2000. > Can anybody help me out with this??? > I've read some of the posts here regarding database connectivity but it > doesn't seem to work and I can't figure out how I can make them to work. > Please help me out guys. Thanks in advance... > > Send instant messages to your online friends http://uk.messenger.yahoo.com > _______________________________________________ > Wtr-general mailing list > [email protected] > http://rubyforge.org/mailman/listinfo/wtr-general > > _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
