Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using SQLite with Classic ASP

I am building a "quick little" app which needs a small database.
I want to use Classic ASP (i.e. not ASP.NET), and I am wondering about SQLite for the database.

It is possible to use SQLite from Classic ASP?

How do I open / create / use a SQLite database from ASP?

Any help / pointers gratefully recieved!

like image 798
AJ. Avatar asked Sep 17 '09 08:09

AJ.


1 Answers

It is easily possible.

  1. First install the ODBC driver from http://www.ch-werner.de/sqliteodbc/
  2. Then you can connect with e.g. DRIVER=SQLite3 ODBC Driver;Database=mydb.sqlite;LongNames=0;Timeout=1000;NoTXN=0;SyncPragma=NORMAL;StepAPI=0;

I would suggest looking at ajaxed library which offers you a data abstraction for any database. Just configure the connection string and start working ...

like image 170
Michal Avatar answered Nov 22 '22 05:11

Michal