简体   繁体   中英

Is it possible to connect to a in-memory Sqlite database created external to the program?

If I create a in-memory database from command line, ie with the command

ATTACH :memory: as inMemoryDb

Is it possible to connect to this database from a C# application?

What would be the connection string?

As Shawn said, An in-memory database can only be accessed by the process that creates it. If you want multiple processes to use the same database, it has to be a file-based one.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM