Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Output Parameter
Message
From
04/09/2001 22:37:33
 
 
To
04/09/2001 20:44:20
Victor Lapid
Phil. Long Distance Tel. Co.
Manila, Philippines
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
00552277
Message ID:
00552304
Views:
17
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform