English 中文(简体)
阅读和书写许多申请的出入数据库
原标题:Read and write from and to single Ms Access database from many applications simultaneously

我已对此进行了测试,而且我可以看到,从多个申请(或相同申请)到同一访问数据库,甚至还有许多<代码>OleDbataReader同时开放。

但这是否安全? 如果我得到任何特别照顾或将采用<代码> 喷射灯/密码发动机对一切照相? 如果我阅读一个数据表,同时向同一表格书写,将会发生什么情况?

I just don t want to stumble upon gotchas or surprises later on.

问题回答

获取一般不是同时进行数据活动的发动机。 您为什么会避免MySQL或Oracle或其他适当的RDBMS?

某些原因:

-You are not guaranteed a read consistent view.
-You get the strong possibility of updating an updated record without knowing.
-You may experience unresolvable locks
-You have no centralized transaction manager

准入不是同时使用。 http://databases.aspfaq.com/database/what-are-the-limitations-of-ms-access.html 此处为关于这一主题的出色文章。

To directly response to your question What would happen if I m reading one data table while writing to the same table at the same time?

取决于缺损<代码>。 你们可以读到底层是什么,以及如何在http://msdn.microsoft.com/en-us/library/ms971557.aspx” rel=“nofollow”上加以具体说明。 保护您的数据完整性与ADO.Net中的交易。

但正如其他人建议的那样,请使用其他东西:SQL 2008 Express <,但完全是免费的。 如果你仍然希望能够使用数据库而不安装服务器软件,我甚至建议





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签