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.
71 lines
3.9 KiB
71 lines
3.9 KiB
USE [Vertragsverwaltung_20160404]
|
|
GO
|
|
/****** Object: StoredProcedure [dbo].[pr_Mitarbeiter_Auswertungsparameter_Insert] Script Date: 02.12.2016 09:08:54 ******/
|
|
DROP PROCEDURE [dbo].[pr_Mitarbeiter_Auswertungsparameter_Insert]
|
|
GO
|
|
/****** Object: StoredProcedure [dbo].[pr_Mitarbeiter_Auswertungsparameter_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 'Mitarbeiter_Auswertungsparameter'
|
|
-- Gets: @iMitarbeiternr int
|
|
-- Gets: @iAuswertungnr int
|
|
-- Gets: @sBeschreibung varchar(255)
|
|
-- Gets: @sParameterdaten varchar(1024)
|
|
-- Gets: @sTitelzeile1 varchar(255)
|
|
-- Gets: @sTitelzeile2 varchar(255)
|
|
-- Gets: @bParamPrint bit
|
|
-- Gets: @sSQLWhere varchar(1024)
|
|
-- Returns: @iMitarbeiter_AuswertungsparameterNr int
|
|
-- Returns: @iErrorCode int
|
|
---------------------------------------------------------------------------------
|
|
CREATE PROCEDURE [dbo].[pr_Mitarbeiter_Auswertungsparameter_Insert]
|
|
@iMitarbeiternr int,
|
|
@iAuswertungnr int,
|
|
@sBeschreibung varchar(255),
|
|
@sParameterdaten varchar(1024),
|
|
@sTitelzeile1 varchar(255),
|
|
@sTitelzeile2 varchar(255),
|
|
@bParamPrint bit,
|
|
@sSQLWhere varchar(1024),
|
|
@iMitarbeiter_AuswertungsparameterNr int OUTPUT,
|
|
@iErrorCode int OUTPUT
|
|
AS
|
|
SET NOCOUNT ON
|
|
-- INSERT a new row in the table.
|
|
INSERT [dbo].[Mitarbeiter_Auswertungsparameter]
|
|
(
|
|
[Mitarbeiternr],
|
|
[Auswertungnr],
|
|
[Beschreibung],
|
|
[Parameterdaten],
|
|
[Titelzeile1],
|
|
[Titelzeile2],
|
|
[ParamPrint],
|
|
[SQLWhere]
|
|
)
|
|
VALUES
|
|
(
|
|
@iMitarbeiternr,
|
|
@iAuswertungnr,
|
|
@sBeschreibung,
|
|
@sParameterdaten,
|
|
@sTitelzeile1,
|
|
@sTitelzeile2,
|
|
@bParamPrint,
|
|
@sSQLWhere
|
|
)
|
|
-- Get the Error Code for the statement just executed.
|
|
SELECT @iErrorCode=@@ERROR
|
|
-- Get the IDENTITY value for the row just inserted.
|
|
SELECT @iMitarbeiter_AuswertungsparameterNr=SCOPE_IDENTITY()
|
|
|
|
|
|
|
|
GO
|