Hi,
C++ Builder 6.0 Enterprise
BDE Admin 5.01
XP SP3
Ingres 9.3/Oracle 10g
I have a DB query which is being displayed in a DBGrid. This used to previously run against Oracle 10g with no problem. I'm now trying to get it to work with Ingres, and I'm having trouble with varchars.
If the length of the varchar exceeds 255 it's being returned as a memo field so in my DBGrid all I get is "(MEMO)" and not the text. As far as Ingres is concerned the max length of a varchar is 32000 so the problem isn't there, (as far as I can tell), so it must be in the ODBC/BDE/C++ communication somewhere. (I think!)
I cant find any settings in the BDE Admin or ODBC Admin screens that would suggest a limit on the varchar length.
The field in question is created by concatenating several table columns together, and it is the total length of the column sizes and not the data returned that is effecting the switch from varchar to memo. (The query actually returns the first 80 chars, but the column sizes add up to 1000 chars.)
Are there any settings somewhere that will change this cut over from varchar to memo?
or
How do I get it to display the content of the memo and not just "(MEMO)" on the screen? (The DBGrid is populated by assigning the table column from the query so I cant use object->text or object->value to get it.)
or
Is it possible to override the data types the DBGrid is using and assign my own?
Thanks.
C++ Builder 6.0 Enterprise
BDE Admin 5.01
XP SP3
Ingres 9.3/Oracle 10g
I have a DB query which is being displayed in a DBGrid. This used to previously run against Oracle 10g with no problem. I'm now trying to get it to work with Ingres, and I'm having trouble with varchars.
If the length of the varchar exceeds 255 it's being returned as a memo field so in my DBGrid all I get is "(MEMO)" and not the text. As far as Ingres is concerned the max length of a varchar is 32000 so the problem isn't there, (as far as I can tell), so it must be in the ODBC/BDE/C++ communication somewhere. (I think!)
I cant find any settings in the BDE Admin or ODBC Admin screens that would suggest a limit on the varchar length.
The field in question is created by concatenating several table columns together, and it is the total length of the column sizes and not the data returned that is effecting the switch from varchar to memo. (The query actually returns the first 80 chars, but the column sizes add up to 1000 chars.)
Are there any settings somewhere that will change this cut over from varchar to memo?
or
How do I get it to display the content of the memo and not just "(MEMO)" on the screen? (The DBGrid is populated by assigning the table column from the query so I cant use object->text or object->value to get it.)
or
Is it possible to override the data types the DBGrid is using and assign my own?
Thanks.