Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Code equivalent to VFP
Message
From
24/02/2014 11:04:23
 
 
To
24/02/2014 10:59:55
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2008 R2
Application:
Desktop
Miscellaneous
Thread ID:
01595045
Message ID:
01595050
Views:
43
>>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.
>
>like this ?
>
>
>select right(space(20) + RTRIM(emNumber), 20) as result
>	  from @tmp
>	  order by 1;
>
Thanks, exactly like this!
Christian Isberner
Software Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform