I have a 4D database that I'm trying to get data from (and export to an SQL DB) using their ODBC Driver.
Most of the tables I can read, so I know the driver works.
But I have 5 tables that throw 4 diferent exceptions in the Fill method of the OdbcDataAdapter.
- an exception with an empty message
- duplicate column exception(in the doc OdbcDataAdapter Fill should be able to overcome this)
- ERROR [S1000] [Simba][Simba ODBC Driver][Codebase File Library]
- Attempted to read or write protected memory
I'm reading MS documentation, but I dont have access to 4D documentation.
My hope is that someone here as had some experience with this kind of situation and can point me in the right direction.
Thanks in advance.
I'd agree that the 4D ODBC driver is very particular.
Specifically it requires strong type casting. IE
CAST(1 as boolean)
for boolean values.4D also has specific data types picture in addition to blob. See below links
http://docs.4d.com/4Dv14R4/4D/14-R4/Principles-for-integrating-4D-and-the-4D-SQL-engine.300-1733038.en.html
List all the 4D System tables that have schema information http://docs.4d.com/4Dv14R4/4D/14-R4/System-Tables.300-1733035.en.html