Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Return @@rowcount
Message
De
06/01/2001 17:14:26
Paul De Niverville
Deniverville Econometric Research Ltd.
Victoria, Colombie Britannique, Canada
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00460245
Message ID:
00460256
Vues:
7
Thanks Chris,

I'll give this a try and let you know how it went.

Paul

>If you are creating a record set in your stored procedure, the record set will be in SqlResult, provided the SQLEXEC returns 1, so you need to makes sure y = 1 in the above statement.
>
>If successful, you can check the @@ROWCOUNT in VFP indirectly with:
>
>RECCOUNT( "SqlResult" )
>
>You can also pass back @@ROWCOUNT via an OUTPUT parameter in your stored procedure:
>
>CREATE SPROC sp_Calculate
>@RowCnt integer OUTPUT
>AS
> SELECT * FROM TableName
>
> @RowCnt = @@ROWCOUNT
>
>RETURN 0
>
>Then your SQLEXEC becomes:
>
>LOCAL lnRowCount
>
>lnRowCount = 0
>
>IF SQLEXEC(1,'sp_calculate ?@lnRowCount') = 1
>
>ENDIF
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform