<br><b>Code</b>: rsb:print<br><b>Error</b>: Formatter [ rootadoname ] failed in the evaluation of <p> [company_name] ODBC Driver for [service] ????????Ruby ???????????????[service] ??????·??????? T???????[service]] ???????????????Ruby ????????????????????????????????? </p> <h2>[service] ????ODBC ?????</h2> <p>???CData ODBC Driver ?????????ODBC DSN ??????????????????????????? ??ODBC DSN ???????????Microsoft ODBC ????????????????ODBC DSN ?????????????????? </p> [extraconnectionnotesodbc|def('[extraconnectionnotes|def("")]')] <h2>Ruby ??????Gem ???????</h2> <p>If you do not have Ruby installed, refer to the <a href="https://www.ruby-lang.org/ja/documentation/installation/">Ruby ?????????</a>. Ruby ?????????????ruby-dbi?dbd-odbc?ruby-odbc gems ??????????: </p> <code lang=powershell> gem install dbi gem install dbd-odbc gem install ruby-odbc </code> <h2>[service] ????????Ruby ???????????</h2> <p> Ruby ???? (?: [rootadoname]Select.rb) ????????????????????????????????????: </p> <code lang=powershell> #connect to the DSN require 'DBI' cnxn = DBI.connect('DBI:ODBC:[company_name] [rootadoname] Source','','') #execute a SELECT query and store the result set resultSet = cnxn.execute("[query]") #display the names of the columns resultSet.column_names.each do |name| print name, "\\t" end puts #display the results while row = resultSet.fetch do (0..resultSet.column_names.size - 1).each do |n| print row\[n], "\\t" end puts end resultSet.finish #close the connection cnxn.disconnect if cnxn </code> <p>????Ruby ? [service] ??????????????????????????????????????????????????: </p> <code lang=powershell> ruby [rootadoname]Select.rb </code> [service] ??SQL-92 ???SQL ?????Ruby ????[service] ??????????????????????????? <p>. The error was: The value of the attribute could not be accessed: The attribute does not exist.<br><b>URL</b>: /jp/kb/tech/sqlite-odbc-ruby.rst