Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning values from an SQL stored procedure
Message
 
 
À
03/08/2004 10:09:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00930255
Message ID:
00930345
Vues:
19
>For the sake of confusion, and my stupidity, could you show both pieces of code in full?
>
Sure,
* VFP 
lcParam1 = 'MyPCName'
lnID = 0
=SQLExec(lnConnection, "execute ApplicationLoginInsert1 ?lcParam1, ?@lnID")
...
-- SQL Server
CREATE Procedure ApplicationLoginInsert1 
  @lcParam1 varchar(128), 
  @ID int OUTPUT
insert into ApplicationLogin (Login_PC) values (@lcParam1)
SET @ID = SCOPE_IDENTITY()
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform