Stored Procedure Icon dbo.forums_ToggleOptions

Stored Procedure Properties

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

Creation Options

Name Value
QUOTED_IDENTIFIER OFF
ANSI_NULLS ON

Parameters

Name DataType Length Type
@UserName nvarchar 100 INPUT
@HideReadThreads bit 1 INPUT
@FlatView bit 1 INPUT

Total: 3 parameter(s)

SQL

SET QUOTED_IDENTIFIER OFF 
GO
SET ANSI_NULLS ON 
GO




CREATE  procedure forums_ToggleOptions 
(
	@UserName nvarchar(50),
	@HideReadThreads bit,
	@FlatView bit
)
AS

IF @FlatView IS NULL
	UPDATE
		Users
	SET
		ShowUnreadTopicsOnly = @HideReadThreads
	WHERE
		Username = @UserName
ELSE
	UPDATE
		Users
	SET
		ShowUnreadTopicsOnly = @HideReadThreads,
		FlatView = @FlatView
	WHERE
		Username = @UserName







GO
SET QUOTED_IDENTIFIER OFF 
GO
SET ANSI_NULLS ON 
GO


					

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