CLR: .Net / Mono / Boo / Otros CLR > VB .NET

 Problemas Acceso A Base De Datos Access Con Passwo

<< < (2/3) > >>

Kev:
Primero verifica la cadena de conexion que este con los datos correctos, luego si no furula entonces no debes tener las dll correspondientes entonces tendrias que instalar las dll, te paso aca la info que encontre


--- Código: Text ---Jet Installable ISAM DriversIf your application uses Jet 2.x or earlier MDB files, dBase files, Excelspreadsheets, or any of the other installable ISAM file formats, then youneed to install one or more of the following files to the Windows&#092;System(Winnt&#092;System32 for Windows NT or Windows 2000) directory:Msrd2x35.dll Jet 2.x IISAMMsexcl35.dll Excel IISAMMsexch35.dll Exchange IISAMMsltus35.dll Lotus 123 IISAMMspdox35.Dll Paradox IISAMMstext35.dll Text file IISAMMsxbse35.dll dBase/FoxPro IISAM The registry keys are given in the Microsoft Jet Registry Settings sectionat the end of the article. Verify the registry keys exist. If not, thesection gives instructions on creating them through a .reg file. You can also register them with the following commands:Regsvr32.exe C:&#092;Windows&#092;Msrd2x35.dllRegsvr32.exe C:&#092;Windows&#092;Msexcl35.dllRegsvr32.exe C:&#092;Windows&#092;Msexch35.dllRegsvr32.exe C:&#092;Windows&#092;Msltus35.dllRegsvr32.exe C:&#092;Windows&#092;Mspdox35.dllRegsvr32.exe C:&#092;Windows&#092;Mstext35.dllRegsvr32.exe C:&#092;Windows&#092;Msxbse35.dll 
Salu2
 :comp:

Kev:
Pero si es que no te mueves bien con esto de las dll, vete al panel de control en agregar o quitar programas, ahi reinstala el VS.NET pero esta vez instala todos los controles que tengan que ver con el acceso a datos.

Bye
 :hola:  :comp:

elturle:
:alien:  Hola:

Las dll las tengo correctamente, pero al ver que me sigue saliendo el mensaje, e desistalado y vuelto ha instalar el Office xp y Visual Studio 2003. He vuelto a probar y me sigue dando el error. He quitado la contraseña a la base de datos y el código que contine la contraseña y funciona perfectamente, pero cuando la pongo me sigue saliendo el mensaje.

Si me puedes decir algo que pueda intentar te lo agradecería.

Un Saludo.
Juan Carlos

Soultaker:
Bueno si te sirve esta es la definicion de ISAM
--- Citar ---Abbreviation for Indexed Sequential Access Method, a method for managing how a computer accesses records and files stored on a hard disk. While storing data sequentially, ISAM provides direct access to specific records through an index. This combination results in quick data access regardless of whether records are being accessed sequentially or randomly.
--- Fin de la cita ---

 :comp:

elturle:
B) Hola, ya me funcioan, he encontrado el siguiente código y me funciona perfectamente:


--- Código: Text --- Dim oOleDbConnection As OleDb.OleDbConnection        Dim strPassword As String = &#34;1234&#34;        Dim Path As String = Directory.GetCurrentDirectory        Dim strDataBasePath As String = Path & &#34;&#092;Datos&#092;Datos2002.mdb&#34;          Dim sConnString As String = _        &#34;Provider=Microsoft.Jet.OLEDB.4.0;&#34; & _        &#34;Data Source=&#34; & strDataBasePath & &#34;;&#34; & _        &#34;Jet OLEDB:Database Password=&#34; & strPassword & &#34;;&#34;         oOleDbConnection = New OleDb.OleDbConnection(sConnString)             Try            oOleDbConnection.Open()         Catch ex As Exception            MsgBox(ex.Message)         End Try         MsgBox(oOleDbConnection.State)  
Un saludo y muchas gracias a tod@s.
Juan Carlos

Navegación

[0] Índice de Mensajes

[#] Página Siguiente

[*] Página Anterior

Ir a la versión completa