Jump to content

conexion a base de datos


Recommended Posts

Posted

hola necesito ayuda, no puedo conectar a mi base de datos este es mi script tengo un error y no se donde esta

 

Dim Conect As Object
Set Conect = CreateObject("ADODB.Connection")

Conexion = "Provider=SQLOLEDB.1;" & _
           "Password=" & 123456 & ";" & _
           "Persist Security Info=True;" & _
           "User ID=" & usuario1 & ";" & _
           "Initial Catalog=" & administracion & ";" & _
           "Data Source=" & DESKTOP-6OND6L7\SQLEXPRESS & "


Conect.ConnectionString = Conexion


Conect.Open
    
    

End Sub

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

Privacy Policy