ALTER PROCEDURE [dbo].[up_AddTechnologySet]
@TechnologySetCode as NVARCHAR(10),
@TechnologySetName as NVARCHAR(255),
@TechnologySetType as NVARCHAR(2),
@IsActive AS Bit,
@Notes AS NVARCHAR(MAX),
@UserID as Nvarchar(255)
AS
DECLARE @TimeStamp as datetime
set @TimeStamp = CURRENT_TIMESTAMP
BEGIN TRAN
BEGIN TRY
INSERT INTO dbo.LtbTechnologySet
(
TechnologySetCode ,
TechnologySetName ,
TechnologySetType ,
IsActive ,
Notes ,
TimeStamp ,
UserId
)
VALUES
(
@TechnologySetCode, @TechnologySetName, @TechnologySetType, @IsActive, @Notes, @TimeStamp , @UserID
)
COMMIT TRAN
END TRY
BEGIN CATCH
RAISERROR('Insert Cancelled', 16, 1)
ROLLBACK TRAN
END CATCH
|