Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Odbc and key searches in remote views on SQL
Message
 
 
To
12/12/2003 13:19:32
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00858692
Message ID:
00858695
Views:
13
>Hi All,
>
>I have a primary key setup on a remote view from an ODBC connection. Im trying to use some sort of lookup that is fast like seek() is on VFP tables.
>
>Currently, Im using the e.g (LOCATE FOR mykey = '1234 '; OR LOCATE FOR '1234 ' $ mykey), but not sure if this is the best way or most efficient way to do this on a remote view.
>
>Am I on the right track, or is there a better way to access a specific record on a remote view.
>
>Thanks in advance, I appreciate any input on this.

Craig,

You can create an index on the key fileld after view is open and use SEEK() as you would on a table or cursor. Which way is better depends on the size of the view and how often you've to locate a record.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform