Hello,
I am testing SQLite to be use with ADO.
I found this ODBC driver:
http://www.ch-werner.de/sqliteodbc/
Anyone is using it?.
Or another ODBC driver?.
Thank you very much.
SQLITE ODBC
- lucasdebeltran
- Posts: 1303
- Joined: Tue Jul 21, 2009 8:12 am
- Contact:
SQLITE ODBC
Muchas gracias. Many thanks.
Un saludo, Best regards,
Harbour 3.2.0dev, Borland C++ 5.82 y FWH 13.06 [producción]
Implementando MSVC 2010, FWH64 y ADO.
Abandonando uso xHarbour y SQLRDD.
Un saludo, Best regards,
Harbour 3.2.0dev, Borland C++ 5.82 y FWH 13.06 [producción]
Implementando MSVC 2010, FWH64 y ADO.
Abandonando uso xHarbour y SQLRDD.
-
- Posts: 1163
- Joined: Mon Oct 17, 2005 5:41 am
- Location: Belgium
- Contact:
Re: SQLITE ODBC
Hello,
I'm using it.
It's working very nice.
I'm using it.
It's working very nice.
Regards,
Marc
FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc
FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
- lucasdebeltran
- Posts: 1303
- Joined: Tue Jul 21, 2009 8:12 am
- Contact:
Re: SQLITE ODBC
Marc,
What string for connection do you use?.
Also, have you found any particular issue?.
For example, I discover that function MONTH is not supported:
SELECT * FROM APUNTES WHERE MONTH(FECHA) = '1'
Any comment will be welcomed.
Thank you.
Best regards
What string for connection do you use?.
Also, have you found any particular issue?.
For example, I discover that function MONTH is not supported:
SELECT * FROM APUNTES WHERE MONTH(FECHA) = '1'
Any comment will be welcomed.
Thank you.
Best regards
Muchas gracias. Many thanks.
Un saludo, Best regards,
Harbour 3.2.0dev, Borland C++ 5.82 y FWH 13.06 [producción]
Implementando MSVC 2010, FWH64 y ADO.
Abandonando uso xHarbour y SQLRDD.
Un saludo, Best regards,
Harbour 3.2.0dev, Borland C++ 5.82 y FWH 13.06 [producción]
Implementando MSVC 2010, FWH64 y ADO.
Abandonando uso xHarbour y SQLRDD.
-
- Posts: 1163
- Joined: Mon Oct 17, 2005 5:41 am
- Location: Belgium
- Contact:
Re: SQLITE ODBC
Lucas,
As connectionstring I use:
Driver={SQLite3 ODBC Driver};Database=c:\temp\test.db;
Database=c:\temp\test.db is the SQlite-file.
I didn't use month in SQlite, but you can use something like FECHA>... AND FECHA< ...
There are indeed difference between MySQL and SQLite functions and syntax...
As connectionstring I use:
Driver={SQLite3 ODBC Driver};Database=c:\temp\test.db;
Database=c:\temp\test.db is the SQlite-file.
I didn't use month in SQlite, but you can use something like FECHA>... AND FECHA< ...
There are indeed difference between MySQL and SQLite functions and syntax...
Regards,
Marc
FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc
FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
- lucasdebeltran
- Posts: 1303
- Joined: Tue Jul 21, 2009 8:12 am
- Contact:
Re: SQLITE ODBC
Thank you.
And where I please find those diferences?.
And where I please find those diferences?.
Muchas gracias. Many thanks.
Un saludo, Best regards,
Harbour 3.2.0dev, Borland C++ 5.82 y FWH 13.06 [producción]
Implementando MSVC 2010, FWH64 y ADO.
Abandonando uso xHarbour y SQLRDD.
Un saludo, Best regards,
Harbour 3.2.0dev, Borland C++ 5.82 y FWH 13.06 [producción]
Implementando MSVC 2010, FWH64 y ADO.
Abandonando uso xHarbour y SQLRDD.
- lucasdebeltran
- Posts: 1303
- Joined: Tue Jul 21, 2009 8:12 am
- Contact:
Re: SQLITE ODBC
Marc,
And how do you deal with dates?-
INSERT INTO bestand (DATA), VALUES DTOC(DATE()) shows nill on the record,
Thanks.
And how do you deal with dates?-
INSERT INTO bestand (DATA), VALUES DTOC(DATE()) shows nill on the record,
Thanks.
Muchas gracias. Many thanks.
Un saludo, Best regards,
Harbour 3.2.0dev, Borland C++ 5.82 y FWH 13.06 [producción]
Implementando MSVC 2010, FWH64 y ADO.
Abandonando uso xHarbour y SQLRDD.
Un saludo, Best regards,
Harbour 3.2.0dev, Borland C++ 5.82 y FWH 13.06 [producción]
Implementando MSVC 2010, FWH64 y ADO.
Abandonando uso xHarbour y SQLRDD.
- nageswaragunupudi
- Posts: 10721
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Been thanked: 8 times
- Contact:
Re: SQLITE ODBC
Mr Lucas
You can make it simple if you use FWH13.05
You can make it simple if you use FWH13.05
Code: Select all | Expand
#include "fwsqlcmd.ch"
...........
cSql := SQL INSERT INTO bestand (DATA), VALUES ( Date() )
// The above is translated into the syntax that SQL Server understands
// if you like you can examine by ? cSql
oCn:Execute( cSql )
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
-
- Posts: 1163
- Joined: Mon Oct 17, 2005 5:41 am
- Location: Belgium
- Contact:
Re: SQLITE ODBC
lucasdebeltran wrote:Marc,
And how do you deal with dates?-
INSERT INTO bestand (DATA), VALUES DTOC(DATE()) shows nill on the record,
Thanks.
You have to transform the date to 'YYYY-MM-DD'
Code: Select all | Expand
INSERT INTO bestand (DATA), VALUES sqldate(DATE())
FUNCTION sqlddate(vdatum)
RETURN '"'+PadL( Year( vdatum), 4, '0' )+'-'+PadL( Month( vdatum), 2, '0' )+'-'+PadL( Day( vdatum), 2, '0' )+'"'
Regards,
Marc
FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc
FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite