Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sqlserver CASE WHEN.. THEN ... END doesn't work with vfp
Message
De
15/01/2011 05:45:04
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
15/01/2011 05:22:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
MS SQL Server
Divers
Thread ID:
01496269
Message ID:
01496275
Vues:
63
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform