Tengo:
SO : wxp
Ruby 1.86
Rails 2.3.2.
Y me ocurre lo siguiente:
Desde Ruby que es correcto pues es una coneccion fixticia:
DBI.connect(“dbi:ODBC:Isoserver”,“CC”,“xxx”)
DBI::DatabaseError: 08001 (17) [Microsoft][ODBC SQL Server
Driver][DBNETLIB]No existe el servidor SQL Server o se ha denegado el
acceso al mismo.
from C:/ruby/lib/ruby/site_ruby/1.8/DBD/ODBC/ODBC.rb:95:in connect' from C:/ruby/lib/ruby/site_ruby/1.8/DBI.rb:424:in
connect’
from C:/ruby/lib/ruby/site_ruby/1.8/DBI.rb:215:in `connect’
from (irb):3
Desde la cosola de Rails de mi aplicacion:
C:\ruby\bin\ruby.exe -e
STDOUT.sync=true;STDERR.sync=true;load($0=ARGV.shift)
D:/pegas_2009/ORSAN/Tesoreria/fempac/script/console
–irb=C:/ruby/bin/irb.bat
Loading development environment (Rails 2.3.2)
require “DBI”
=> []
C:/ruby/lib/ruby/gems/1.8/gems/dbi-0.4.1/lib/DBI.rb:93: warning:
already initialized constant VERSION
C:/ruby/lib/ruby/gems/1.8/gems/dbi-0.4.1/lib/DBI.rb:96: warning:
already initialized constant API_VERSION
C:/ruby/lib/ruby/gems/1.8/gems/dbi-0.4.1/lib/DBI.rb:100: warning:
already initialized constant DEFAULT_TRACE_MODE
C:/ruby/lib/ruby/gems/1.8/gems/dbi-0.4.1/lib/DBI.rb:101: warning:
already initialized constant DEFAULT_TRACE_OUTPUT
x = DBI.connect(“dbi:ODBC:Isoserver”,“CC”,“xxx”)
DBI::InterfaceError: Unable to load driver ‘ODBC’ (underlying error:
uninitialized constant DBI::DBD::ODBC)
from C:/ruby/lib/ruby/gems/1.8/gems/dbi-0.4.1/lib/DBI.rb:294:in
load_driver' from C:/ruby/lib/ruby/1.8/monitor.rb:242:in
synchronize’
from C:/ruby/lib/ruby/gems/1.8/gems/dbi-0.4.1/lib/DBI.rb:236:in
load_driver' from C:/ruby/lib/ruby/gems/1.8/gems/dbi-0.4.1/lib/DBI.rb:154:in
_get_full_driver’
from C:/ruby/lib/ruby/gems/1.8/gems/dbi-0.4.1/lib/DBI.rb:139:in
`connect’
from (irb):2
Alguien tiene idea de que hice mal?
Gracias.
Angel Mauricio Pino G
[email protected]
Movil: 08-577.92.72