65 lines
1.3 KiB
Plaintext
65 lines
1.3 KiB
Plaintext
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|