Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DTS Import has trailing spaces
Message
De
05/06/2001 20:08:56
 
 
À
29/05/2001 00:43:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00512064
Message ID:
00515506
Vues:
19
>I'm trying to trim all of the trailing spaces from data while using a query as the datasource for data imported into SQL 7. However, when I use the expression ltrim(`cust`.`fieldname`), the data is imported with trailing spaces intact. The weird thing is that there are no trailing spaces in the original VFP data. What is happening here? TIA

Rixon,

don't you mean RTRIM?? LTRIM will remove LEADING spaces! Nonetheless, in MS-SQL if you import "ABCDE" into a char(10) field, and then read that back in VFP into a cursor, you will get back "ABCDE " in the cursor's field. This is because the VFP cursor will be defined to char(10) and in VFP fields are always right space-padded to the field length.

-Arne
arne@synercom-edi.com "There are no absolutes but this one."
President, synercom/edi - Event Ticketing Solutions
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform