Ver Mensaje Individual
Antiguo 15-sep-2005, 02:48   #4 (permalink)
chcma
chcma está en el buen camino
 
Fecha de Ingreso: junio-2003
Ubicación: Asturias
Mensajes: 1.998
One way of connecting to a database is through the JDBC driver manager using the method DriverManager.getConnection. This method uses a string containing a URL. The following is an example of using the JDBC driver manager to connect to Microsoft SQL Server 2000 while passing the user name and password:

Class.forName("com.microsoft.jdbc.sqlserver.SQLSer verDriver");
Connection conn = DriverManager.getConnection
("jdbc:microsoft:sqlserver://server1:1433;User=test;Password=secret");

Esto es lo que me dice la documentacion del driver. Por lo que he puesto en el primer post, creo que el Class.forName esta bien creado. ¿Verdad?
__________________
Charlie.
chcma está desconectado   Responder Citando