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.
68 lines
4.0 KiB
68 lines
4.0 KiB
USE [Vertragsverwaltung_20160404]
|
|
GO
|
|
/****** Object: StoredProcedure [dbo].[pr_Pendenz_Update] Script Date: 02.12.2016 09:08:54 ******/
|
|
DROP PROCEDURE [dbo].[pr_Pendenz_Update]
|
|
GO
|
|
/****** Object: StoredProcedure [dbo].[pr_Pendenz_Update] Script Date: 02.12.2016 09:08:54 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
|
|
---------------------------------------------------------------------------------
|
|
-- Stored procedure that will update an existing row in the table 'Pendenz'
|
|
-- Gets: @iPendenzNr int
|
|
-- Gets: @iVertragselementNr int
|
|
-- Gets: @sVerantwortlich varchar(50)
|
|
-- Gets: @iPendenzStatusNr int
|
|
-- Gets: @sBezeichnung varchar(50)
|
|
-- Gets: @sBeschreibung varchar(255)
|
|
-- Gets: @daTermin datetime
|
|
-- Gets: @bAktiv bit
|
|
-- Gets: @daErstellt_am datetime
|
|
-- Gets: @daMutiert_am datetime
|
|
-- Gets: @iMutierer int
|
|
-- Gets: @iMandantNr int
|
|
-- Gets: @iSecurityLevelNr int
|
|
-- Returns: @iErrorCode int
|
|
---------------------------------------------------------------------------------
|
|
CREATE PROCEDURE [dbo].[pr_Pendenz_Update]
|
|
@iPendenzNr int,
|
|
@iVertragselementNr int,
|
|
@sVerantwortlich varchar(50),
|
|
@iPendenzStatusNr int,
|
|
@sBezeichnung varchar(50),
|
|
@sBeschreibung varchar(255),
|
|
@daTermin datetime,
|
|
@bAktiv bit,
|
|
@daErstellt_am datetime,
|
|
@daMutiert_am datetime,
|
|
@iMutierer int,
|
|
@iMandantNr int,
|
|
@iSecurityLevelNr int,
|
|
@iErrorCode int OUTPUT
|
|
AS
|
|
SET NOCOUNT ON
|
|
-- UPDATE an existing row in the table.
|
|
UPDATE [dbo].[Pendenz]
|
|
SET
|
|
[VertragselementNr] = @iVertragselementNr,
|
|
[Verantwortlich] = @sVerantwortlich,
|
|
[PendenzStatusNr] = @iPendenzStatusNr,
|
|
[Bezeichnung] = @sBezeichnung,
|
|
[Beschreibung] = @sBeschreibung,
|
|
[Termin] = @daTermin,
|
|
[Aktiv] = @bAktiv,
|
|
[Erstellt_am] = @daErstellt_am,
|
|
[Mutiert_am] = @daMutiert_am,
|
|
[Mutierer] = @iMutierer,
|
|
[MandantNr] = @iMandantNr,
|
|
[SecurityLevelNr] = @iSecurityLevelNr
|
|
WHERE
|
|
[PendenzNr] = @iPendenzNr
|
|
-- Get the Error Code for the statement just executed.
|
|
SELECT @iErrorCode=@@ERROR
|
|
|
|
|
|
GO
|