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.
Asked
Active
Viewed 697 times
1 Answers
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.

Community
- 1
- 1

Timothy Schoonover
- 3,195
- 4
- 29
- 44
-
i want to send data to database in host; – user2212024 Mar 26 '13 at 15:17
-
i think first must create a certificate file or authorization by host.then i can connect to Database in Host; – user2212024 Mar 26 '13 at 15:21
-
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. – Timothy Schoonover Mar 26 '13 at 16:33