>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.