Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Verifying two SQL commands
Message
 
 
To
20/02/2008 15:42:45
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01294455
Message ID:
01294468
Views:
23
>>Try
>>SELECT * From MyTable WHERE LEN(RTRIM(MyField))>0
>>
>
>Is this supported as is in SQL Server?
>
>Also, if it is, then the minor difference with mine would only be to use RTRIM instead of ALLTRIM. Could you elaborate on that topic as to know why you suggest RTRIM? Is it because it is supported in SQL Server as well?

Yes, it's supported by VFP and SQL Server. It's redundant on SQL Server because LEN() there doesn't count trailing spaces.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform