0

I have a Windows Application written in C#, using Sqlite3 as its database. I want to update my database in Host with my Windows Application database.

1 Answer 1

0

You can connect to an SQLite3 database using the following code.

SQLiteConnection db = new SQLiteConnection("Data Source=/path/to/file.db;Version=3;");
db.Open();

If you want to specify additional connection parameters, ConnectionStrings.com is always a good resource. Also, you might check out this question which is similar to yours.

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

3 Comments

i want to send data to database in host;
i think first must create a certificate file or authorization by host.then i can connect to Database in Host;
SQLite is an embedded only database system which means that you must access it as if it were a local resource. If the database exists on the same machine your application will run from, then just simply specify the path and filename to the SQLite database. If the database exists on a remote system, then you will need some sort of file-sharing process. On Windows, you can set up a file share on the remote system and then map a drive to it on the local system.

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.