﻿CREATE PROCEDURE [dbo].[sp_ChannelSettingsUpdate]
				@Id						int,
				@DefaultValue           NVARCHAR(255),
				@errorNumber		int OUTPUT,
				@errorMessage		NVARCHAR (255) OUTPUT
AS
BEGIN
	SET @errorMessage = ''
	SET @errorNumber = 0

	UPDATE [dbo].[ChannelSettings] SET [DefaultValue]=@DefaultValue WHERE [Id]=@Id
	
	IF(@@error != 0)
	BEGIN
		SET @errorNumber = error_number()
		SET @errorMessage = error_message()
	END
END


