Skip to main content

[archive] AcuXDBC Enterprise --> JDBC-Interface

  • April 18, 2007
  • 1 reply
  • 0 views

[Migrated content. Thread originally posted on 18 April 2007]

In JAVA we use the JDBC-Interface of AcuXDBC Enterprise to have access to the VISION-Files. Here the ERROR-Message "Too many Columns" appears.

We know this Message from AcuXDBC Client. By increasing "Maximum Columns" on the register "Advanced" of "ODBC-Sources" (on the side of AcuXDBC client), we solved this. In this case the default value of AcuXDBC is just to low for the number of fields in our record.

How can we do this by using the JDBC-Interface of AcuXDBC Enterpris?


Regards
Frank-Peter Clees

1 reply

[Migrated content. Thread originally posted on 18 April 2007]

In JAVA we use the JDBC-Interface of AcuXDBC Enterprise to have access to the VISION-Files. Here the ERROR-Message "Too many Columns" appears.

We know this Message from AcuXDBC Client. By increasing "Maximum Columns" on the register "Advanced" of "ODBC-Sources" (on the side of AcuXDBC client), we solved this. In this case the default value of AcuXDBC is just to low for the number of fields in our record.

How can we do this by using the JDBC-Interface of AcuXDBC Enterpris?


Regards
Frank-Peter Clees
If anyone else wants to increase the "Maximum Columns" you have to add two columns to the example of the online documentation in chapter "8.2 Working with Java Applications":

1.
after the row
import java.sql. *;
you have to add
import java.util.Properties;

2.
after the row
Class.forName ("vortex.sql.vortexDriver ...
you have to add
info.put("max_columns", "1024");
before row
Connection conn = DriverManager.getConnection(url,info);

The default value is 256 and the maximum value is 8191, same range as ODBC.


Regards
Frank-Peter Clees