Files
DP44/DataPRO_sql/dbo.sp_TestSetupHardwareUpdate.sql
2026-04-17 14:55:32 -04:00

77 lines
1.7 KiB
Transact-SQL
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
USE [DataPRO]
GO
/****** Object: StoredProcedure [dbo].[sp_TestSetupHardwareUpdate] Script Date: 2/6/2019 2:25:42 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[sp_TestSetupHardwareUpdate]
@DASId INT,
@TestSetupId INT,
@AddOrRemove BIT,
@SamplesPerSecond 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 WHERE [DASId]=@DASId AND [TestSetupId]=@TestSetupId
IF(@@error != 0)
BEGIN
SET @errorNumber = ERROR_NUMBER()
SET @errorMessage = ERROR_MESSAGE()
END
END