Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SKIP command: how to implement in SQL
Message
From
13/07/1998 12:03:20
 
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00116163
Message ID:
00116805
Views:
19
>>>Thanks in advance for any suggestion
>>
>>You could use TOP clause of SQL:
>>
>>

>>currentkey = crsr.key
>>SELECT TOP 1 * FROM table WHERE table.key>currentkey INTO CURSOR crsr
>>
>>
>>this works for next record and use < for previous record.
>>
>><\PRE>
>
>Thanks to all for your ideas,
>In this weekend I've thought to something like to Fred's suggestion.
>Can you tell mes something about no-batch mode to have the SQL results usign the SQLMORERESULT(), doesn't it seem like to skip record by record ?
>
>Thanks

Im not familiar with the use of SQLMORERESULTS(). From its description, if you're set to retrieve 1 record at a time, it sounds like that may work. But I have no idea what kind of impact that has at the back-end, it that keeps SQL server tied up or not, waiting for your next request to deliver the next result set. All I can say is, try it!
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform