Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Indexes on SQL
Message
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
Miscellaneous
Thread ID:
00517380
Message ID:
00518825
Views:
18
Well,

As far as I know, you can't get the indexes from SQL Server into a Fox cursor. However, if you're simply trying to re-order the result cursor, you can actually do something like the following once you have retrieved the data from SQL Server:

SELECT * FROM YourCursorName INTO CURSOR YourCursorName ORDER BY YourFieldList

Keep in mind that the above statement is not a pass-through command: this command is written in place of the SET ORDER TO TAG statement that you would normally use.

HTH.

>I'm sorry, maybe my english is not enough good, I tied to get data from indexed SQL table to fox cursor with existed(SQL) indexes. If I get only data I have to index fox cursor in run-time and that is too slow.
>I use
>
>... and !SQLPrepare(.nHandle, "SELECT * FROM "+.cAlias+iif(Empty(.cWhere),""," Where "+.cWhere)+" order by "+.cOrder, .name)<0;
>and !SQLExec(.nHandle)<0;...
>
>command to get data, but after that I have to index that cursor.
>
>Maybe I want too mach? :)
>
>TIA,
>Misha
Travis Vandersypen
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform