Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PADL() equivalent in SQL Server
Message
From
10/04/2003 10:34:12
Liam O'Hagan
O'Hagan Programming Ltd
Ireland
 
 
To
10/04/2003 10:30:55
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00776019
Message ID:
00776056
Views:
91
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
Previous
Reply
Map
View

Click here to load this message in the networking platform