On 2014-03-12 09:24, Paul Newton wrote:
Hi all
The following two statements work as expected when executed against
SQL server and return two rows
Select pn_bic,pn_iban,pn_bankac,pn_banksor ;
from pname ;
where Ltrim(Rtrim(pn_bic)) <> '' and Ltrim(Rtrim(pn_iban)) <> '' and
Ltrim(Rtrim(pn_bankac)) <> '' and Ltrim(Rtrim(pn_banksor)) <> ''
Select pn_bic,pn_iban,pn_bankac,pn_banksor
from pname ;
where '' <> Ltrim(Rtrim(pn_bic)) and '' <> Ltrim(Rtrim(pn_iban)) and
'' <> Ltrim(Rtrim(pn_bankac)) and '' <> Ltrim(Rtrim(pn_banksor))
When executed against VFP (same data) no results are returned. I have
tried SET EXACT ON and OFF and have tested with ENGINEBEHAVIOR 70, 80
and 90. Am I missing something blindingly obvious?
The workaround is to use Not Empty(pn_bic) etc but I do not understand
why neither of the two statements above works.
Many thanks
What's the SET ANSI setting?
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.