Ver Mensaje Individual
  #4 (permalink)  
Antiguo 28/07/2005, 04:45
fredy666
 
Fecha de Ingreso: enero-2005
Ubicación: Benifaió (Valencia)
Mensajes: 319
Antigüedad: 20 años, 1 mes
Puntos: 0
Yo utilizo esto:

Código:
    Public conection As New SqlConnection("workstation id='ZION';packet size=4096;user id=agrau;integrated security=SSPI;data source='ZION';persist security info=False;initial catalog=Inventario")
Y luego en el form load del formulario MDI principal...
Código:
        Try
            cn = New Data.SqlClient.SqlConnection(strConexion)
            cn.Open()
            cmdEntrar.Visible = True

        Catch ex As Exception
                    'Mensaje de error
            Exit Sub
        End Try
        cn.Close()
    End Sub
Pruebalo haber.