USE [Vertragsverwaltung_20160404] GO /****** Object: StoredProcedure [dbo].[pr_LC_Optionen_Update] Script Date: 02.12.2016 09:08:54 ******/ DROP PROCEDURE [dbo].[pr_LC_Optionen_Update] GO /****** Object: StoredProcedure [dbo].[pr_LC_Optionen_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_Optionen' -- Gets: @ilc_option_nr int -- Gets: @sbezeichung varchar(255) -- Gets: @sbeschreibung varchar(255) -- Gets: @daerstellt_am datetime -- Gets: @damutiert_am datetime -- Gets: @imutierer int -- Gets: @baktiv bit -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_LC_Optionen_Update] @ilc_option_nr int, @sbezeichung varchar(255), @sbeschreibung varchar(255), @daerstellt_am datetime, @damutiert_am datetime, @imutierer int, @baktiv bit, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- UPDATE an existing row in the table. UPDATE [dbo].[LC_Optionen] SET [bezeichung] = @sbezeichung, [beschreibung] = @sbeschreibung, [erstellt_am] = @daerstellt_am, [mutiert_am] = @damutiert_am, [mutierer] = @imutierer, [aktiv] = @baktiv WHERE [lc_option_nr] = @ilc_option_nr -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO