Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Select expression for both VFP and SQL DB
Message
 
 
To
29/03/2019 05:57:30
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01667660
Message ID:
01667682
Views:
44
>>Hi,
>>
>>I have an expression that works SQL Server DB:
>>
>>select  CAST(0 AS BIT) AS MYFIELD
>>
>>
>>Of course the above will not work for VFP. Is there a way to change the expression above that it would create a calculated logical field in VFP as well as SQL DB?
>
>select .f. as myfield
>
>There are no bit constants in TSQL, i.e. you can't have a bit expression there, you must cast it. So there's no way to have the same expression in VFP SQL and TSQL for a logical/bit value.

Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform