1 2 Previous Next 28 Replies Latest reply: Dec 11, 2006 1:56 AM by 807606 RSS

    problem with mssql server 2000 sp 4

    807606
      hi all

      i m using
                     Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
      con = DriverManager.getConnection("jdbc:microsoft:sqlserver://"+
                          "localhost:1433;databaseName=dbcheck;","sa","");
                     
      to connect to mssql server 200 sp4
      and have the following exception


      java.sql.SQLException: No suitable driver
           at java.sql.DriverManager.getConnection(DriverManager.java:532)
           at java.sql.DriverManager.getConnection(DriverManager.java:171)
           at DbCheck.<init>(DbCheck.java:15)
           at DbCheck.main(DbCheck.java:46)
      java.lang.NullPointerException
           at DbCheck.fun(DbCheck.java:29)
           at DbCheck.main(DbCheck.java:47)
      Exception in thread "main"


      os= win xp
      jdk =1.4
      database = mssql server 2000 sp4
        1 2 Previous Next