USE [Vertragsverwaltung_20160404] GO /****** Object: StoredProcedure [dbo].[pr_Auswertung_Insert] Script Date: 02.12.2016 09:08:54 ******/ DROP PROCEDURE [dbo].[pr_Auswertung_Insert] GO /****** Object: StoredProcedure [dbo].[pr_Auswertung_Insert] Script Date: 02.12.2016 09:08:54 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO --------------------------------------------------------------------------------- -- Stored procedure that will insert 1 row in the table 'Auswertung' -- Gets: @iAuswertungNr int -- Gets: @sBezeichnung varchar(50) -- Gets: @bAktiv bit -- Gets: @daErstellt_am datetime -- Gets: @daMutiert_am datetime -- Gets: @iMutierer int -- Gets: @bCR_Report bit -- Gets: @sCR_Filename varchar(255) -- Gets: @bCSV_Report bit -- Gets: @sSQL varchar(1024) -- Gets: @bTXP_Auswertung bit -- Gets: @sBeschreibung varchar(1024) -- Gets: @sConnectionstring_Subreport varchar(255) -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_Auswertung_Insert] @iAuswertungNr int, @sBezeichnung varchar(50), @bAktiv bit, @daErstellt_am datetime, @daMutiert_am datetime, @iMutierer int, @bCR_Report bit, @sCR_Filename varchar(255), @bCSV_Report bit, @sSQL varchar(1024), @bTXP_Auswertung bit, @sBeschreibung varchar(1024), @sConnectionstring_Subreport varchar(255), @iErrorCode int OUTPUT AS SET NOCOUNT ON -- INSERT a new row in the table. INSERT [dbo].[Auswertung] ( [AuswertungNr], [Bezeichnung], [Aktiv], [Erstellt_am], [Mutiert_am], [Mutierer], [CR_Report], [CR_Filename], [CSV_Report], [SQL], [TXP_Auswertung], [Beschreibung], [Connectionstring_Subreport] ) VALUES ( @iAuswertungNr, @sBezeichnung, @bAktiv, @daErstellt_am, @daMutiert_am, @iMutierer, @bCR_Report, @sCR_Filename, @bCSV_Report, @sSQL, @bTXP_Auswertung, @sBeschreibung, @sConnectionstring_Subreport ) -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO