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.
65 lines
4.1 KiB
65 lines
4.1 KiB
USE [Vertragsverwaltung_20160404]
|
|
GO
|
|
/****** Object: StoredProcedure [dbo].[pr_SecurityObject_Update] Script Date: 02.12.2016 09:08:54 ******/
|
|
DROP PROCEDURE [dbo].[pr_SecurityObject_Update]
|
|
GO
|
|
/****** Object: StoredProcedure [dbo].[pr_SecurityObject_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 'SecurityObject'
|
|
-- Gets: @iSecurityObjectNr int
|
|
-- Gets: @sSecurityForm varchar(50)
|
|
-- Gets: @sSecurityObjectType varchar(50)
|
|
-- Gets: @sSecurityObject varchar(50)
|
|
-- Gets: @sSecurityObjectItem varchar(50)
|
|
-- Gets: @sSecurityObjectDescriotion varchar(50)
|
|
-- Gets: @iLevel int
|
|
-- Gets: @bAktiv bit
|
|
-- Gets: @daErstellt_am datetime
|
|
-- Gets: @daMutiert_am datetime
|
|
-- Gets: @iMutierer int
|
|
-- Gets: @iMandantnr int
|
|
-- Returns: @iErrorCode int
|
|
---------------------------------------------------------------------------------
|
|
CREATE PROCEDURE [dbo].[pr_SecurityObject_Update]
|
|
@iSecurityObjectNr int,
|
|
@sSecurityForm varchar(50),
|
|
@sSecurityObjectType varchar(50),
|
|
@sSecurityObject varchar(50),
|
|
@sSecurityObjectItem varchar(50),
|
|
@sSecurityObjectDescriotion varchar(50),
|
|
@iLevel int,
|
|
@bAktiv bit,
|
|
@daErstellt_am datetime,
|
|
@daMutiert_am datetime,
|
|
@iMutierer int,
|
|
@iMandantnr int,
|
|
@iErrorCode int OUTPUT
|
|
AS
|
|
SET NOCOUNT ON
|
|
-- UPDATE an existing row in the table.
|
|
UPDATE [dbo].[SecurityObject]
|
|
SET
|
|
[SecurityForm] = @sSecurityForm,
|
|
[SecurityObjectType] = @sSecurityObjectType,
|
|
[SecurityObject] = @sSecurityObject,
|
|
[SecurityObjectItem] = @sSecurityObjectItem,
|
|
[SecurityObjectDescriotion] = @sSecurityObjectDescriotion,
|
|
[Level] = @iLevel,
|
|
[Aktiv] = @bAktiv,
|
|
[Erstellt_am] = @daErstellt_am,
|
|
[Mutiert_am] = @daMutiert_am,
|
|
[Mutierer] = @iMutierer,
|
|
[Mandantnr] = @iMandantnr
|
|
WHERE
|
|
[SecurityObjectNr] = @iSecurityObjectNr
|
|
-- Get the Error Code for the statement just executed.
|
|
SELECT @iErrorCode=@@ERROR
|
|
|
|
|
|
GO
|