﻿ALTER PROCEDURE [dbo].[sp_TestSetupHardwareUpdate]
		    @DASId					INT, 
			@TestSetupId			INT, 
			@AddOrRemove			BIT,
			@SamplesPerSecond		FLOAT,
			@IsClockMaster			BIT,
			@AntiAliasFilterRate	FLOAT,
			@errorNumber			INT OUTPUT,
			@errorMessage			NVARCHAR(255) OUTPUT
AS
BEGIN
	SET @errorNumber = 0; 	
	SET @errorMessage = space(0);

	UPDATE [dbo].[TestSetupHardware] SET [AddOrRemove]=@AddOrRemove, [SamplesPerSecond]=@SamplesPerSecond, [IsClockMaster]=@IsClockMaster, [AntiAliasFilterRate]=@AntiAliasFilterRate WHERE [DASId]=@DASId AND [TestSetupId]=@TestSetupId

	IF(@@error != 0)
	BEGIN
		SET @errorNumber = ERROR_NUMBER()
		SET @errorMessage = ERROR_MESSAGE()
	END
END