Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Output Parameter
Message
De
04/09/2001 22:37:33
 
 
À
04/09/2001 20:44:20
Victor Lapid
Phil. Long Distance Tel. Co.
Manila, Philippines
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
00552277
Message ID:
00552304
Vues:
16
>I've seen in an article that using Output parameters is much faster in performance than returning a recorset if you are returning single value or row of data.
>
>Any example code on how to create output parameter in a stored procedure that returns for example account,telno and address.
>
>TIA.

CREATE PROC getstuff
(@account varchar(20) OUTPUT
,@telno varchar(10) OUTPUT
,@address varchar(50) OUTPUT
,@pk int
)
AS

SET NOCOUNT ON

SELECT @account = account
,@telno = telno
,@address = address
FROM MyTable
WHERE pk = @pk

RETURN


BOb
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform