Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

ms sql server stored procedure output parameter

Copy CodeCREATE PROCEDURE spGetEmployeeCountByGender
@Gender nvarchar(20),
@EmployeeCount int Output
AS
BEGIN
SELECT @EmployeeCount = COUNT(Id) 
FROM tblEmployee 
WHERE Gender = @Gender
END
Source by www.codeproject.com #
 
PREVIOUS NEXT
Tagged: #ms #sql #server #stored #procedure #output #parameter
ADD COMMENT
Topic
Name
4+8 =