Stored Procedure Icon dbo.Moderate_GetPostHistory

Stored Procedure Properties

Name Value
Owner dbo
Created 2004-05-31
Startup False
Encrypted False

Creation Options

Name Value
QUOTED_IDENTIFIER ON
ANSI_NULLS ON

Parameters

Name DataType Length Type
@PostID int 4 INPUT
@UserName nvarchar 100 INPUT

Total: 2 parameter(s)

SQL

SET QUOTED_IDENTIFIER ON 
GO
SET ANSI_NULLS ON 
GO


create procedure Moderate_GetPostHistory(
	@PostID int,
	@UserName nvarchar(50)
)
AS
BEGIN
SELECT
	ModeratedOn,
	ModeratedBy,
	Description,
	Notes
FROM
	ModerationAction,
	ModerationAudit
WHERE
	ModerationAction.ModerationAction = ModerationAudit.ModerationAction AND
	PostID = @PostID	
END


GO
SET QUOTED_IDENTIFIER OFF 
GO
SET ANSI_NULLS ON 
GO


					

Generated on 26/08/2004 15:05:34 by DataAide.