Using SQLite with Classic ASP

为君一笑 提交于 2019-12-21 04:43:14

问题


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!


回答1:


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 ...



来源:https://stackoverflow.com/questions/1437533/using-sqlite-with-classic-asp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!