Replica Breguet Marine Collection - Simple 5817ST/Y2/5V8 watch [5817ST/Y2/5V8] - $202.99 : TITLE, SI
Replica Breguet Marine Collection - Simple 5817ST/Y2/5V8 watch [5817ST/Y2/5V8] - $202.99 : TITLE, SITE_TAGLINE
Ruby scripts example about how to read table data and convert it into CSV
require 'odbc'
require 'dbi'
filename = "./file.csv"
writeFile = File.open(filename,"w")
dbh = DBI.connect('DBI:ODBC:data_source_name', 'username', 'password')
sth = dbh.prepare("SELECT * FROM table WITH UR")
sth.execute
writeFile.puts sth.column_names.join(" ; ") #puts names on the top of each row
while row=sth.fetch do
writeFile.puts row.join(" ; ") #puts lines from table
end
sth.finish
dbh.disconnect
writeFile.close
Web Developer, Web Programmer, Python Junky
Replica Breguet Marine Collection - Simple 5817ST/Y2/5V8 watch [5817ST/Y2/5V8] - $202.99 : TITLE, SITE_TAGLINE
Joined Today, 02:55
Joined Today, 02:25
Joined Today, 02:03
Joined Yesterday, 19:23
Joined Yesterday, 02:44
Joined May 18th, 16:00