Hi, For your ref
SQL Server 2000 stored procedures return data in four ways: Output parameters,Return codes,A result set for each SELECT statement,A global cursor that can be referenced outside the stored procedure.
e.g.
CREATE PROCEDURE GetAuthorsByLastName(@au_lname varchar(20))
AS
select * from authors where au_lname=@au_lname;
GO