java for mac

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

  1. ashokformac macrumors member

    Mar 26, 2007
    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 ..

    Connection connection = DriverManager.getConnection("jdbc:jtds:sqlserver://;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


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

    Mar 26, 2007
    Error message

    This is the error message i got after exactly 70 seconds

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


    Jun 11, 2003
    Madison, Alabama
    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