SQLite: Cannot open network file programmatically, even though worked before

后端 未结 3 1197
终归单人心
终归单人心 2021-02-04 03:06

I have used the code below to open a SQLite database file that sits on a network computer for more than a year now almost on a daily basis. Suddenly this morning, I am not able

3条回答
  •  清歌不尽
    2021-02-04 03:56

    in version > 1.0.82.0

    1. Double the leading two backslashes in the file name (e.g. "\\\\network\share\file.db").

    2. Use a mapped drive letter.

    3. Use the SQLiteConnection constructor that takes the parseViaFramework boolean argument and pass 'true' for that argument.

    See the SQL post here

提交回复
热议问题