SQLite Provider for BlogEngine.NET 1.4

SQLite After a few requests, I decided to go back and do another data provider for BlogEngine.NET.  This time around I’m using SQLite.  SQLite is a file based format very similar to VistaDB Express and it has no restrictions .  It is another fine option for blog data and very easy to work with.

Once again, this is a complete provider setup.  It will store all your blog posts, pages, profiles, users, roles, and settings.  It could be partially implemented by making changes to the default providers in your web.config if you desire.

The process for getting setup is very easy.  The instructions are assuming you have BlogEngine.NET setup already.  If you don’t please check out the initial setup screen cast to walk you through the process.  If you already have an existing blog, be sure to backup before following these steps.

1. Download the SQLite database provider for BlogEngine and unzip it.

2. Download the SQLite ADO.NET Provider binaries.

3. In your SQLite ADO.NET download, find the System.Data.SQLite.DLL and add it to your blog’s bin folder.

4. From the BlogEngine download, copy the BlogEngine.s3db file to your blog’s App_Data folder.

5. Next, replace your blog’s web.config file with the new web.config file from the BlogEngine download.

6. Browse out to your blog and you should see the BlogEngine with SQLite welcome post. 

7. Your User security has been reset, so login as Admin (with the password, admin), add new users, and change your password.

That is it.  You should be now blogging with data stored in SQLite.

Comments

7/10/2008 2:17:23 PM #

Don

Awesome!!!

Thanks so much for posting this!

Don United States |

7/11/2008 2:26:54 AM #

Ray

Hi Al,

I'd like to get your opinion on VistaDB vs. SQLite, which one do you think is better in terms of

Performance
Feature/Ease of use
Mono support

Thanks,
Ray.

Ray United States |

7/13/2008 11:28:08 PM #

Ray

Hi Al,

Good work!  I do have a problem logging in a new user against your SQLite db.  I logged in as the "admin" then I create a new user, after that I logout, all these worked fine.  Then when I try to log in as the new user, it says "Your login attempt was not successful. Please try again."   After that I opened the SQLite db file, and found no rows were added to the be_Users table.  Am I missing something, could you shed some light on how to fix this problem please.

Thank you very much!
Ray.

Ray United States |

7/13/2008 11:34:42 PM #

Ray

Never mind.  It worked again!  Thanks! -Ray.

Ray United States |

7/16/2008 9:09:24 AM #

Sathish TK

Thanks for the article. Will have to try it out.

BTW, I just subscribed to your site.

http://www.sathishtk.com/blog

Sathish TK United States |

7/17/2008 1:44:39 AM #

Cristiano

Hi Al,
and if I want to migrate the existing XML database on SQLite ?
Some suggestion?

Cristiano Italy |

7/17/2008 2:33:47 AM #

Al Nyveldt

Hi Cristiano,

I'm working up a post on migrating from one provider to another.  I wish it were an easier process but there are lots of variables.  I'll likely have something posted soon though.

Al

Al Nyveldt United States |

7/17/2008 10:23:23 PM #

Cristiano

Very well. I wait impatiently for your guide Wink

Cristiano Italy |

7/21/2008 1:40:16 PM #

jason

where is the sqlite providers Assembly?

jason People's Republic of China |

7/21/2008 5:55:02 PM #

Al Nyveldt

Jason,

Everything you need should be in the links above.  There is no BlogEngine specific assembly in the downloads, just the SQLite ADO assembly (in step 2).  

Al Nyveldt United States |

7/22/2008 10:56:40 AM #

jason

thank you

jason People's Republic of China |

7/31/2008 9:41:38 AM #

Gunner

I am trying tu set up my own web server, and i have only one thing to say:

You are the Man!!!

Greetings form Spain, Gentleman.

Gunner Spain |

7/31/2008 9:48:31 AM #

Prasenjit

Good Job!

Prasenjit India |

Comments are closed
Recent Comments