Quantcast
Channel: Active questions tagged ruby - Stack Overflow
Viewing all articles
Browse latest Browse all 4609

using sequel jdbc in ruby to connect to microsoft sql server 2012 - running into error com.microsoft.sqlserver.jdbc.SQLServerDriver not loaded

$
0
0

I am trying to connect to Microsoft sQL Server 2012 database in ruby using the sequel gem.

This is what I have

require "sequel:require "activerecord-jdbcmssql-adapter"@db = Sequel.connect("jdbc:sqlserver://<host>;database=<dbname>;user='<userid>';password='pwd'")

When I run this I get the error:

com.microsoft.sqlserver.jdbc.SQLServerDriver not loaded.

How do I load the driver?

Thanks!


Viewing all articles
Browse latest Browse all 4609

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>