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

73 lines
1.7 KiB
Transact-SQL
Raw 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_TestSetupHardwareInsert] Script Date: 2/6/2019 2:23:43 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[sp_TestSetupHardwareInsert]
@DASId INT,
@TestSetupId INT,
@AddOrRemove BIT,
@SamplesPerSecond 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]) VALUES (@DASId, @TestSetupId, @AddOrRemove, @SamplesPerSecond)
IF(@@error != 0)
BEGIN
SET @errorNumber = ERROR_NUMBER()
SET @errorMessage = ERROR_MESSAGE()
END
END