SELECT Field with Points and Special characters

dietmarruefdietmarruef Member Posts: 48
edited 2001-09-12 in Navision Financials
Hi!

I want to Select a Field with Special characters like "." and "-"
from an externally Program.
I want to do that with SQL and JDBC but it dosn`t work.

For Example: "SELECT 'No.', Description, Class FROM Item";

When I start the Program then this SELECT I get the Error:
java.sql.SQLException: Column name: No. cannot be found in result set

Know anyone a solution for this Problem???

Best regards

Dietmar

Comments

  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    Did you create a Navision-ODBC datasource? There is an option to convert the names of the tables and fields which contains characters as a dot or a space. You have the option to convert this to _ (underscore) so the field "No." becomes "No_"
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • dietmarruefdietmarruef Member Posts: 48
    Thank you! It works great!
Sign In or Register to comment.