Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is SPT equivalent of NODATA ?
Message
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00463996
Message ID:
00464155
Views:
19
>What is the equivalent in SQL-server SQL pass-through of NODATA ? I.e how can I force an empty cursor -- efficiently? (This must be a dumb question!)

What VFP sends to SQL Server when you especify NODATA is "SET FMTONLY ON/OFF" For example, if you open a view that queries the EMPLOYEE table with NODATA, VFP will send:

set fmtonly on
select * from employee
set fmtonly off

Yet, sending "select * from employee where 1=0" seems to be equally effective
Hector Correa
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform