Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to ensure the column length is big enough
Message
De
19/03/2003 23:28:23
Keith Payne
Technical Marketing Solutions
Floride, États-Unis
 
 
À
24/02/2003 08:55:20
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
00756936
Message ID:
00767944
Vues:
8
Mark,

SQL Server doesn't set the field length until the entire query is completed. It will not truncate the results based on the first row like VFP does.

>When creating a view in Sql Server how do I ensure the length of a field returned is kept to a specific zize
>
>In Visual Foxpro I would do this
>SELECT PADR(LEFT(ALLTRIM(sect_desc),25)+" / "+LEFT(ALLTRIM(head_desc),20)+" / "+LEFT(ALLTRIM(item_desc),20)as Myfield
>
>
>But I can not find the equivelant of the PADR() command.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform