Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I add an empty logical field to my SQLselect?
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01207912
Message ID:
01207964
Views:
22
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform