sql-jdbc,urgent

  • hi,

    iam running a jdbc program ,the following exception raised

    Exception in thread "main" java.sql.SQLException: [Microsoft][SQLServer 2000 Dri

    ver for JDBC]Unable to connect.  Invalid URL.

            at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source

    )

            at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)

            at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)

            at java.sql.DriverManager.getConnection(DriverManager.java:517)

            at java.sql.DriverManager.getConnection(DriverManager.java:146)

            at DBCreate.main(DBCreate.java:11)

    what is the problem.

  • Based on the error returned, it looks like you specified a bad connection path to your SQL Server. I say that because of the "Unable to connect. Invalid URL." and the "Unknown Source" for the connect method call.

    K. Brian Kelley
    @kbriankelley

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply