Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Col type BIT in SQL Select
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01534986
Message ID:
01534992
Vues:
50
>>>Hi,
>>>
>>>I have a column/field which is Logical in VFP and BIT (not NULL) in SQL Server. The segment of SQL Select statement dealing with this column looks like this:
>>>
>>>
>>>where TABLE.Field1  order by <someother>
>>>
>>>
>>>When executing this SQLSelect against SQL Server the error says:
>>>
>>>"Non-boolean type specified in context where a condition is expected, new 'order'"
>>>
>>>Do I understand that - for SQL Server backend - I must modify the SQL Select to have this column as TABLE.Field1 = 1 ?
>>>
>>>TIA.
>>
>>yes.
>
>You can also do
>
>where Table.Field1 = 'true'

Thank you. I will try this approach with both VFP and SQL Server so that I don't have to have change the code for each.
"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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform