Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SPT and getting 1 record only
Message
From
19/08/2000 08:21:38
Cindy Winegarden
Duke University Medical Center
Durham, North Carolina, United States
 
 
To
19/08/2000 06:20:45
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00407001
Message ID:
00407009
Views:
28
Vijay,

If you're doing SQL Pass-through, you retrieve only the records you specifically ask for. What can you say about the first record that makes it unique?

If you're using SELECT TOP(1) ... you would have to order by some criteria, and if there is a "tie" for first you may actually get more than one record.


>Hi All,
>
>How can I get only one row using SPT? I could think of MaxRecords property but that if use it will be something like
>
=CURSORSETPROP("MaxRecords", 1, "MyCursor")
>In this case, I guess the remote server would have already fetched the entire result into cursor "mycursor" resultset even though I am interested in the 1st record of the result set and causing network delay. Am I missing something here?
>
>Thanks in advance
>
>Regards
>Vijay
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform