Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Code equivalent to VFP
Message
De
24/02/2014 12:54:02
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2008 R2
Application:
Desktop
Divers
Thread ID:
01595045
Message ID:
01595060
Vues:
59
This message has been marked as a message which has helped to the initial question of the thread.
>I have a VFP query which I need to convert to SQL Server code, but obviously it is the wrong syntax.
>
>SELECT PADL(TRIM(emNumber), 99) From Employees
>
>It 's supposed to order a character value as if it is a numeric field, but the values can also contain characters to a conversion to numeric would not do it.

Try this:

SELECT RIGHT(SPACE(100) +LTRIM(emNumber), 99) from Employees
Anyone who does not go overboard- deserves to.
Malcolm Forbes, Sr.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform