ALTER PROCEDURE [dbo].[sp_SensorsDigitalInUpdate]
		 @SerialNumber		nvarchar(50)
		,@SettingMode		int
		,@ScaleMultiplier	nvarchar(50)
		,@LastModified		datetime
		,@LastModifiedBy	nvarchar(50)
		,@eId				nvarchar(50)
		,@UserValue1		nvarchar(255)
		,@UserValue2		nvarchar(255)
		,@UserValue3		nvarchar(255)
		,@UserTags			varbinary(max)
		,@MeasurementUnit	nvarchar(50)
		,@errorNumber		int				output
		,@errorMessage		nvarchar(250)	output
AS
BEGIN
	set @errorNumber = 0 
	set @errorMessage = space(0)


UPDATE [dbo].[SensorsDigitalIn]
   SET [SettingMode]		= @SettingMode		
      ,[ScaleMultiplier]	= @ScaleMultiplier	
      ,[LastModified]		= @LastModified		
      ,[LastModifiedBy]		= @LastModifiedBy	
      ,[eId]				= @eId			
      ,[UserValue1]			= @UserValue1		
      ,[UserValue2]			= @UserValue2		
      ,[UserValue3]			= @UserValue3		
      ,[UserTags]			= @UserTags
	  ,[MeasurementUnit]	= @MeasurementUnit			
 where SerialNumber = @SerialNumber
END
