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.
77 lines
1.6 KiB
77 lines
1.6 KiB
USE [Vertragsverwaltung]
|
|
GO
|
|
|
|
/****** Object: StoredProcedure [dbo].[pr_GremiumPerson_Insert] Script Date: 23.04.2013 08:11:28 ******/
|
|
DROP PROCEDURE [dbo].[pr_GremiumPerson_Insert]
|
|
GO
|
|
|
|
/****** Object: StoredProcedure [dbo].[pr_GremiumPerson_Insert] Script Date: 23.04.2013 08:11:28 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
|
|
|
|
---------------------------------------------------------------------------------
|
|
-- Stored procedure that will insert 1 row in the table 'GremiumPerson'
|
|
-- Gets: @iGreminPersonNr int
|
|
-- Gets: @iGremiumBereichNr int
|
|
-- Gets: @iPersonNr int
|
|
-- Gets: @bLeitung bit
|
|
-- Gets: @bAktiv bit
|
|
-- Gets: @iRolleNr int
|
|
-- Gets: @daErstellt_am datetime
|
|
-- Gets: @daMutiert_am datetime
|
|
-- Gets: @iMutierer int
|
|
-- Gets: @sBeschreibung varchar(50)
|
|
-- Returns: @iErrorCode int
|
|
---------------------------------------------------------------------------------
|
|
CREATE PROCEDURE [dbo].[pr_GremiumPerson_Insert]
|
|
@iGreminPersonNr int,
|
|
@iGremiumBereichNr int,
|
|
@iPersonNr int,
|
|
@bLeitung bit,
|
|
@bAktiv bit,
|
|
@iRolleNr int,
|
|
@daErstellt_am datetime,
|
|
@daMutiert_am datetime,
|
|
@iMutierer int,
|
|
@sBeschreibung varchar(50),
|
|
@iErrorCode int OUTPUT
|
|
AS
|
|
SET NOCOUNT ON
|
|
-- INSERT a new row in the table.
|
|
INSERT [dbo].[GremiumPerson]
|
|
(
|
|
[GreminPersonNr],
|
|
[GremiumBereichNr],
|
|
[PersonNr],
|
|
[Leitung],
|
|
[Aktiv],
|
|
[RolleNr],
|
|
[Erstellt_am],
|
|
[Mutiert_am],
|
|
[Mutierer],
|
|
[Beschreibung]
|
|
)
|
|
VALUES
|
|
(
|
|
@iGreminPersonNr,
|
|
@iGremiumBereichNr,
|
|
@iPersonNr,
|
|
@bLeitung,
|
|
@bAktiv,
|
|
8,
|
|
@daErstellt_am,
|
|
@daMutiert_am,
|
|
@iMutierer,
|
|
@sBeschreibung
|
|
)
|
|
-- Get the Error Code for the statement just executed.
|
|
SELECT @iErrorCode=@@ERROR
|
|
|
|
GO
|
|
|
|
|