java for mac

Discussion in 'Community Discussion' started by ashokformac, Mar 26, 2007.

  1. ashokformac macrumors member

    Joined:
    Mar 26, 2007
    #1
    Hi , i am new to mac. i am using java jdbc connection to access the data in ms sql server.I am using jTDS jdbc driver and mac 10.4 . I am not able to connect to sql server .
    following are the lines i used for connection ..

    Class.forName("net.sourceforge.jtds.jdbc.Driver");
    Connection connection = DriverManager.getConnection("jdbc:jtds:sqlserver://172.16.4.59/iarchivev2;user=iarchiveuser;password=system");

    but connection was not establishing...
    it say unable to connect to remote host..

    can any one help me to solve this problem...
     
  2. takao macrumors 68040

    takao

    Joined:
    Dec 25, 2003
    Location:
    Dornbirn (Austria)
  3. ashokformac thread starter macrumors member

    Joined:
    Mar 26, 2007
    #3
    Error message

    This is the error message i got after exactly 70 seconds

    " Network error IOException: Operation timed out "
     
  4. Lyle macrumors 68000

    Lyle

    Joined:
    Jun 11, 2003
    Location:
    Madison, Alabama
    #4
    Can you connect to that database server (at that IP address, and using that user name and password) using any other client? That is, have you at least confirmed that the problem is in your Java code and not some more general connectivity problem that has nothing to do with your code?

    It would help to get some more information about what steps you have taken to try to diagnose the problem.
     

Share This Page