I am trying to find the lenth of the data field from within a query rather than using the design time literal value of the field length.
a.datafield1+replicate('0',4-len(a.datafield2))+a.datafield2
Here I have used the literal value '4'.
I would be grateful if someone could help me to get this value using an SQL function or something similar. Because this field length could be changed in the future.
Many thanks in advance
Sivi
a.datafield1+replicate('0',4-len(a.datafield2))+a.datafield2
Here I have used the literal value '4'.
I would be grateful if someone could help me to get this value using an SQL function or something similar. Because this field length could be changed in the future.
Many thanks in advance
Sivi