Skip to Content.
Sympa Menu

freetds - Re: problem freetds, HELP ME !!!

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Pier Paolo Bortone" <pierpaolo.bortone AT netengineering.it>
  • To: "TDS Development Group" <freetds AT franklin.oit.unc.edu>
  • Subject: Re: problem freetds, HELP ME !!!
  • Date: Fri, 5 Jan 2001 11:33:54 +0100

Hi,
 
try this code.
 
Pier Paolo
 
----- Original Message -----
From: GETTE
Sent: Friday, January 05, 2001 10:44 AM
Subject: [freetds] problem freetds, HELP ME !!!

Hello

(I don't speak english well!!!)
 
I use freetds as this :
 
try
{
   Class.forName("com.internetcds.jdbc.tds.Driver");
   System.out.println("forName ok");
   connexionBDD =
DriverManager.getConnection("jdbc:freetds:sqlserver://P266:1433/ISPID_TEST","sa","");

   System.out.println("Driver manager ok");
   statement = connexionBDD.createStatement();
  
}
catch (ClassNotFoundException e)
{
   System.out.println("Erreur: "+e.toString());
}
 
 
When I execute this with Visual J++, it's all right.
But when I execute with JDK 1.3, the result is :
        forName ok
        Exception -java.lang.NullPointerException
        Erreur : java.sql.SQLException
 
WHY ?
 
Thank you to help me
 
Coralie

---
You are currently subscribed to freetds as: [pierpaolo.bortone AT netengineering.it]
To unsubscribe, forward this message to leave-freetds-121965M AT franklin.oit.unc.edu

Attachment: TestConnection.java
Description: Binary data




Archive powered by MHonArc 2.6.24.

Top of Page