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.
83 lines
4.8 KiB
83 lines
4.8 KiB
USE [Vertragsverwaltung_20160404]
|
|
GO
|
|
/****** Object: StoredProcedure [dbo].[pr_LC_Dokument_Update] Script Date: 02.12.2016 09:08:54 ******/
|
|
DROP PROCEDURE [dbo].[pr_LC_Dokument_Update]
|
|
GO
|
|
/****** Object: StoredProcedure [dbo].[pr_LC_Dokument_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 'LC_Dokument'
|
|
-- Gets: @iDokumentNr int
|
|
-- Gets: @iKeyValue int
|
|
-- Gets: @iDokType int
|
|
-- Gets: @iDokumenttypNr int
|
|
-- Gets: @sBezeichnung varchar(50)
|
|
-- Gets: @sBeschreibung varchar(2048)
|
|
-- Gets: @sFilename varchar(255)
|
|
-- Gets: @sOriginalFilename_incl_Path varchar(255)
|
|
-- Gets: @sVersion varchar(50)
|
|
-- Gets: @sVersionsNr varchar(50)
|
|
-- Gets: @daVersionsdatum datetime
|
|
-- Gets: @daErstellt_am datetime
|
|
-- Gets: @daMutiert_am datetime
|
|
-- Gets: @iMutierer int
|
|
-- Gets: @bAktiv bit
|
|
-- Gets: @iSecurityLevelNr int
|
|
-- Gets: @blobDocImage image
|
|
-- Returns: @iErrorCode int
|
|
---------------------------------------------------------------------------------
|
|
CREATE PROCEDURE [dbo].[pr_LC_Dokument_Update]
|
|
@iDokumentNr int,
|
|
@iKeyValue int,
|
|
@iDokType int,
|
|
@iDokumenttypNr int,
|
|
@sBezeichnung varchar(50),
|
|
@sBeschreibung varchar(2048),
|
|
@sFilename varchar(255),
|
|
@sOriginalFilename_incl_Path varchar(255),
|
|
@sVersion varchar(50),
|
|
@sVersionsNr varchar(50),
|
|
@daVersionsdatum datetime,
|
|
@daErstellt_am datetime,
|
|
@daMutiert_am datetime,
|
|
@iMutierer int,
|
|
@bAktiv bit,
|
|
@iSecurityLevelNr int,
|
|
@blobDocImage image,
|
|
@iErrorCode int OUTPUT
|
|
AS
|
|
SET NOCOUNT ON
|
|
-- UPDATE an existing row in the table.
|
|
UPDATE [dbo].[LC_Dokument]
|
|
SET
|
|
[KeyValue] = @iKeyValue,
|
|
[DokType] = @iDokType,
|
|
[DokumenttypNr] = @iDokumenttypNr,
|
|
[Bezeichnung] = @sBezeichnung,
|
|
[Beschreibung] = @sBeschreibung,
|
|
[Filename] = @sFilename,
|
|
[OriginalFilename_incl_Path] = @sOriginalFilename_incl_Path,
|
|
[Version] = @sVersion,
|
|
[VersionsNr] = @sVersionsNr,
|
|
[Versionsdatum] = @daVersionsdatum,
|
|
[Erstellt_am] = @daErstellt_am,
|
|
[Mutiert_am] = @daMutiert_am,
|
|
[Mutierer] = @iMutierer,
|
|
[Aktiv] = @bAktiv,
|
|
[SecurityLevelNr] = @iSecurityLevelNr,
|
|
[DocImage] = @blobDocImage
|
|
WHERE
|
|
[DokumentNr] = @iDokumentNr
|
|
-- Get the Error Code for the statement just executed.
|
|
SELECT @iErrorCode=@@ERROR
|
|
|
|
|
|
|
|
GO
|