73 lines
1.7 KiB
Transact-SQL
73 lines
1.7 KiB
Transact-SQL
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
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|