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.
94 lines
4.1 KiB
94 lines
4.1 KiB
USE [Vertragsverwaltung_20160404]
|
|
GO
|
|
/****** Object: StoredProcedure [dbo].[pr_spalten_Insert] Script Date: 02.12.2016 09:08:54 ******/
|
|
DROP PROCEDURE [dbo].[pr_spalten_Insert]
|
|
GO
|
|
/****** Object: StoredProcedure [dbo].[pr_spalten_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 'spalten'
|
|
-- Gets: @ieintragnr int
|
|
-- Gets: @stabelle varchar(255)
|
|
-- Gets: @stabellenspalte varchar(255)
|
|
-- Gets: @sspalte varchar(255)
|
|
-- Gets: @bReadonly bit
|
|
-- Gets: @balsHacken bit
|
|
-- Gets: @iBreite int
|
|
-- Gets: @iReihenfolge int
|
|
-- Gets: @stiptext varchar(255)
|
|
-- Gets: @baktiv bit
|
|
-- Gets: @daerstellt_am datetime
|
|
-- Gets: @damutiert_am datetime
|
|
-- Gets: @imutierer int
|
|
-- Gets: @imandantnr int
|
|
-- Gets: @sNumberFormat varchar(255)
|
|
-- Returns: @iErrorCode int
|
|
---------------------------------------------------------------------------------
|
|
CREATE PROCEDURE [dbo].[pr_spalten_Insert]
|
|
@ieintragnr int,
|
|
@stabelle varchar(255),
|
|
@stabellenspalte varchar(255),
|
|
@sspalte varchar(255),
|
|
@bReadonly bit,
|
|
@balsHacken bit,
|
|
@iBreite int,
|
|
@iReihenfolge int,
|
|
@stiptext varchar(255),
|
|
@baktiv bit,
|
|
@daerstellt_am datetime,
|
|
@damutiert_am datetime,
|
|
@imutierer int,
|
|
@imandantnr int,
|
|
@sNumberFormat varchar(255),
|
|
@iErrorCode int OUTPUT
|
|
AS
|
|
SET NOCOUNT ON
|
|
-- INSERT a new row in the table.
|
|
INSERT [dbo].[spalten]
|
|
(
|
|
[eintragnr],
|
|
[tabelle],
|
|
[tabellenspalte],
|
|
[spalte],
|
|
[Readonly],
|
|
[alsHacken],
|
|
[Breite],
|
|
[Reihenfolge],
|
|
[tiptext],
|
|
[aktiv],
|
|
[erstellt_am],
|
|
[mutiert_am],
|
|
[mutierer],
|
|
[mandantnr],
|
|
[NumberFormat]
|
|
)
|
|
VALUES
|
|
(
|
|
@ieintragnr,
|
|
@stabelle,
|
|
@stabellenspalte,
|
|
@sspalte,
|
|
@bReadonly,
|
|
@balsHacken,
|
|
@iBreite,
|
|
@iReihenfolge,
|
|
@stiptext,
|
|
@baktiv,
|
|
@daerstellt_am,
|
|
@damutiert_am,
|
|
@imutierer,
|
|
@imandantnr,
|
|
@sNumberFormat
|
|
)
|
|
-- Get the Error Code for the statement just executed.
|
|
SELECT @iErrorCode=@@ERROR
|
|
|
|
|
|
|
|
GO
|