Skip to Content.
Sympa Menu

freetds - Re: Free tds jdbc driver with Sybase ASA 6

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Craig Spannring <Craig.Spannring AT aedinc.net>
  • To: "TDS Development Group" <freetds AT franklin.oit.unc.edu>
  • Subject: Re: Free tds jdbc driver with Sybase ASA 6
  • Date: Fri, 11 Aug 2000 11:12:30 -0600 (MDT)


Helen Dale writes:
> I have been trying to connect to my ASA from a Java appli but get an SQL
> Exception. What am I doing wrong? Can any one help me please?
>
> This is what comes out
>
> DriverManager.getConnection("jdbc:freetds:sybase://orion/infodata")


Since Sybase doesn't really have a strongly suggested port like
SQLServer does, you almost always need to specify the port number in
the connection string for Sybase. For instance-

DriverManager.getConnection(jdbc:freetds:sybase://orion:1500/infodata");



--
=======================================================================
Life is short. | Craig Spannring
Bike hard, ski fast. | cts AT internetcds.com
--------------------------------+------------------------------------
When all you've got is Perl, everything feels like a smashed thumb
=======================================================================




Archive powered by MHonArc 2.6.24.

Top of Page