Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is it good practice to create temporary dbfs then ....
Message
From
05/01/2006 06:49:07
 
 
To
04/01/2006 13:50:03
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 8 SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01082941
Message ID:
01083465
Views:
15
Another thing to watch for if selecting into a cursor is if some of your source field names are greater than 10 chars long:

1) the cursor's field will be truncated to 10 chars
2) if there are 2 fields with the same 1st 10 chars you'll get an error

>Pretty much the only times I would use a table instead of a cursor is if:
>
>1) You need to keep the results of this query after the program closes (or datasession is closed)
>
>or
>
>2) Since "Select [fields] from [tables] into cursor [cursorName]" most often results in a read only set of records, I would use "into table [tableName]" instead if I intend to modify the data in any way post-select.
>
>In my experience, I'm just using cursors a VERY high percentage of the time rather than temporary tables.
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform