Thursday, February 23, 2012

CREATING SQLITE DATASOURCE IN COLDFUSION

To create a SQLITE datasource in Coldfusion

Steps

  1. Download the latest Java class file from Zentus
  2. Save downloaded file to Coldfusion8/web-inf/lib directory
  3. Rename to clean the numbers if you wish
  4. Restart the Coldfusion Service or reboot the server
  5. Log into Coldfusion Administrator and click on datasources
  6. Add a new datasouce and for driver, select OTHER
  7. For the JDBC url , enter jdbc:sqlite:\Users\xxx.db
    1. Where xxx.db is the sqlite database file
    2. Note: Use the full path of the fule in the JDBC Url minus the drive letter
  8. Driver Class is: org.sqlite.JDBC
  9. Driver name is :sqlitejdbc.jar
  10. Leave everything blank
  11. Submit and it should be registed....Congrats

2 comments:

Unknown said...

I successfully created the ColdFusion Datasource. I have the following script on my webpage:

SELECT
id AS Ticket_Number,
summary AS Summary,
status AS Status,
created_at AS Created_At,
assigned_to AS Assigned_to

FROM tickets
WHERE status = 'open' AND assigned_to IS NULL
ORDER BY Created_At DESC



But when I go to my webpage, I get the following error
Error Executing Database Query.
not implemented by SQLite JDBC driver

The error occurred in C:/Inetpub/wwwroot/intra/SmartTV/UnassignedTickets/Tickets.cfm: line 201

199 :
200 :
201 :
202 : SELECT
203 : id AS Ticket_Number,

Unknown said...

"line 201 is my cfquery line, but the post did not show it"