nkendrick
asked on
Error trying to CAST a timestamp with sun ODBC-JDBC bridge and ireport
Hi,
I am trying to make a unique (but repeatable) reference by concatenating a string with a timestamp as part of an Access 97 query via the Sun ODBC-JDBC connector wit iReport:
tbl_PET_Pet.Pet_Time_Updat ed + tbl_PET_Pet.PET_Pet_Refere nce as uniqueid
The report complains that the textfield cannot be cast from a timestamp to a string so I have tried various permutations in the query, such as:
cast (tbl_PET_Pet.Pet_Time_Upda ted as varchar(20)) + tbl_PET_Pet.PET_Pet_Refere nce as uniqueid,
But the query won't build - Missing Operator.
Am I getting the syntax wrong for an ODBC query?
Any ideas?
Thanks
I am trying to make a unique (but repeatable) reference by concatenating a string with a timestamp as part of an Access 97 query via the Sun ODBC-JDBC connector wit iReport:
tbl_PET_Pet.Pet_Time_Updat
The report complains that the textfield cannot be cast from a timestamp to a string so I have tried various permutations in the query, such as:
cast (tbl_PET_Pet.Pet_Time_Upda
But the query won't build - Missing Operator.
Am I getting the syntax wrong for an ODBC query?
Any ideas?
Thanks
ASKER
Thanks but that still gives the same error message.
I think you need to past the entire query.
Also, what is the backend database server?
Also, what is the backend database server?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
CAST(CAST(tbl_PET_Pet.Pet_