Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
APPEND FROM [SQL Cursor]
Message
De
23/12/2008 04:50:28
 
 
À
22/12/2008 08:57:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Database:
Visual FoxPro
Divers
Thread ID:
01369081
Message ID:
01369303
Vues:
15
>I am having a problem doing an APPEND FROM from an SQL cursor. The code looks like this:
>
>SELECT [blah blah blah] INTO CURSOR MyCursor2 NOFILTER
>SELECT MyCursor1 && this is an SQL cursor, not a table
>APPEND FROM DBF("MyCursor2")
>
>This failed with the message "File '[fullpath file name].tmp' does not exist".
>This happens even though I looked in the DataSession window and found the cursor (MyCursor2).
>
>This code also fails: APPEND FROM DBF(ALIAS("MyCursor2"))
>
>However, very strangely, if I execute the code "Select MyCursor2", it works!
>Any ideas?
>
>BTW, the SQL Select that created MyCursor2 includes a GROUP BY clause.
>
>I have a workaround: I select the cursor MyCursor2, scan through it, and copy it row by row into MyCursor1. This works, but I would like to use the APPEND FROM if possible.
>
>It's very perplexing. Thanks for any help.


check it with
SELECT [blah blah blah] INTO CURSOR MyCursor2 NOFILTER
* MyCursor2 dbf exists ?
wait windows FILE(DBF("MyCursor2"))
SELECT MyCursor1 && this is an SQL cursor, not a table
APPEND FROM DBF("MyCursor2")
try
SELECT [blah blah blah] INTO CURSOR MyCursor2 READWRITE
....
BUT! you can to use this:
INSERT INTO MyCursor1 SELECT [blah blah blah]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform