I have the following code: INSERT INTO <my_data_dictionary_adt_table> SELECT * FROM "MY_DBF_FREE_TABLE"; But this throw an undocumented error: NativeError = 2004; [iAnywhere Solutions][Advantage SQL Engine][ISAM]ISAM error

ADS Version 10.0.49 Server OS: Windows 2008 R2 Standard SP1

Any clue? Thanks, Titus

asked 23 Jan '16, 23:33

Titus's gravatar image

Titus
466611
accept rate: 0%


a detailled error might be logged in ads_err.adt. I guess the structure of the source and the destination don't fit. To prevent such structure issues, specify the columns:

INSERT INTO mytable(col1, col2, col3) SELECT col1,col2,col3 FROM myothertable
btw: if myothertable is a free DBF table, make sure to specify CDX as table type in the connection string.

link

answered 24 Jan '16, 14:59

Joachim%20Duerr's gravatar image

Joachim Duerr
8.7k1031133
accept rate: 18%

No, the structure is a perfect match, including fields order and size. And yes, the connection use CDX as table type.

I found the source of the error, null values in SELECT but this is quite odd because <my_data_dictionary_adt_table> accept null values being ADT type.

Also on a test machine using exactly the same ADS version and DD configuration but a different OD (Win7) all is working fine.

(24 Jan '16, 17:26) Titus
Your answer to the original question.
If responding to a request for additional information, please edit the question or use the comment functionality.
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×30

Asked: 23 Jan '16, 23:33

Seen: 2,034 times

Last updated: 24 Jan '16, 17:28

Advantage Developer Zone Contact Us Privacy Policy Copyright Info


Powered by Advantage Database Server and OSQA
Disclaimer: Opinions expressed here are those of the poster and do not necessarily reflect the views of the company.