Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crystal / vargraphic datatype (DB2) weirdness?

Status
Not open for further replies.

Jacque

Technical User
Nov 9, 2001
301
US
CRv9
DB2
IBM DB2 ODBC Driver

We’ve run into some weirdness when doing some tests in Crystal v9 on a [machinegun] DB2 database using datatype VARGRAPHIC and I was curious as to if any of you have seen this behavior before. Upon viewing the table in db2 we saw that in the database field shows VARGRAPHIC(512) but when viewing the field in crystal it showed type: STRING, length: 1024. I’m being told that this is crystal showing the byte size not character size. I’ve personally never seen this anomaly but that doesn’t mean that it’s not common. For our ODBC driver, we are using: IBM DB2 ODBC Driver. Can any one shine any light on our issue?

VARGRAPHIC types are varying-length strings of up to 16 336 double-byte characters

Is the length being shown when browsing that number of characters or the number of bytes?

Thanks,
Jacque
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top