# Jruby 1.3.0 + ARJdbc 0.9.1 + jtds 1.2.2 + MSSql 2005 - database.yml format?

**URL:** <https://www.ruby-forum.com/t/jruby-1-3-0-arjdbc-0-9-1-jtds-1-2-2-mssql-2005-database-yml-format/171310>\
**Category:** JRuby\
**Created:** [June 30, 2009, 2:28pm UTC](https://www.ruby-forum.com/t/jruby-1-3-0-arjdbc-0-9-1-jtds-1-2-2-mssql-2005-database-yml-format/171310 "2009-06-30T14:28:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![churp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f14d63/32.png) [@churp](https://www.ruby-forum.com/u/churp)\
**Post date:** [June 30, 2009, 2:28pm UTC](https://www.ruby-forum.com/t/jruby-1-3-0-arjdbc-0-9-1-jtds-1-2-2-mssql-2005-database-yml-format/171310/1 "2009-06-30T14:28:17Z")

</div>

Hello All,  
I have a standalone ruby script that  
demonstrates correct connection to my sqlserver database (jdbc.rb in  
pastie[http://pastie.org/529254](http://pastie.org/529254))  
that succeeds.

I have a Rails 2.3.2 app with this database.yml in  
pastie[http://pastie.org/529254](http://pastie.org/529254)  
.  
tds-1.2.2.jar is located in $RUBY\_HOME/lib/ruby/1.8/java. I have also  
tried  
unpacking the jar to the same location.  
That location is included in $: for both irb and script/console and  
script/runner  
This errors with (extended out in pastie [http://pastie.org/529254](http://pastie.org/529254))

The driver encountered an error: cannot load Java class  
net.sourceforge.jtds.jdbc.Driver

Any advice or hints on what I could be missing would be greatly greatly  
appreciated.

Peter F.  
(847) 687-7646  
Email: removed\_email\_address@domain.invalid  
IM GTalk: peter.fitzgibbons  
IM Yahoo: pjfitzgibbons  
IM MSN: removed\_email\_address@domain.invalid  
IM AOL: removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![churp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f14d63/32.png) [@churp](https://www.ruby-forum.com/u/churp)\
**Post date:** [September 29, 2009, 8:52am UTC](https://www.ruby-forum.com/t/jruby-1-3-0-arjdbc-0-9-1-jtds-1-2-2-mssql-2005-database-yml-format/171310/2 "2009-09-29T08:52:15Z")

</div>

Did you ever manage to resolve this issue - I wish to do something  
similar with a Sybase DB

Thanks  
S
