Hello, everyone.
I'm implementing one servlet that connect to MS SQL server7.0 with your weblogic db
driver.
Here is my part of codes:
try
{
trace("Trying the JDBC driver.");
Class.forName(szDriver);
String szURL = "jdbc:" + szDriverType + ":" + szDatabase;
trace("Getting a database connection.");
Connection dbConnect = DriverManager.getConnection(
szURL, szUserName, szPassword);
checkForWarning(dbConnect.getWarnings()); //<--The error(warning) occurs
here!!!
trace("Connected to database.");
return dbConnect;
}
catch(SQLException eSQLException)
{
trace("An SQL Exception was thrown:\n" + eSQLException);
}
catch (Exception eException)
{
// some other kind of exception occurred so dump the call stack
eException.printStackTrace();
}
While I'm connecting to DB with that code, I keep getting the error(warning) below.
==================================
SQL State : null
Message : Could not determine default character set because weblogic.b.j:Database meta
data query failed.
Vendor : 0
==================================
Please help, it's urgent.
Thanks.
Joe Oh
Ignition State
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html