| Author |
Error getConnection() Sybase IQ
|
|
| carlosgyn 2005-12-15, 7:24 am |
| I am trying to make a connection with syabase IQ using SUN
ONE 7.
When I execute getConnection() I have the following error:
Error loading protocol
com.sybase.jdbc2.10.192.230.9.10.192.230.9.
I am using jconn3.jar.
I can decide this problem?
| |
| Tina Capadouca 2006-01-06, 9:25 am |
| carlosgyn wrote:
> I am trying to make a connection with syabase IQ using SUN
> ONE 7.
> When I execute getConnection() I have the following error:
> Error loading protocol
> com.sybase.jdbc2.10.192.230.9.10.192.230.9.
>
> I am using jconn3.jar.
> I can decide this problem?
What version of IQ are you trying to connect to? I don't think that
JConnect6.x is supported (jconn3.jar). Try using JConnect 5.x (jconn2.jar).
To register the driver:
Class.forName("com.sybase.jdbc2.jdbc.SybDriver").newInstance();
Regards,
Tina
| |
| Jeff Tallman 2006-01-06, 11:24 am |
| Problem is the driver the program is calling is jdbc2.....if you can
access the java code, look for a line similar to:
SybDriver sybDriver = (SybDriver)
Class.forName("com.sybase.jdbc2.jdbc.SybDriver").newInstance();
for jconn3.jar, you need:
SybDriver sybDriver = (SybDriver)
Class.forName("com.sybase.jdbc3.jdbc.SybDriver").newInstance();
....and it would work with IQ as well (no restriction there).
Tina Capadouca wrote:
> carlosgyn wrote:
>
>
>
> What version of IQ are you trying to connect to? I don't think that
> JConnect6.x is supported (jconn3.jar). Try using JConnect 5.x
> (jconn2.jar).
>
> To register the driver:
> Class.forName("com.sybase.jdbc2.jdbc.SybDriver").newInstance();
>
> Regards,
> Tina
|
|
|
|