problemas con ADODB.Connection
Publicado por carmen (12 intervenciones) el 14/06/2006 23:31:47
hola!
tengo una duda con esto, este es el codigo:
Private conecta As ADODB.Connection 'Se declara conecta como variable tipo Conexión
Private conectame As ADODB.Connection
Private recset, rstaux As ADODB.Recordset 'Se declara recset como variable tipo Recordset
Private Sub Form_Load()
Set conecta = New ADODB.Connection 'Se crea el Objeto con la var antes creada
Set conectame = New ADODB.Connection
Set recset = New ADODB.Recordset
Set rstaux = New ADODB.Recordset
conectame.Open "PROVIDER=MSDASQL;dns=clone;uid=root;pwd;database= clonforest" ''''***AQUI ME MARCA ERROR
conecta.Open "PROVIDER=MSDASQL;dsn=forest;uid=root;pwd=sol;database=sis;"
end sub
ME MARCA QUE: " NO ENCUENTRA EL NOMBRE DE ORIGEN DE DATOS Y NO SE ESPECIFICO NINGUN CONTROLADOR PREDETERMINADO"
AQUI ESTOY MANEJANDO 2 BASES DE DATOS AMBAS HECHAS EN MYSQL, PERO UNA RESIDE EN EL SERVIDOR Y LA OTRA ES LOCAL (SOLO ESTA EN MI COMPUTADORA), Y NO SE SI SE PUEDA HACER LO QU PRETENDO: USAR AMBAS BD´S EN EL MISMO FRM. EL ERROR SALE AL QUERER CONECTAR MI BD LOCAL. SI TOY MAL DIGANMELO XFA!!!!!!
GRACIAS DE ANTEMANO =)
tengo una duda con esto, este es el codigo:
Private conecta As ADODB.Connection 'Se declara conecta como variable tipo Conexión
Private conectame As ADODB.Connection
Private recset, rstaux As ADODB.Recordset 'Se declara recset como variable tipo Recordset
Private Sub Form_Load()
Set conecta = New ADODB.Connection 'Se crea el Objeto con la var antes creada
Set conectame = New ADODB.Connection
Set recset = New ADODB.Recordset
Set rstaux = New ADODB.Recordset
conectame.Open "PROVIDER=MSDASQL;dns=clone;uid=root;pwd;database= clonforest" ''''***AQUI ME MARCA ERROR
conecta.Open "PROVIDER=MSDASQL;dsn=forest;uid=root;pwd=sol;database=sis;"
end sub
ME MARCA QUE: " NO ENCUENTRA EL NOMBRE DE ORIGEN DE DATOS Y NO SE ESPECIFICO NINGUN CONTROLADOR PREDETERMINADO"
AQUI ESTOY MANEJANDO 2 BASES DE DATOS AMBAS HECHAS EN MYSQL, PERO UNA RESIDE EN EL SERVIDOR Y LA OTRA ES LOCAL (SOLO ESTA EN MI COMPUTADORA), Y NO SE SI SE PUEDA HACER LO QU PRETENDO: USAR AMBAS BD´S EN EL MISMO FRM. EL ERROR SALE AL QUERER CONECTAR MI BD LOCAL. SI TOY MAL DIGANMELO XFA!!!!!!
GRACIAS DE ANTEMANO =)
Valora esta pregunta


0