Results 1 to 4 of 4
  1. #1
    hqt
    hqt is offline Member
    Join Date
    Nov 2011
    Posts
    27
    Rep Power
    0

    Question Where sqljdbc4.jar file on machine

    When I'm learning JDBC, I need file sqljdbc4.jar to connect SQL Server with my Java program. File sqljdbc4.jar I easily find on Internet, no problem.
    But, when I visited Microsoft MSDN page, they say sqljdbc.jar and sqljdbc4.jar are installed in these link:
    <installation directory>\sqljdbc_<version>\<language>\sqljdbc.ja r
    <installation directory>\sqljdbc_<version>\<language>\sqljdbc4.j ar
    (With installation directory is place where I install sql server) But I cannot find above link. (In my installation directory, it doesn't have any folder name sqljdbc_<version>)
    So, am I understand wrong what they say ? Please help me understand more clearer.

    thanks :)

  2. #2
    Tolls is online now Moderator
    Join Date
    Apr 2009
    Posts
    11,937
    Rep Power
    19

    Default Re: Where sqljdbc4.jar file on machine

    You need the driver first.
    It doesn't come with SQL Server (as far as I remember).
    Downloading the exe to install it is probably the easiest (and deploys it as mentioned in your post).

  3. #3
    2by4 is offline Banned
    Join Date
    Dec 2011
    Posts
    143
    Rep Power
    0

    Default Re: Where sqljdbc4.jar file on machine

    What did you search for?

    Did you replace <version> by the version number?

    E.g if you have version 1.0, you need to search for the directory, sqljdbc_1.0

    If you are not sure of the driver version, just search for sqljdbc under the directory where SQLServer is installed.

    That should bring up the .jar file.

  4. #4
    Tolls is online now Moderator
    Join Date
    Apr 2009
    Posts
    11,937
    Rep Power
    19

    Default Re: Where sqljdbc4.jar file on machine

    The MS site, that the OP got this snippet from, explains that when you install the driver (using the exe I mention in my post) it installs it as above.

    This page says about installing the driver.
    If the OP hasn't installed the driver then it won't be there.

    Of course they could just download the jars, but the installer is just as easy.

Similar Threads

  1. Replies: 0
    Last Post: 12-21-2011, 09:15 AM
  2. File copy from client machine to server
    By softashu in forum Advanced Java
    Replies: 1
    Last Post: 11-22-2011, 12:47 PM
  3. Replies: 3
    Last Post: 02-25-2011, 04:34 PM
  4. Replies: 0
    Last Post: 02-07-2011, 01:27 PM
  5. how to load a file in remote machine
    By christina in forum New To Java
    Replies: 1
    Last Post: 08-06-2007, 09:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •