What does “Data Source cannot be empty. Use :memory: to open an in-memory database” mean?

和自甴很熟 提交于 2019-12-01 15:16:03

There's a space after your data source: Data Source= D:\XXX.db. Also, in your copy/paste, there's no closing quote to the connection string. Here's a connection string that works for me for the testing tool:

@"Data Source=C:\Temp\Test.db3;Pooling=true;FailIfMissing=false;Version=3"

Because your Data Source is empty. Add the Data Source paramater to your connection string. before opening the Sqlite database.

You haven't provided a data source name, aka where the sqlite file exists.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!