Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I add an empty logical field to my SQLselect?
Message
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
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01207912
Message ID:
01207964
Vues:
21
>>However, if you want to run your statement against different back-end, you would not always be able to convert to desired field type if the backend doesn't support it. In this case you can have a cursor with needed structure and append from the resulting cursor.
>
>Yes I saw the error when the message was saved. It should be Ltrim or Rtrim instead of Alltrim.
>
>Yes, CAST works on local tables, but not with SQLselect to SQLserver 2005.
>So my exampe is the only way I know, to make an empty memofield.
>
>Thakyou for your answer
>/Kjell

See Borislav's answer for a solution using CAST(0 as bit)
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform