Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Next Number generator
Message
De
24/07/2001 14:02:13
 
 
À
24/07/2001 08:21:15
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00533898
Message ID:
00534542
Vues:
31
>Then how is the nnid returned to the user?

@nnid is a variable. You have three choices for returning it from a stored procedure:

1 - as a recordset

SELECT @nnid

2 - in an output parameter

CREATE PROCEDURE nextid
@token varchar(10), @nnid integer OUTPUT

3 - As a return value

RETURN @nnid

(not recommended. By convention, the return value of a stored procedure is used to indicate status)

-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform