Driver loads in Netscape but not IE
ÀÌÁ¾¿µ
zazz at myjaya.com
Sun Mar 11 00:10:16 EST 2001
You would make connection with 'newInstance()' method.
...
Class.forName("com.internetcds.jdbc.tds.Driver").newInstance();
-----Original Message-----
From: bounce-freetds-121650 at franklin.oit.unc.edu [mailto:bounce-freetds-
121650 at franklin.oit.unc.edu]On Behalf Of Daniel J. Helm
Sent: Friday, March 09, 2001 1:15 PM
To: TDS Development Group
Subject: [freetds] Driver loads in Netscape but not IE
I developed an applet the uses the freetds driver, but for some reason, it
is only
loads and works in Netscape. I use the following statements in my applet
code:
Class.forName("com.internetcds.jdbc.tds.Driver");
Connection
connection=DriverManager.getConnection("jdbc:freetds:sqlserver://166.37.179.
223:1433/pubs",
"myuserid", "mypassword");
I get back "java.sql.SQLException: No suitable driver"
Detailed log output follows:
*****
about to forName.
DriverManager.initialize: jdbc.drivers = null
JDBC DriverManager initialized
about to getConnection.
DriverManager.getConnection("jdbc:freetds:sqlserver://166.36.179.223:1433/pu
bs")
getConnection: no suitable driver
java.sql.SQLException: No suitable driver
at java/sql/DriverManager.getConnection (DriverManager.java)
at getaccount2.action (getaccount2.java:310)
at java/awt/Component.handleEvent (Component.java)
at java/awt/Component.postEvent (Component.java)
at java/awt/Component.postEvent (Component.java)
at java/awt/Component.dispatchEventImpl (Component.java)
at java/awt/Component.dispatchEvent (Component.java)
at java/awt/EventDispatchThread.run (EventDispatchThread.java)
SQLException: SQLState(08001)
*****
-- and my HTML page is:
*****
<HTML>
<HEAD>
<TITLE>Registry GET-ACCOUNT Demo</TITLE>
</HEAD>
<BODY LINK="#0000ff" VLINK="#800080">
<P ALIGN="CENTER"><B><FONT SIZE=5>Registry GET-ACCOUNT Demo</B></FONT>
<BR>
<applet
name="Registry GET-ACCOUNT Demo"
archive="freetds_jdbc.jar"
code="getaccount2.class"
codebase="."
width="500"
height="500"
align="top"
alt="You do not have a java enabled browser"
>
</applet>
---<BR>
You are currently subscribed to freetds as: [zazz at myjaya.com]<BR>
To unsubscribe, forward this message to
$subst('Email.Unsub')
</BODY>
</HTML>
*****
Is there anything special that needs to be done for IE? I am using SQL
Server 7.0 on NT 4.0. Netscape 4.51 browser works but IE 5 does not.
Thanks, Dan
More information about the FreeTDS
mailing list