Ver Mensaje Individual
  #2 (permalink)  
Antiguo 24/06/2007, 20:55
Avatar de ant_z19
ant_z19
 
Fecha de Ingreso: junio-2007
Ubicación: Yucatán - México
Mensajes: 87
Antigüedad: 17 años, 10 meses
Puntos: 0
Re: visual basic 2005 express con sql server 2005 express

Pos de igual forma que en el 2003.

Declara un SqlConnection.

Dim sqlcon as new SqlConnection("SERVER=.; Initial Catalog=BaseDatos; Integrated Security=SSPI;")

Private Sub ProbarConexion()
Try
sqlcon.Open()
sqlcon.Close()
MsgBox("Conexion exitosa")
Catch ex as Exception
MsgBox(ex.ToString())
End Try
End Sub

Si estas usando Sql 2005 Express posiblemente necesites descargar el MANAGEMENT TOOLS para SQL.

Espero te sirva.