开发者

C# How can I read an MDB database into memory and query it?

开发者 https://www.devze.com 2022-12-21 01:48 出处:网络
I want to be ab开发者_如何学Gole to copy a database into a byte array and then query it. Is this possible?

I want to be ab开发者_如何学Gole to copy a database into a byte array and then query it. Is this possible?

For example, with a text file I can use..

byte[] file = File.ReadAllBytes;

..and then read the byte array with..

StreamReader rdr = new StreamReader(new MemoryStream(file));


No. In order to query it, the database classes will require the database to reside on disk. MDB files, in particular, require a lock file to be generated when you open the database.

0

精彩评论

暂无评论...
验证码 换一张
取 消