存储过程------------------------------------------------------------------------------------------------
CREATE PROCEDURE dbo.sptestList
@strOptions varchar(200) = NULL,
@intID int = NULL,
@strOut nvarchar(50) = NULL OUTPUT
AS
SET NOCOUNT ON--不返回影响的行数
SET ANSI_WARNINGS OFF--不返警告
/**//* 信息列表 */
IF @strOptions='LIST' BEGIN
SELECT
id,
name,
subject,
Source
FROM test
WHERE ID <=@intID
SET @strOut = @strOut + 'out'
RETURN 50
END
GO
-------------------------------------------------------------------------
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/huangweizhi/archive/2008/08/19/2796526.aspx