Guest User

Untitled

a guest
Jul 27th, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. TinyTDS connection issues and return from SQL server 2008
  2. development:
  3. adapter: sqlserver
  4. host: localhost
  5. database: database_name
  6. username: username
  7. password: password
  8. timeout: 5000
  9.  
  10. client = TinyTds::Client.new(use the above settings)
  11. puts client.active?
  12. result = client.execute("select * from tablename")
  13. puts "#{result}"
  14.  
  15. true
  16. -1
Add Comment
Please, Sign In to add comment