connect vb.net访问数据库.ldb文件 [英] connect vb.net to access databases .ldb file

查看:111
本文介绍了connect vb.net访问数据库.ldb文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

[ ]目标traying连接vb.net访问数据库.ldb文件

目标与访问.mdb文件共存

使用此代码

< pre lang =vb> 公共 con 作为 OleDb.OleDbConnection( Provider = microsoft.jet.oled b.4.0; data source =& Application.StartupPath& \ em.mdb或mde; user id = admin; jet oledb:database密码= 2240
Dim DataSet1 作为 DataSet





这是尝试ldb的代码,这是大问题而且没有show databases

 公共 con 作为  OleDb.OleDbConnection(  Provider = microsoft.jet.oled b.4.0; data source =& Application.StartupPath&   \ em.ldb; user id = admin; jet oledb:database password = 2240
Dim DataSet1 作为 DataSet





这是连接这个ldb文件的示例但没有; t开源代码



想要这样做: http://www.4shared.com/rar/chcDCoS0 /vb4.html [ ^ ]

解决方案

亲爱的monemdb,



Quote:

在Microsoft Access 97中,.ldb文件用于确定哪些记录在共享数据库中以及由谁锁定。它在任何用户打开数据库时自动创建,并在最后一个用户关闭数据库时删除。虽然无法直接打开 .ldb文件进行读取,但Microsoft提供了一个动态链接库,它公开了可用于读取.ldb文件的函数。





如果您需要连接到此数据库以枚举已连接的计算机或用户,请参阅: http:/ /support.microsoft.com/kb/186304 [ ^


[]aim traying to connect vb.net to access databases .ldb file
aim coonect with access .mdb file
with this code

Public con As New OleDb.OleDbConnection("Provider=microsoft.jet.oled b.4.0;data source=" & Application.StartupPath & "\mo.mdb or mde;user id=admin;jet oledb:database password=2240")
Dim DataSet1 As New DataSet



this is the code trying to ldb this is make big proplem and didn''t show databases

Public con As New OleDb.OleDbConnection("Provider=microsoft.jet.oled b.4.0;data source=" & Application.StartupPath & "\mo.ldb;user id=admin;jet oledb:database password=2240")
Dim DataSet1 As New DataSet



this is sample connect with this ldb file but no;t open source code

a''m want to do that: http://www.4shared.com/rar/chcDCoS0/vb4.html[^]

解决方案

Dear monemdb,

Quote:

In Microsoft Access 97, the .ldb file is used to determine which records are locked in a shared database and by whom. It is created automatically when any user opens a database and deleted when the last user closes the database. While the .ldb file cannot be opened directly for reading, Microsoft provides a dynamic link library that exposes functions that you can use to read the .ldb file.



If you need to connect to this database to enumerate connected computers or users, see this: http://support.microsoft.com/kb/186304[^]


这篇关于connect vb.net访问数据库.ldb文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆