Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sqlserver CASE WHEN.. THEN ... END doesn't work with vfp
Message
From
15/01/2011 05:45:04
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
15/01/2011 05:22:00
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:
MS SQL Server
Miscellaneous
Thread ID:
01496269
Message ID:
01496275
Views:
62
>here is an exemple
>
>SELECT Detmvt.NUMDET, case when Detmvt.SENS=1 then 'DEBIT' else 'CREDIT' end as libelle
>FROM dbo.DETMVT Detmvt
>
>that works on sqlserver side but in vfp 9 remote view this doesn't work.
>here the error message :
>COMMAND CONTAINS UNRECOGNIZED PHRASE/KEYWORD
>
>I don't understand.

That's sql server syntax, and should work on the remote view only, not on VFP data. IOW, you need two views.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform