Foros > Java: Ayuda con conexion SQL SERVER 2000

  1. may9999

    Mensajes [1] - Enviado el Lunes 02 de Julio de 2007 a las 23:07hs

    Hola a todos,
    Estoy programando en java y como me conecto es de la siguiente forma:

    Properties p = new Properties();
    p.put("user", "sa");
    p.put("password","123");
    p.put("selectMethod", "direct");
    p.put("DatabaseName", "pubs");

    conn = java.sql.DriverManager.getConnection("jdbc:jtds:sqlserver://HOME:1433/pubs", p);

    y me da el siguiente error:

    java.sql.SQLException: Network error IOException: Connection refused: connect
    at net.sourceforge.jtds.jdbc.ConnectionJDBC2.(ConnectionJDBC2.java:372)
    at net.sourceforge.jtds.jdbc.ConnectionJDBC3.(ConnectionJDBC3.java:50)
    at net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:178)
    at java.sql.DriverManager.getConnection(DriverManager.java:525)
    at java.sql.DriverManager.getConnection(DriverManager.java:140)
    at Conectarse.(Conectarse.java:69)
    at Escolare.Cargar(Escolare.java:318)
    at Escolare.btnAceptarActionPerformed(Escolare.java:197)
    at Escolare.access$1600(Escolare.java:13)
    at Escolare$17.actionPerformed(Escolare.java:157)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    at javax.swing.plaf.basic.BasicButtonListener$Actions.actionPerformed(BasicButtonListener.java:287)
    at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1571)
    at javax.swing.JComponent.processKeyBinding(JComponent.java:2763)
    at javax.swing.JComponent.processKeyBindings(JComponent.java:2798)
    at javax.swing.JComponent.processKeyEvent(JComponent.java:2726)
    at java.awt.Component.processEvent(Component.java:5265)
    at java.awt.Container.processEvent(Container.java:1966)
    at java.awt.Component.dispatchEventImpl(Component.java:3955)
    at java.awt.Container.dispatchEventImpl(Container.java:2024)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1810)
    at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:672)
    at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:920)
    at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:798)
    at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:636)
    at java.awt.Component.dispatchEventImpl(Component.java:3841)
    at java.awt.Container.dispatchEventImpl(Container.java:2024)
    at java.awt.Window.dispatchEventImpl(Window.java:1778)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    Caused by: java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
    at java.net.Socket.connect(Socket.java:516)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at net.sourceforge.jtds.jdbc.SharedSocket.createSocketForJDBC3(SharedSocket.java:289)
    at net.sourceforge.jtds.jdbc.SharedSocket.(SharedSocket.java:250)
    at net.sourceforge.jtds.jdbc.ConnectionJDBC2.(ConnectionJDBC2.java:297)
    ... 38 more


    Como pueda hacer para conectarme?, se los agradeceria mucho
    mi correo es [email protected]

  2. chronosar

    Mensajes [3] - Enviado el Lunes 16 de Julio de 2007 a las 17:06hs

    Chronos Consulting (www.chronosconsulting.com, www.chronossystems.com, www.coberon.com) is part of the Coberon- Chronos Group, an award winning global leader in temporary staffing, permanent recruitment and nearshore software outsourcing for the global Fortune 500. The Group owns and operates 41 offices worldwide.

    Our client is an innovative IT company and a leading supplier worldwide currently recruiting :Java developers; dynamic and experienced to join a global team.
    Applicants must have 3+ years of experience working in Java development, solid knowledge of OO programming algorithms and a B.S. degree in computer science or system engineering.
    Proactive and solution oriented attitude and excellent English communication skills (oral and written) are required. Availability to travel to the USA is highly valued.

    Estamos en la b?squeda de profesionales, para incorporar a nuestro equipo de desarrollo, es imprescindible haber trabajado previamente con J2EE, tecnolog?as web, y contar con un nivel de ingl?s avanzado (oral y escrito).
    Valoraremos conocimientos en:

    ? Java
    ? Frameworks (J2EE, struts, hibernate, EJBs, JSPs)
    ? Websphere u otra aplicaci?n web
    ? Bases de Datos (SQL)
    ? UNIX/Linux


    Only shortlisted candidates will be contacted.
    Send your application along with details of your salary expectations to: [email protected]
    (REF: JD)


responder

Para poder responder a este tema tenes que ingresar. Si no tenes una cuenta podes registrarse gratis..

publicidad

API DE FACEBOOK
GOOGLE CALENDAR API
GOOGLE MAPS API