
28/03/2007, 17:40
|
| | Fecha de Ingreso: enero-2007
Mensajes: 23
Antigüedad: 18 años Puntos: 0 | |
Re: Error al conectarme con desde visual.net a sql express 2005 mira intenta asi
Module mdAplicacion
#Region ">>> VARIABLES DEL SISTEMA <<<"
Private Obj As Object
Public cnAplicacion As New ADODB.Connection
Public cmDatos As ADODB.Command
Public rtDatos As ADODB.Recordset
Public cDatos As New clProcesos
Public NivelUsuario As Integer
#End Region
#Region " >>> PROCESOS mdAplicacion <<< "
Sub Main()
Try
With cnAplicacion
.CursorLocation = 3
.ConnectionTimeout = 15
.Open("PROVIDER=MSDASQL;DSN=prueba;UID=sa;PWD=")
End With
Catch ex As Exception
MsgBox(ex.Message, MsgBoxStyle.Critical) : End
End Try
End Sub
#end region
end module
y agrega la referencia 2.5 de ADODB haciendolo asi lo tendras disponible en todo el proyecto |