You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
3.0 KiB
63 lines
3.0 KiB
USE [Vertragsverwaltung_20160404]
|
|
GO
|
|
/****** Object: StoredProcedure [dbo].[pr_LC_Produkt_Copy_Insert] Script Date: 02.12.2016 09:08:54 ******/
|
|
DROP PROCEDURE [dbo].[pr_LC_Produkt_Copy_Insert]
|
|
GO
|
|
/****** Object: StoredProcedure [dbo].[pr_LC_Produkt_Copy_Insert] Script Date: 02.12.2016 09:08:54 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
|
|
|
|
|
|
---------------------------------------------------------------------------------
|
|
-- Stored procedure that will insert 1 row in the table 'LC_Produkt_Copy'
|
|
-- Gets: @ilc_produkt_copynr int
|
|
-- Gets: @ilc_produkt_parentnr int
|
|
-- Gets: @ilc_produktnr int
|
|
-- Gets: @daerstellt_am datetime
|
|
-- Gets: @damutiert_am datetime
|
|
-- Gets: @imutierer int
|
|
-- Gets: @baktiv bit
|
|
-- Returns: @iErrorCode int
|
|
---------------------------------------------------------------------------------
|
|
CREATE PROCEDURE [dbo].[pr_LC_Produkt_Copy_Insert]
|
|
@ilc_produkt_copynr int,
|
|
@ilc_produkt_parentnr int,
|
|
@ilc_produktnr int,
|
|
@daerstellt_am datetime,
|
|
@damutiert_am datetime,
|
|
@imutierer int,
|
|
@baktiv bit,
|
|
@iErrorCode int OUTPUT
|
|
AS
|
|
SET NOCOUNT ON
|
|
-- INSERT a new row in the table.
|
|
INSERT [dbo].[LC_Produkt_Copy]
|
|
(
|
|
[lc_produkt_copynr],
|
|
[lc_produkt_parentnr],
|
|
[lc_produktnr],
|
|
[erstellt_am],
|
|
[mutiert_am],
|
|
[mutierer],
|
|
[aktiv]
|
|
)
|
|
VALUES
|
|
(
|
|
@ilc_produkt_copynr,
|
|
@ilc_produkt_parentnr,
|
|
@ilc_produktnr,
|
|
@daerstellt_am,
|
|
@damutiert_am,
|
|
@imutierer,
|
|
@baktiv
|
|
)
|
|
-- Get the Error Code for the statement just executed.
|
|
SELECT @iErrorCode=@@ERROR
|
|
|
|
|
|
|
|
GO
|