Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Stored procedure
Message
 
À
07/09/2004 20:17:59
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00940107
Message ID:
00940147
Vues:
18
Hi Himlar

I think the code gets executed twice because the initialisation process trys to determine the type of the field for the resulting cursor.

I am trying to create a single remote view that will return my nextid and update it in the remote database without having to requery.

Regards
Geoff

>>Hi Hilmar
>>
>
SELECT IIF(not table='CUSTPAYMENT',999999999999,newid('CUSTPAYMENT')) as nextid ;
>>	FROM ids WHERE table='CUSTPAYMENT' INTO CURSOR tNextId
>
>
>I don't know why the SP gets executed twice.
>
>How about a two-step selection, would that solve the problem?
>
>
>SELECT (fieldlist) from ids where WHERE table='CUSTPAYMENT';
>  INTO CURSOR tNextId nofilter
>select *, IIF(not table='CUSTPAYMENT',999999999999,newid('CUSTPAYMENT')) as nextid;
>  from tNextId into cursor tNextId
>
May all your weeds be wildflowers
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform