Guest User

Untitled

a guest
Apr 10th, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.34 KB | None | 0 0
  1. irb(main):048:0> DB3 = Sequel.odbc('IT-TEST-DB/SQL2K', :user => 'PavingSchedule', :password => 'Password', :db_type => 'mssql')
  2. => #<Sequel::ODBC::Database: "odbc:PavingSchedule:Password@/IT-TEST-DB/SQL2K">
  3. irb(main):049:0> dataset = DB3[:ps_calendars]
  4. => #<Sequel::ODBC::Dataset: "SELECT * FROM \"PS_CALENDARS\"">
  5. irb(main):050:0> dataset.print
  6. ODBC::Error: IM002 (0) [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
  7. from c:/ruby/lib/ruby/gems/1.8/gems/sequel-2.5.0/lib/sequel_core/adapters/odbc.rb:34:in 'initialize'
  8. from c:/ruby/lib/ruby/gems/1.8/gems/sequel-2.5.0/lib/sequel_core/adapters/odbc.rb:34:in 'connect'
  9. from c:/ruby/lib/ruby/gems/1.8/gems/sequel-2.5.0/lib/sequel_core/adapters/odbc.rb:34:in 'connect'
  10. from c:/ruby/lib/ruby/gems/1.8/gems/sequel-2.5.0/lib/sequel_core/database.rb:60:in 'initialize'
  11. from c:/ruby/lib/ruby/gems/1.8/gems/sequel-2.5.0/lib/sequel_core/connection_pool.rb:158:in 'call'
  12. from c:/ruby/lib/ruby/gems/1.8/gems/sequel-2.5.0/lib/sequel_core/connection_pool.rb:158:in 'make_new'
  13. from c:/ruby/lib/ruby/gems/1.8/gems/sequel-2.5.0/lib/sequel_core/connection_pool.rb:150:in 'available'
  14. from c:/ruby/lib/ruby/gems/1.8/gems/sequel-2.5.0/lib/sequel_core/connection_pool.rb:141:in 'acquire'
  15. from c:/ruby/lib/ruby/gems/1.8/gems/sequel-2.5.0/lib/sequel_core/connection_pool.rb:140:in 'synchronize'
  16. from c:/ruby/lib/ruby/gems/1.8/gems/sequel-2.5.0/lib/sequel_core/connection_pool.rb:140:in 'acquire'
  17. from c:/ruby/lib/ruby/gems/1.8/gems/sequel-2.5.0/lib/sequel_core/connection_pool.rb:100:in 'hold'
  18. from c:/ruby/lib/ruby/gems/1.8/gems/sequel-2.5.0/lib/sequel_core/database.rb:335:in 'synchronize'
  19. from c:/ruby/lib/ruby/gems/1.8/gems/sequel-2.5.0/lib/sequel_core/adapters/odbc.rb:54:in 'execute'
  20. from c:/ruby/lib/ruby/gems/1.8/gems/sequel-2.5.0/lib/sequel_core/dataset.rb:437:in 'execute'
  21. from c:/ruby/lib/ruby/gems/1.8/gems/sequel-2.5.0/lib/sequel_core/adapters/odbc.rb:97:in 'fetch_rows'
  22. from c:/ruby/lib/ruby/gems/1.8/gems/sequel-2.5.0/lib/sequel_core/dataset.rb:200:in 'each'
  23. from c:/ruby/lib/ruby/gems/1.8/gems/sequel-2.5.0/lib/sequel_core/dataset.rb:143:in 'all'
  24. 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