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.
There are certain data types in 4D that will cause problems. For example I know blob, interval, and int64 can be trouble.
On thing you can do though is cast the fields into VARCHAR in your select statement to 4D.
Like:
What version of the driver are you using? I've been using 12.02 but I know there are newer versions that have fixed some bugs, I'm just not sure how to get ahold of them.