将Access数据库OLE DB驱动程序设置为独占 [英] set Access database OLE DB Driver as exclusive
问题描述
我想以编程方式在Visual Studio 2010 VB中建立对我的Access数据库的独占用户访问权限.即使有可能,我也找不到,更不用说我实际上是怎么做的了.我的程序有几个实例,其中相同的数据库
通过以下方式建立联系" Provider = Microsoft.Jet.OleDb.4.0;数据源= C:\ MyDatabase.mdb指向我的Access数据库.目前,数据库会在
共享模式,出于我自己的原因,我宁愿将其打开
独家模式.某些实际的代码将非常有帮助.
I want to programmatically establish Exclusive user access to my Access database in Visual Studio 2010 VB. I have been unable to find even if this is possible, let alone how do I actually do it. My program has several instances where the same database
gets connected through "Provider = Microsoft.Jet.OleDb.4.0; Data source = C:\MyDatabase.mdb" which points to my Access database. Currently the database opens in all instances in the
Shared mode which for my own reason I would rather have it open in
Exclusive mode. Some actual code would be very helpful. Thanks.
推荐答案
请查看底部名为"Exclusive"的: http://www.connectionstrings.com/access/
Look at the bottom named "Exclusive": http://www.connectionstrings.com/access/
这篇关于将Access数据库OLE DB驱动程序设置为独占的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!