I recently converted my SQL Server database into SQLite DB. But when I try to open my SQLite using .Open() it throws me this error:
Data Source
I had this same error recently when I actually was trying to use the in memory version of SQLite.
I was setting up the connection as follows:
var connection = new SQLiteConnection("Filename=:memory:");
connection.Open();
And getting the error
Data Source cannot be empty. Use :memory: to open an in-memory
I then changed it to this code, note the 'SQL' part is no longer capitalised:
var connection = new SqliteConnection("Filename=:memory:");
connection.Open();
And now it works.
The working, non capitalised version is from the Microsoft.Data.Sqlite.SqliteConnection namespace where as the SQLite version is from System.Data.SQLite.SQLiteConnection (I had version 1.0.113.6 referenced).