﻿ALTER PROCEDURE [dbo].[sp_TestSetupHardwareInsert]
		    @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);

	INSERT INTO [dbo].[TestSetupHardware] ([DASId], [TestSetupId], [AddOrRemove], [SamplesPerSecond], [IsClockMaster], [AntiAliasFilterRate]) VALUES (@DASId, @TestSetupId, @AddOrRemove, @SamplesPerSecond, @IsClockMaster, @AntiAliasFilterRate)

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