Quantcast
Channel: Classic ASP
Viewing all articles
Browse latest Browse all 488

Connecting an Sqlite db using classic asp.net

$
0
0

Hi I am trying to connect my sqlite db using class asp. I have followed this tutorial:

http://web.synametrics.com/SQLite.htm 

Now I am trying to get a connection by using the following function:

function getDBConnection() {
var DBCon = Server.CreateObject("ADODB.Connection");
var DBasePath = DB;
var ConStr = "SQLite3 ODBC Driver; Database=C:\Mysite\simpleCMS\DB\cms.db; LongNames=0; Timeout=1000; NoTXN=0; SyncPragma=NORMAL; StepAPI=0;";
DBCon.Open(ConStr,"","");
return DBCon;
}

It doesn't seem to work. Any one can help me please?


Viewing all articles
Browse latest Browse all 488

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>