4

Hi i have a file called test.sqlite. How do i go about reading all contents from this file to the console? I already have System.Data.Sqlite

static void Main(string[] args)
        {
           SQLiteConnection _SQL = new SQLiteConnection("Data Source=C:\\test.sqlite");

           _SQL.Open();

           SQLiteCommand cmd = new SQLiteCommand();

        }
3
  • sounds like a similar question -stackoverflow.com/questions/4292654/c-sharp-open-sqlite-file Commented Nov 18, 2011 at 5:36
  • What do you mean by "file called test.sqlite", is it a database of extension ".db3" or some other. Commented Nov 18, 2011 at 5:40
  • 2
    SqLite is a database. Why would you want to read its entire contents to the console? That's not normally what you do with a database... Commented Nov 18, 2011 at 5:42

1 Answer 1

3

To use SQLite in your C# application, you need to download a third party free ADO.NET data provider SQLite.NET.0.21_x68_dll.

You can download it from here: Sql Lite Driver for C#

and here is another usefull video tutorial which you must watch: System.Data.Sqlite

Hope this helps.

Sign up to request clarification or add additional context in comments.

1 Comment

How is this the answer? He's already using System.Data.SQLite.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.