Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- irb(main):048:0> DB3 = Sequel.odbc('IT-TEST-DB/SQL2K', :user => 'PavingSchedule', :password => 'Password', :db_type => 'mssql')
- => #<Sequel::ODBC::Database: "odbc:PavingSchedule:Password@/IT-TEST-DB/SQL2K">
- irb(main):049:0> dataset = DB3[:ps_calendars]
- => #<Sequel::ODBC::Dataset: "SELECT * FROM \"PS_CALENDARS\"">
- irb(main):050:0> dataset.print
- ODBC::Error: IM002 (0) [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
- from c:/ruby/lib/ruby/gems/1.8/gems/sequel-2.5.0/lib/sequel_core/adapters/odbc.rb:34:in 'initialize'
- from c:/ruby/lib/ruby/gems/1.8/gems/sequel-2.5.0/lib/sequel_core/adapters/odbc.rb:34:in 'connect'
- from c:/ruby/lib/ruby/gems/1.8/gems/sequel-2.5.0/lib/sequel_core/adapters/odbc.rb:34:in 'connect'
- from c:/ruby/lib/ruby/gems/1.8/gems/sequel-2.5.0/lib/sequel_core/database.rb:60:in 'initialize'
- from c:/ruby/lib/ruby/gems/1.8/gems/sequel-2.5.0/lib/sequel_core/connection_pool.rb:158:in 'call'
- from c:/ruby/lib/ruby/gems/1.8/gems/sequel-2.5.0/lib/sequel_core/connection_pool.rb:158:in 'make_new'
- from c:/ruby/lib/ruby/gems/1.8/gems/sequel-2.5.0/lib/sequel_core/connection_pool.rb:150:in 'available'
- from c:/ruby/lib/ruby/gems/1.8/gems/sequel-2.5.0/lib/sequel_core/connection_pool.rb:141:in 'acquire'
- from c:/ruby/lib/ruby/gems/1.8/gems/sequel-2.5.0/lib/sequel_core/connection_pool.rb:140:in 'synchronize'
- from c:/ruby/lib/ruby/gems/1.8/gems/sequel-2.5.0/lib/sequel_core/connection_pool.rb:140:in 'acquire'
- from c:/ruby/lib/ruby/gems/1.8/gems/sequel-2.5.0/lib/sequel_core/connection_pool.rb:100:in 'hold'
- from c:/ruby/lib/ruby/gems/1.8/gems/sequel-2.5.0/lib/sequel_core/database.rb:335:in 'synchronize'
- from c:/ruby/lib/ruby/gems/1.8/gems/sequel-2.5.0/lib/sequel_core/adapters/odbc.rb:54:in 'execute'
- from c:/ruby/lib/ruby/gems/1.8/gems/sequel-2.5.0/lib/sequel_core/dataset.rb:437:in 'execute'
- from c:/ruby/lib/ruby/gems/1.8/gems/sequel-2.5.0/lib/sequel_core/adapters/odbc.rb:97:in 'fetch_rows'
- from c:/ruby/lib/ruby/gems/1.8/gems/sequel-2.5.0/lib/sequel_core/dataset.rb:200:in 'each'
- from c:/ruby/lib/ruby/gems/1.8/gems/sequel-2.5.0/lib/sequel_core/dataset.rb:143:in 'all'
- from c:/ruby/lib/ruby/gems/1.8/gems/sequel-2.5.0/lib/sequel_core/dataset/convenience.rb:167:in 'print'
Add Comment
Please, Sign In to add comment