FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WEBDEV 2024
→
PROBLEM: string values from database padded with blanks (OLE DB / ODBC)
PROBLEM: string values from database padded with blanks (OLE DB / ODBC)
Débuté par vvido, 04 oct. 2018 11:34 - 2 réponses
Connectez-vous…
vvido
#1
Membre enregistré
94 messages
Posté le 04 octobre 2018 - 11:34
Connection type: OLE DB / ODBC
Database: Ms Sql Server 2012
When I read the values of string columns from the database, the returned values are padded with blanks to the full size defined in the analysis.
The strings in the database are stored correctly without blanks at the end of string. (If I run the len query in the database: 'test 1' length is 6; 'test 123' length is
.
But when I get the values and display them in the table or form, all strings from this column in database are same size (the length defined in the analysis) - blank characters are added at the end.
QUESTION: which 'Extended information' in the 'Advanced' tab of Connection information should be used to avoid blank padding of database strings ?
Signaler
0
0
Alphakush
#2
Membre enregistré
30 messages
Posté le 10 octobre 2018 - 16:29
Hey,
Why not use the function NoSpace("string", sscRight) ? Don't know if it can help you, or if you already tried this..
Signaler
0
0
vvido
#3
Membre enregistré
94 messages
Posté le 11 octobre 2018 - 10:56
Thanks for your suggestion, but this only solves the individual string padding after it has been read from the database.
I would like the driver to perform this action instead of running such code after each read from the database.
Signaler
0
0
→ Revenir à WEBDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte