Click here to Skip to main content
15,891,567 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everyone
How to connect to SQLite with SqlClient?
For example my Database address is : "C:\database.db"
Thanks.
Posted
Updated 24-Jun-13 18:11pm
v2

You can't. SqlClient is for MS SQL databases, it won't operate with an SQLite database. For that you need to download the SQLite data providers from here.[^]
 
Share this answer
 
Comments
Maciej Los 25-Jun-13 1:36am    
+5
Ron Beyer is right!

To build connection string, have a look here: http://www.connectionstrings.com/sqlite[^]

More about SQLite:
The Working Programmer: Inside SQLite[^]
Using SQLite in a Windows Store App[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900