Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PADL() equivalent in SQL Server
Message
De
10/04/2003 10:34:12
Liam O'Hagan
O'Hagan Programming Ltd
Irlande
 
 
À
10/04/2003 10:30:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00776019
Message ID:
00776056
Vues:
97
Hi Michael,

I don't understand why it doesn't work for you. I copied and pasted the line from the web page directly into Query Analyzer and it worked perfectly. What error are you getting?

Liam




>>Left out the second arg for IsNull()...
>>
>>
SELECT IsNull(Replicate(' ',20-len(STR(MONTH(AddDate)))),'')+STR(MONTH(AddDate)) FROM News
>
>This doesn't work either:
>
>
>SELECT ISNULL(REPLICATE('0',2-LEN(STR(MONTH(AddDate)))),'')+STR(MONTH(AddDate)) FROM News
>
Liam O'Hagan
MCP VFP Desktop Apps
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform