Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use AS with logical expr in SQL Server
Message
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
How to use AS with logical expr in SQL Server
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01288504
Message ID:
01288504
Views:
47
I have the following SQL Select in VFP application which I need to adopt for SQL Server:
select STATUS=A AS RULE1 From MyTable
When I pass the above SQL (using SPT) to SQL Server I get error "Incorrect syntax new keyword AS". It must be because SQL Server does not have a logical type and/or it does not support AS.

How can I modify the above SQL Select? RULE1 can have 0 or 1 (not necessarily logical).

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
Next
Reply
Map
View

Click here to load this message in the networking platform