Problems upgrading to JDBC 5.1 driver for MS SQL Server

Hi,
I recently upgraded to the Weblogic JDBC 5.1 driver for MS SQL Server and I am
now receiving exceptions in my application when attempting to execute a prepared
statement. I was previously using the Weblogic JDBC 4.x driver for MS SQL Server
and everything was working fine without any problems. For some reason I am receiving
a java.lang.CloneNotSupportedException using the new driver. I am using the setLong(),
setString(), and setObject() methods of the PreparedStatement and then attempting
to execute. The application code has not changed, so it seems that something
has changed in the new driver implementation. Has anyone else had this problem
or know a work around? Here is a snippet of the actual exception:
S2 [09/30/02 10:46]: java.sql.SQLException: java.lang.CloneNotSupportedException
: Error in TdsParameter clone: cannot make duplicate of Stream object
S2 [09/30/02 10:46]: at weblogic.jdbcbase.mssqlserver4.TdsPreparedInputStream
.<init>(TdsPreparedInputStream.java:99)
S2 [09/30/02 10:46]: at weblogic.jdbcbase.mssqlserver4.TdsStatement.doEscapeP
rocessing(TdsStatement.java:1317)
S2 [09/30/02 10:46]: at weblogic.jdbcbase.mssqlserver4.TdsStatement.execute(T
dsStatement.java:173)
S2 [09/30/02 10:46]: at weblogic.jdbcbase.mssqlserver4.TdsStatement.executeUp
date(TdsStatement.java:94)
S2 [09/30/02 10:46]: at weblogic.jdbcbase.mssqlserver4.TdsStatement.executeUp
date(TdsStatement.java:1438)
Thanks, Nadeem.

Nadeem Khokhar wrote:
Is it true that the Weblogic jDriver for MS SQL Server is deprecated? That's the
message that I got from BEA Support and here is the link they sent:
http://edocs.bea.com/wls/docs70/mssqlserver4/install_jmsq4.html#415356
It recommends using Microsoft's JDBC driver instead. Any thoughts on this? From
what I understand and what I have read on the newsgroups, the Microsoft JDBC driver
is still quite buggy and has numerous problems.
Thanks, Nadeem.It is deprecated, but still supported, and is more recent in the download than the one in
the 5.1 server. We do recommend MS's driver, or that of www.inetsoftware.de. The
MS driver is fairly stable now, and may certainly have bugs, as does our driver. The MS
driver is good because it is not deprecated, and supports JDBC 2.0 etc.
Joe
>
>
Joseph Weinstein <[email protected]> wrote:
What version of 5.1? You should be running with the latest service pack.
If that doesn't help, please download the latest 5.1 driver from our
site, and
make sure it's in the weblogic.classpath ahead of all other stuff, by
editting the
startWeblogic script.
Joe
Nadeem Khokhar wrote:
Hi,
I recently upgraded to the Weblogic JDBC 5.1 driver for MS SQL Serverand I am
now receiving exceptions in my application when attempting to executea prepared
statement. I was previously using the Weblogic JDBC 4.x driver forMS SQL Server
and everything was working fine without any problems. For some reasonI am receiving
a java.lang.CloneNotSupportedException using the new driver. I amusing the setLong(),
setString(), and setObject() methods of the PreparedStatement and thenattempting
to execute. The application code has not changed, so it seems thatsomething
has changed in the new driver implementation. Has anyone else hadthis problem
or know a work around? Here is a snippet of the actual exception:
S2 [09/30/02 10:46]: java.sql.SQLException: java.lang.CloneNotSupportedException
: Error in TdsParameter clone: cannot make duplicate of Stream object
S2 [09/30/02 10:46]: at weblogic.jdbcbase.mssqlserver4.TdsPreparedInputStream
<init>(TdsPreparedInputStream.java:99)
S2 [09/30/02 10:46]: at weblogic.jdbcbase.mssqlserver4.TdsStatement.doEscapeP
rocessing(TdsStatement.java:1317)
S2 [09/30/02 10:46]: at weblogic.jdbcbase.mssqlserver4.TdsStatement.execute(T
dsStatement.java:173)
S2 [09/30/02 10:46]: at weblogic.jdbcbase.mssqlserver4.TdsStatement.executeUp
date(TdsStatement.java:94)
S2 [09/30/02 10:46]: at weblogic.jdbcbase.mssqlserver4.TdsStatement.executeUp
date(TdsStatement.java:1438)
Thanks, Nadeem.

Similar Messages

  • Free JDBC 4.0 driver for Microsoft Sql Server database

    Is there any free JDBC 4.0 driver for Microsoft Sql Server database? The jTDS driver is JDBC 3.0 driver. http://jtds.sourceforge.net/

    Sooooooo...
    what's wrong with the driver provided by Microsoft themselves? Which is JDBC 4. And free.

  • Cannot establish connection - JDBC driver for MS SQL server 2000

    Hi,
    We are facing problems in connecting to SQL server 2000.
    We have installed the latest version of the driver from followin link and following
    https://websmp108.sap-ag.de/msplatforms    > SQL Server > JDBC Driver for MS SQL Server (Version 3.70.10)
    We have given the following entries in our communication channel:
    JDBC Driver : com.microsoft.sqlserver.jdbc.SQLServerDriver
    Connection:  jdbc:sqlserver://<SQLserver IP>:1433;databaseName=production_info
    Please let us know the procedure to find if the JDBC driver for SQL 2000 is installed from our SAP XI.
    ERROR DETAILS:
    Error during database connection to the database URL 'jdbc:sqlserver://<SQLserverIP>:1433;databaseName=production_info' using the JDBC driver 'com.microsoft.sqlserver.jdbc.SQLServerDriver': 'com.sap.aii.adapter.jdbc.sql.DriverManagerException: Cannot establish connection to URL 'jdbc:sqlserver://<SQLserverIP>:1433;databaseName=production_info': SAPClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver'
    Please help.
    Regards,
    Rehan

    Hi Chris,
    We have used the same because we have downloaded the driver from following location
    https://websmp108.sap-ag.de/msplatforms ;   > SQL Server > JDBC Driver for MS SQL Server (Version 3.70.10)
    I have tried with both "com.microsoft.jdbc.sqlserver.SQLServerDriver"; and "com.microsoft.sqlserver.jdbc.SQLServerDriver";, but still I am facing the same error.
    Service market place has given the driver as "JDBC Driver for MS SQL Server (Version 3.70.10)", is there a way to find out if it is for 2000 or 2005?
    Thanks for your reply.
    Regards,
    Rehan

  • Jdbc Driver for MS SQL Server

    i want the JDBC Driver for MS SQL Server.
    is it available free?
    thanks in advance

    Install the SQL Server 2000 Driver for JDBC Service Pack 3.
    http://www.microsoft.com/downloads/details.aspx?FamilyID=07287b11-0502-461a-b138-2aa54bfdc03a&displaylang=en
    The SQL Server JDBC driver JAR files msbase.jar, mssqlserver.jar and msutil.jar get installed in the C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib directory.

  • Purchase or not ODBC Driver for MS SQL Server 2005

    Hi experts,
    We have Windows Server 2003 R2 Standard with MS SQL SERVER 2005 and our other branch want to access this system's Database at their end.
    other branch is planning to integrate database record to ERP
    Can u confirm whether they have to purchase ODBC driver or not.
    from where i can purchase ODBC driver online.
    Best Regards,
    Pardeep

    Hello,
    The data provider like ODBC and SQL Server Native Client are already integrated in all common MS Windows OS, so in common you don't need to install additional provider.
    But if you want to install and newer version, then you can get it for free from
    Feature Pack for Microsoft SQL Server 2005 SP4 => sqlncli.msi ( = SQL Native Client, which includes ODBC)
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • JDBC driver for MS SQL Server 2000??

    I'm moving to weblogic 8.1 (from 7.0), and am facing a series of problems.
    This one is related to JDBC driver. The driver(from Microsoft) I used with weblogic
    7.0 doesn't work with 8.1. The exception I get when I try to execute a statement
    is:
    [ java.sql.SQLException: This JDBC 2.0 method is not implemented ]
    I figured that the driver doesn't support JDK 1.4. So, I tried using BEA driver
    that come with 8.1, but it fails while executing a prepared statement.
    Here's the stack trace:
    java.sql.SQLException: [BEA][SQLServer JDBC Driver]Invalid parameter binding(s).
         at weblogic.jdbc.base.BaseExceptions.createException(Unknown Source)
         at weblogic.jdbc.base.BaseExceptions.getException(Unknown Source)
         at weblogic.jdbc.base.BasePreparedStatement.validateParameters(Unknown Source)
         at weblogic.jdbc.base.BasePreparedStatement.validateParameters(Unknown Source)
         at weblogic.jdbc.base.BasePreparedStatement.preImplExecute(Unknown Source)
         at weblogic.jdbc.base.BaseStatement.commonExecute(Unknown Source)
         at weblogic.jdbc.base.BaseStatement.executeQueryInternal(Unknown Source)
         at weblogic.jdbc.base.BaseStatement.downgradeAndRetryExecute(Unknown Source)
         at weblogic.jdbc.base.BaseStatement.executeQueryInternal(Unknown Source)
         at weblogic.jdbc.base.BasePreparedStatement.executeQuery(Unknown Source)
         at weblogic.jdbc.wrapper.PreparedStatement.executeQuery(PreparedStatement.java:80)
         at com.actiontech.jmetro.util.sql.DBSession.executePreparedQuery(DBSession.java:167)
    Does anyone know what the problem is? Everything worked fine on 7.0. Or can anyone
    suggest a good driver for SQL server 2000 that works with weblogic 8.1/jdk 1.4?
    TIA
    Vas

    Today everything seems to be working fine!
    All I did was clean up weblogic directories, restart the server, close & reopen
    my IDE and redeploy my application. The problem just disappeared. I couldn't believe
    it, so I kept hammering it (redeploying and running testcases) .. and after several
    cycles.. got the problem again. Did the cleanup again.. and things are ok. So,
    I guess nothing wrong with the JDBC drivers(although the one from Microsoft doesn't
    support JDK1.4 officially), and its the weblogic that needs some cleanup time
    to time. Don't know if this happens only in dev mode, but if it happens in production
    mode also, then its another serious problem.
    Thanks a lot guys.
    "vas pulipati" <[email protected]> wrote:
    >
    I'm moving to weblogic 8.1 (from 7.0), and am facing a series of problems.
    This one is related to JDBC driver. The driver(from Microsoft) I used
    with weblogic
    7.0 doesn't work with 8.1. The exception I get when I try to execute
    a statement
    is:
    [ java.sql.SQLException: This JDBC 2.0 method is not implemented ]
    I figured that the driver doesn't support JDK 1.4. So, I tried using
    BEA driver
    that come with 8.1, but it fails while executing a prepared statement.
    Here's the stack trace:
    java.sql.SQLException: [BEA][SQLServer JDBC Driver]Invalid parameter
    binding(s).
         at weblogic.jdbc.base.BaseExceptions.createException(Unknown Source)
         at weblogic.jdbc.base.BaseExceptions.getException(Unknown Source)
         at weblogic.jdbc.base.BasePreparedStatement.validateParameters(Unknown
    Source)
         at weblogic.jdbc.base.BasePreparedStatement.validateParameters(Unknown
    Source)
         at weblogic.jdbc.base.BasePreparedStatement.preImplExecute(Unknown Source)
         at weblogic.jdbc.base.BaseStatement.commonExecute(Unknown Source)
         at weblogic.jdbc.base.BaseStatement.executeQueryInternal(Unknown Source)
         at weblogic.jdbc.base.BaseStatement.downgradeAndRetryExecute(Unknown
    Source)
         at weblogic.jdbc.base.BaseStatement.executeQueryInternal(Unknown Source)
         at weblogic.jdbc.base.BasePreparedStatement.executeQuery(Unknown Source)
         at weblogic.jdbc.wrapper.PreparedStatement.executeQuery(PreparedStatement.java:80)
         at com.actiontech.jmetro.util.sql.DBSession.executePreparedQuery(DBSession.java:167)
    Does anyone know what the problem is? Everything worked fine on 7.0.
    Or can anyone
    suggest a good driver for SQL server 2000 that works with weblogic 8.1/jdk
    1.4?
    TIA
    Vas

  • Help me! can not using JDBC driver for MS SQL server

    I can test sucess in connection, but create EJB when have follow error.
    04/05/19 12:23:04 SQL error: No suitable driver
    04/05/19 12:23:10 Error creating table: No suitable driver
    500 Internal Server Error
    java.lang.NoClassDefFoundError: oracle/jbo/html/HtmlServices
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:182)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:600)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Thread.java:534)

    HI All,
    I am using JDBC driver to pull data from MS SQL Server
    2000 for my application Liaison Content Exchange, and
    which only accepts JDBC drivers to talk to databases.
    I dowloaded the driver from Microsoft website, and had
    a successful installation.What do you call "a successful installation"? Where was the JAR file places?
    But the application ask me for Driver Name, Class, URL, Time out and Data Source.What application do you mean? Liaison Content Exchange? I'm not familiar with that product.
    By default no driver is available in the drop down combo box. After using
    "com.microsoft.jdbcx.sqlserver.SQLServerDataSource" as
    class and
    jdbc:microsoft:sqlserver://192.168.17.2:1433; as url,
    the application throw me a error which states "Unable
    to instantiate an instance of the application driver"Sounds like it could be one of several things:
    (1) The JDBC JAR is not in the CLASSPATH where Liaison Content Exchange expects to find it.
    (2) You need to do something else to tell Liaison Content Exchange more information to define the data source.
    (3) The URL might be incorrect. Only you can know if the IP address of the host is correct. You don't supply a database name - perhaps you should. Are you sure that 1433 is the correct port number? I know that's true for SQL Server 7.0, but I remember that the default was changed to something else for SQL Server 2000. Ask your database admin what port this listener is assigned to for SQL Server 2000.
    (4) You might want to append ";selectmethod=cursor" to the end of your URL. (See the docs for this.)
    (5) Make sure you can connect to the database with something other than Java (e.g., the M$ SQL Server client).
    . I am not able to trouble shoot this problem, any one
    pls help me ASAP at [email protected]
    Thx.Bad idea to post an e-mail address. You're not supposed to communicate outside the forum. it's against the guidelines for using the forum.

  • Which Driver for MS SQL-Server 2000

    Hello,
    i need to access a MS SQL-Server 2000 and want to ask which driver you think is the best one for this problem.
    I am not a big fan of using beta-Software, and i do not need the newest state-of-the-art features. Right now i also do not need Connection-Pooling.
    Only a few SQL SELECT/UPDATE-Statements nothing more.
    But maybe in not far away future, Conn-Pooling and Procedure-Calls could be interesting. And i think Type 3 or 4 would be the best decision.
    The Software will run on NT, but i do not want to use the JDBC/ODBC-Bridge, because it is so unbelievable slow.
    I am interested in WHICH DRIVER you USE, AND especially which drivers you DO NOT USE ANYMORE, and why.
    It would be great, if anyone could help me, finding the best solution.
    P.S.: The price of the driver: It would be good, when it is for free. But if you know a good commercial driver i am also interested in.
    P.P.S: Yes, i have searched for drivers under http://servlet.java.sun.com/products/jdbc/drivers. But there are 37 different Type 3/4 drivers.

    You can try the jtds project .Search for it in www.sourceforge.net. It is derived from FreeTDS JDBC driver. Both of them are Type 4 JDBC drivers. So far I have tried both of them a few years ago. And jtds is more updated (during those time, not sure what the status is right now)
    Or, you can get Microsofts own JDBC driver

  • Driver for Microsoft SQL SERVER 2008 (MII 12.0.X)

    Hi,
    we have MII 12.0.11 and we need to access a database on Microsoft SQL Server 2008.
    I need a suggestion on the driver  choice...because the Microsoft JDBC  drivers for SQL Server 2008  on the following links officially need at least JDK 5...and for what I know our MII version is based on Netweaver 7.0 on Java 1.4.
    http://www.microsoft.com/downloads/en/details.aspx?FamilyID=99b21b65-e98f-4a61-b811-19912601fdc9&displaylang=en
    http://www.microsoft.com/downloads/en/details.aspx?FamilyID=%20a737000d-68d0-4531-b65d-da0f2a735707&displaylang=en
    We are currently using this driver (with database on Microsoft  SQL Server 2005)
    http://www.microsoft.com/downloads/en/details.aspx?FamilyID=c47053eb-3b64-4794-950d-81e1ec91c1ba
    which, on the contrary, doesn't support SQL Server 2008.
    I don't know how to proceed...
    Thanks in advance
    Mauro

    Try Microsoft SQL Server 2005 JDBC Driver 1.2
    [Connect MII 12.0 to SQL server 2008|Connect MII 12.0 to SQL server 2008]

  • Best Driver for MS SQL Server 2000

    What is the best JDBC driver for use with kodo and SQL Server 2000. The
    driver provided by Microsoft is terrible (no news there). I would
    appreciate either recomendations from SolarMetric, or from people who have
    had success with a SQL Server implementation.

    We've used Sprinta and Opta from i-net Software
    (http://www.inetsoftware.de/) and they're not bad.
    Jeff Sheldon wrote:
    What is the best JDBC driver for use with kodo and SQL Server 2000. The
    driver provided by Microsoft is terrible (no news there). I would
    appreciate either recomendations from SolarMetric, or from people who have
    had success with a SQL Server implementation.

  • SQLDeveloper 3.1 EA3 -- error installing JTDS JDBC Driver for Microsoft SQL

    After installing sqldeveloper64-3.1.06.82-no-jre.zip I get an error when trying to add the "JTDS JDBC Driver for Microsoft SQL Server" extension.
    The error returned is an invalid URL.
    The URL is http://download-llnw.oracle.com/otn-pub/sqldeveloper/oracle.sqldeveloper.thirdparty.drivers.sqlserver.58.17.zip

    Hi Chris,
    A bug was logged for this a few days ago:
    Bug 13547400 - CHECK UPDATES FAILS DUE TO SERVER RETURNED HTTP RESPONSE CODE: 400
    This is similar to another bug which has already been fixed (not a product bug, just a bad URL in an OTN web page):
    Bug 13530787 - 3.1 EA2: FORUM: CHECK FOR UPDATE HAS BAD URL FOR CVS
    3.1EA2 Sqldeveloper Updates Fail to install
    So I imagine yours will get fixed soon.
    Regards,
    Gary
    SQL Developer Team

  • JDBC for Microsoft SQL Server 2000

    Hello,
    I have installed Microsoft SQL Server 2000 to establish a connection with JDK 1.4.1 and run the following code:
    import java.sql.Connection.*;
    import java.sql.*;
    public class Connect
    private java.sql.Connection con = null;
    private final String url = "jdbc:microsoft:sqlserver://";
    private final String serverName= "localhost";
    private final String portNumber = "1433";
    private final String databaseName= "cbi";
    private final String userName = "sa";
    private final String password = "";
    // Informs the driver to use server a side-cursor,
    // which permits more than one active statement
    // on a connection.
    private final String selectMethod = "cursor";
    // Constructor
    public Connect(){}
    private String getConnectionUrl()
    return url+serverName+":"+portNumber+";databaseName="+databaseName+";selectMethod="+selectMethod+";";
    private java.sql.Connection getConnection()
    try
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
    con = java.sql.DriverManager.getConnection(getConnectionUrl(),userName,password);
    if(con!=null)
    System.out.println("Connection Successful!");
    catch(Exception e)
    e.printStackTrace();
    System.out.println("Error Trace in getConnection() : " + e.getMessage());
    return con;
    Display the driver properties, database details
    public void displayDbProperties()
    java.sql.DatabaseMetaData dm = null;
    java.sql.ResultSet rs = null;
    try
    con= this.getConnection();
    if(con!=null)
    dm = con.getMetaData();
    System.out.println("Driver Information");
    System.out.println("\tDriver Name: "+ dm.getDriverName());
    System.out.println("\tDriver Version: "+ dm.getDriverVersion ());
    System.out.println("\nDatabase Information ");
    System.out.println("\tDatabase Name: "+ dm.getDatabaseProductName());
    System.out.println("\tDatabase Version: "+ dm.getDatabaseProductVersion());
    System.out.println("Avalilable Catalogs ");
    rs = dm.getCatalogs();
    while(rs.next())
    System.out.println("\tcatalog: "+ rs.getString(1));
    rs.close();
    rs = null;
    closeConnection();
    else
    System.out.println("Error: No active Connection");
    catch(Exception e)
    e.printStackTrace();
    dm=null;
    private void closeConnection()
    try
    if(con!=null)
    con.close();
    con=null;
    catch(Exception e)
    e.printStackTrace();
    public static void main(String[] args) throws Exception
    Connect myDbTest = new Connect();
    myDbTest.displayDbProperties();
    but, I received the error that ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver, No active Connection.
    I added the 3 .jar files msbase.jar,mssqlserver.jar and msutil.jar to the System variables but it is not working. Is there any syntax for adding these .jar files to the System Variables?
    Please, help me and give me the solution for establishing the connection and loading the driver class. If I am doing anything wrong then please, tell me the right step.
    I am developing a project on Java and I have very little time left to accomplish it. Please help me.
    Thankyou.

    I had already given the .jar files to the User variables and System Variables but the driver class is still not loading. I had simply given the .jar file name for instance, msbase.jar;mssqlserver.jar;msutil.jar and also tried the path of .jar files i.e., C:\Microsoft SQL Server\-----------\lib\msbase.jar;C:\-------------lib\mssqlserver.jar;C:\----------------\lib\msutil.jar; but, both ways are not working. When I installed the MS SQL Server 2000 then in the lib folder, the 3 JAR files were not installed then, I downloaded a driver for MS SQL Server 2000 Driver for JDBC sp2, then, the JAR files were installed. Then, I copied those files to the lib folder of MS SQL Server and gave that path to the User and System Variables but it didn't work then I gave the original path of files where they are installed i.e., of the Driver's path which I downloaded from Microsoft but still now, my problem is not solved. Please help me.

  • JDBC for microsoft Sql server giving erro

    hello,
    I am getting an class not found exception when i am trying to load the JDBC Driver for microsoft SQL Server.
    //Driver d = (Driver)Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance();
    // Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver"); // 2005 version
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver"); // 2000 version
    I have tried all these 3 methods still i am getting this error
    C:\Documents and Settings\rshekdar>java -jar D:\NetBeansProjects\HelloWorldApp\dist\HelloWorldApp.jar
    Hello World!
    exception caught in class for namecom.microsoft.jdbc.sqlserver.SQLServerDriver
    java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:169)
    at helloworldapp.Main.main(Main.java:28)
    here is my classpath
    C:\Documents and Settings\rshekdar>set classpath
    CLASSPATH=.;C:\Program Files\Sybase\Jaguar CTS 3.5\html\classes;C:\Program Files\Sybase\Jaguar CTS 3.5\java\classes;C:\Program Files
    \Sybase\Shared\PowerBuilder\classes.zip;C:\Program Files\Java\jdk1.6.0_10\lib;C:\Program Files\Java\jre1.6.0_06\lib\ext\QTJava.zip;C
    :\Program Files\Java\jdk1.6.0_10;C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\mssqlserver.jar;C:\Program Files\Mic
    rosoft SQL Server 2000 Driver for JDBC\lib\msbase.jar;C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msutil.jar;
    can anyone tell me whats wrong here please i have tried all that i could possibly do. I cannot see anything wrong here, maybe a fresh set of eyes could. Any help given would be highly appreciated.

    Sorry, I didn't see your first first post of your CLASSPATH... I lost in the stack-trace (silly me ;-)
    C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\mssqlserver.jar;
    C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msbase.jar;
    C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msutil.jar;Yep, They look like they might be Sequel JDBC drivers to me... So open each of those jars in your zip-utility (winzip or whatever) and see if any of them contain the missing class: com.microsoft.jdbc.sqlserver.SQLServerDriver OR anything which looks similar... Are you certain the 2K and 05 class names are the same?
    And If the required class does exist then Q: Does java -jar use the CLASSPATH environment variable at all? ... If I was implementing it wouldn't... too "tacky"... I'd respect the classpath in the manifest, and an explicit -cp switch, but I wouldn't trust the system environment variable to point me to the "correct" required classes... not in a pink fit.
    I hope that helps some... these problems can be just sooooo frustrating!
    Cheers. Keith.

  • Free driver for MS SQL

    Hi people,
    Does anybody know how to get a free JDBC driver for MS SQL Server 2000? Or does anybody know how to get sun.jdbc.odbc.JdbcOdbcDriver working with MS SQL Server? I don't feel like paying more money for the driver then for MS SQL Server itself.
    Sincerely,
    Sergei Batiuk.

    I did the following:
    1. set up the datasource;
    2. tried the standard way to connect to the database via dsn.
    It usually starts ok, by after some queries it says "Connection is busy with results for another hstmt". What do you do to prevent this?
    Sergei.

  • Best driver available for MicroSoft SQL server?

    Hi,
    I am using MS-SQL server for my application server.
    Which driver should i use for it?
    Right now I am using ODBC driver.
    Please suggest me a few links where i could get the best driver(thin driver) for SQL server.
    regards
    suri

    Hi,
    best driver available for MicroSoft SQL server?i-net software has written a solid JDBC driver based on TDS. The trial version is limited to a single connection. http://www.inetsoftware.de/English/Produkte/JDBC_Overview/ms.htm
    jTurbo provides jdbc driver for MS SQL Server (www.jTurbo.com).
    Merant technologies also provides jdbc driver for MS SQL Server. Find more details at http://www.microsoft.com/sql/downloads/2000/jdbc.asp.Microsoft licenses MERANT's JDBC driver for SQL Server 2000.
    I cannot comment which one is the best driver. It depends on your project requirements and the buget alloted.
    Hope this helps.
    Good Luck.
    Gayam.Srinivasa Reddy
    Developer Technical Support
    Sun Micro Sysytems
    http://www.sun.com/developers/support/

Maybe you are looking for