Skip to Content.
Sympa Menu

freetds - RE: Using freetds in a applet

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: bernhard.trummer AT divis.at
  • To: freetds AT franklin.oit.unc.edu
  • Subject: RE: Using freetds in a applet
  • Date: Mon, 3 Sep 2001 06:17:19 -0400


I made the connection with the code below:
--------------------------------
//static String db_url_= "jdbc:AvenirDriver://ip:1433/DBName";
static String db_url_="jdbc:twtds:sqlserver://ip:1433/DBName";

//static String drivername_ = "net.avenir.jdbcdriver7.Driver";
static String drivername_ = "com.thinweb.tds.Driver";

public static void open() throws Exception
{
Class.forName(drivername_);
connection_ = DriverManager.getConnection(db_url_,username_,password_);
statement_ = connection_.createStatement();
}
--------------------------------

(I only replaced drivername_ and db_url_ (the rest of the applet and the
envirenment was the same))

With the AvenirDriver (or with JTurbo) it worked within the appletviewer AND
within the HTML page; with twtds it only worked within the appletviewer ;-(

ciao
Bernhard





Archive powered by MHonArc 2.6.24.

Top of Page