How To Connect Sql Server 2000 From Java

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • subhendu123
    New Member
    • Jun 2007
    • 1

    How To Connect Sql Server 2000 From Java

    Hi,

    How do I Connect Sql Server 2000 to Java
    Last edited by kestrel; Jun 18 '07, 10:14 AM. Reason: grammar
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by subhendu123
    Hi,

    How do I Connect Sql Server 2000 to Java
    Java connects to databases using JDBC. You just need an appropriate driver for the connecton to work.

    Comment

    • nurmaiza
      New Member
      • May 2007
      • 5

      #3
      Originally posted by r035198x
      Java connects to databases using JDBC. You just need an appropriate driver for the connecton to work.

      1. download the jar file from microsoft ; msutil.jar, mssqlsever.jar, msbase.jar
      2. Setting the CLASSPATH: C:/..lib/msutil.jar,.../mssqlserver.jar ;.../msbase.jar
      3. Enable TCP/IP
      4. the default port no usually 1433.
      5. Stop Firewall

      Comment

      • ck9663
        Recognized Expert Specialist
        • Jun 2007
        • 2878

        #4
        Originally posted by nurmaiza
        1. download the jar file from microsoft ; msutil.jar, mssqlsever.jar, msbase.jar
        2. Setting the CLASSPATH: C:/..lib/msutil.jar,.../mssqlserver.jar ;.../msbase.jar
        3. Enable TCP/IP
        4. the default port no usually 1433.
        5. Stop Firewall
        So far, I have not seen any updates on how to access sql server using Windows Authentication. I don't think it can. There's a (used to be free) softwware that says they can: http://www.datadirect. com/products/jdbc/comparing_with_ microsoft/index.ssp

        Comment

        • ck9663
          Recognized Expert Specialist
          • Jun 2007
          • 2878

          #5
          Originally posted by subhendu123
          Hi,

          How do I Connect Sql Server 2000 to Java

          i found this:
          http://jtds.sourceforg e.net/index.html

          Comment

          • r035198x
            MVP
            • Sep 2006
            • 13225

            #6
            Originally posted by ck9663
            i found this:
            http://jtds.sourceforg e.net/index.html
            And you can get the connection strings from
            www.connections trings.com

            Comment

            Working...