Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hai....
Can we use Sqlite database in asp.net? If we can, how to install the sqlite? And how to connect to the database?

Thanks......
Posted

 
Share this answer
 
 
Share this answer
 
Comments
Suresh Suthar 20-Dec-11 5:13am    
Very informative. 5!
RaviRanjanKr 20-Dec-11 5:15am    
Thanks :)
XML
Did you add the assembly to your assemblies section of web.config?

<add assembly="System.Data.SQLite,Version=1.0.60.0, Culture=neutral,PublicKeyToken=db937bc2d44ff139"/>
 
Share this answer
 
yes we can use

see the code below

<connectionstrings>
      <remove name="LocalSqlServer" />
      <add name="ConnectionStringName" connectionstring="data source=actual path to db" providername="System.Data.SQLite" />
</connectionstrings>
 
Share this answer
 
Comments
Member 11082705 15-Apr-15 6:09am    
how to decrypt sqlite database to display in gridview
Member 11082705 15-Apr-15 6:09am    
in asp.net
IMO you can use SQLLite in Asp.Net.
I have not used in Asp.Net but in WPF application and their website[^] can give you more insights on configuration etc.

Also go through these links

http://sqlite.phxsoftware.com/[^]

http://sqlite.phxsoftware.com/forums/p/1636/7005.aspx[^]
 
Share this answer
 
Comments
RaviRanjanKr 20-Dec-11 5:05am    
5+

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