-- ================================================================================================================ -- Stored Procedures generated by LLBLGen v1.21.2003.712 Final on Dienstag, 1. Januar 2013, 19:36:37 -- For the Low Level Business Logic Layer for the database 'themenmanagement' -- ================================================================================================================ SET NOCOUNT ON GO USE [themenmanagement] GO -- ======================================================================================================== -- [Stored Procedures generated for table: Application] GO -- //// Insert Stored procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_Application_Insert]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_Application_Insert] GO --------------------------------------------------------------------------------- -- Stored procedure that will insert 1 row in the table 'Application' -- Gets: @iapplikationsnr int -- Gets: @sversion varchar(4) -- Gets: @bshowlogin bit -- Gets: @imandantnr int -- Gets: @baktiv bit -- Gets: @daerstellt_am datetime -- Gets: @damutiert_am datetime -- Gets: @imutierer int -- Gets: @stmp_filepath varchar(255) -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_Application_Insert] @iapplikationsnr int, @sversion varchar(4), @bshowlogin bit, @imandantnr int, @baktiv bit, @daerstellt_am datetime, @damutiert_am datetime, @imutierer int, @stmp_filepath varchar(255), @iErrorCode int OUTPUT AS SET NOCOUNT ON -- INSERT a new row in the table. INSERT [dbo].[Application] ( [applikationsnr], [version], [showlogin], [mandantnr], [aktiv], [erstellt_am], [mutiert_am], [mutierer], [tmp_filepath] ) VALUES ( @iapplikationsnr, @sversion, @bshowlogin, @imandantnr, @baktiv, @daerstellt_am, @damutiert_am, @imutierer, @stmp_filepath ) -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Update Stored procedure for updating one single row. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_Application_Update]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_Application_Update] GO --------------------------------------------------------------------------------- -- Stored procedure that will update an existing row in the table 'Application' -- Gets: @iapplikationsnr int -- Gets: @sversion varchar(4) -- Gets: @bshowlogin bit -- Gets: @imandantnr int -- Gets: @baktiv bit -- Gets: @daerstellt_am datetime -- Gets: @damutiert_am datetime -- Gets: @imutierer int -- Gets: @stmp_filepath varchar(255) -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_Application_Update] @iapplikationsnr int, @sversion varchar(4), @bshowlogin bit, @imandantnr int, @baktiv bit, @daerstellt_am datetime, @damutiert_am datetime, @imutierer int, @stmp_filepath varchar(255), @iErrorCode int OUTPUT AS SET NOCOUNT ON -- UPDATE an existing row in the table. UPDATE [dbo].[Application] SET [version] = @sversion, [showlogin] = @bshowlogin, [mandantnr] = @imandantnr, [aktiv] = @baktiv, [erstellt_am] = @daerstellt_am, [mutiert_am] = @damutiert_am, [mutierer] = @imutierer, [tmp_filepath] = @stmp_filepath WHERE [applikationsnr] = @iapplikationsnr -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Delete Stored procedure using Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_Application_Delete]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_Application_Delete] GO --------------------------------------------------------------------------------- -- Stored procedure that will delete an existing row from the table 'Application' -- using the Primary Key. -- Gets: @iapplikationsnr int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_Application_Delete] @iapplikationsnr int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- DELETE an existing row from the table. DELETE FROM [dbo].[Application] WHERE [applikationsnr] = @iapplikationsnr -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Select Stored procedure, based on Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_Application_SelectOne]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_Application_SelectOne] GO --------------------------------------------------------------------------------- -- Stored procedure that will select an existing row from the table 'Application' -- based on the Primary Key. -- Gets: @iapplikationsnr int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_Application_SelectOne] @iapplikationsnr int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- SELECT an existing row from the table. SELECT [applikationsnr], [version], [showlogin], [mandantnr], [aktiv], [erstellt_am], [mutiert_am], [mutierer], [tmp_filepath] FROM [dbo].[Application] WHERE [applikationsnr] = @iapplikationsnr -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Select All Stored procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_Application_SelectAll]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_Application_SelectAll] GO --------------------------------------------------------------------------------- -- Stored procedure that will select all rows from the table 'Application' -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_Application_SelectAll] @iErrorCode int OUTPUT AS SET NOCOUNT ON -- SELECT all rows from the table. SELECT [applikationsnr], [version], [showlogin], [mandantnr], [aktiv], [erstellt_am], [mutiert_am], [mutierer], [tmp_filepath] FROM [dbo].[Application] ORDER BY [applikationsnr] ASC -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- [End of Stored Procedures for table: Application] -- ======================================================================================================== GO -- ======================================================================================================== -- [Stored Procedures generated for table: funktionsgruppe] GO -- //// Insert Stored procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_funktionsgruppe_Insert]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_funktionsgruppe_Insert] GO --------------------------------------------------------------------------------- -- Stored procedure that will insert 1 row in the table 'funktionsgruppe' -- Gets: @ifunktionsgruppenr int -- Gets: @sbezeichnung varchar(50) -- Gets: @sbeschreibung varchar(50) -- Gets: @szugehoerigkeit varchar(255) -- Gets: @imandantnr int -- Gets: @baktiv bit -- Gets: @daerstellt_am datetime -- Gets: @damutiert_am datetime -- Gets: @imutierer int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_funktionsgruppe_Insert] @ifunktionsgruppenr int, @sbezeichnung varchar(50), @sbeschreibung varchar(50), @szugehoerigkeit varchar(255), @imandantnr int, @baktiv bit, @daerstellt_am datetime, @damutiert_am datetime, @imutierer int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- INSERT a new row in the table. INSERT [dbo].[funktionsgruppe] ( [funktionsgruppenr], [bezeichnung], [beschreibung], [zugehoerigkeit], [mandantnr], [aktiv], [erstellt_am], [mutiert_am], [mutierer] ) VALUES ( @ifunktionsgruppenr, @sbezeichnung, @sbeschreibung, @szugehoerigkeit, @imandantnr, @baktiv, @daerstellt_am, @damutiert_am, @imutierer ) -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Update Stored procedure for updating one single row. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_funktionsgruppe_Update]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_funktionsgruppe_Update] GO --------------------------------------------------------------------------------- -- Stored procedure that will update an existing row in the table 'funktionsgruppe' -- Gets: @ifunktionsgruppenr int -- Gets: @sbezeichnung varchar(50) -- Gets: @sbeschreibung varchar(50) -- Gets: @szugehoerigkeit varchar(255) -- Gets: @imandantnr int -- Gets: @baktiv bit -- Gets: @daerstellt_am datetime -- Gets: @damutiert_am datetime -- Gets: @imutierer int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_funktionsgruppe_Update] @ifunktionsgruppenr int, @sbezeichnung varchar(50), @sbeschreibung varchar(50), @szugehoerigkeit varchar(255), @imandantnr int, @baktiv bit, @daerstellt_am datetime, @damutiert_am datetime, @imutierer int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- UPDATE an existing row in the table. UPDATE [dbo].[funktionsgruppe] SET [bezeichnung] = @sbezeichnung, [beschreibung] = @sbeschreibung, [zugehoerigkeit] = @szugehoerigkeit, [mandantnr] = @imandantnr, [aktiv] = @baktiv, [erstellt_am] = @daerstellt_am, [mutiert_am] = @damutiert_am, [mutierer] = @imutierer WHERE [funktionsgruppenr] = @ifunktionsgruppenr -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Delete Stored procedure using Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_funktionsgruppe_Delete]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_funktionsgruppe_Delete] GO --------------------------------------------------------------------------------- -- Stored procedure that will delete an existing row from the table 'funktionsgruppe' -- using the Primary Key. -- Gets: @ifunktionsgruppenr int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_funktionsgruppe_Delete] @ifunktionsgruppenr int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- DELETE an existing row from the table. DELETE FROM [dbo].[funktionsgruppe] WHERE [funktionsgruppenr] = @ifunktionsgruppenr -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Select Stored procedure, based on Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_funktionsgruppe_SelectOne]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_funktionsgruppe_SelectOne] GO --------------------------------------------------------------------------------- -- Stored procedure that will select an existing row from the table 'funktionsgruppe' -- based on the Primary Key. -- Gets: @ifunktionsgruppenr int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_funktionsgruppe_SelectOne] @ifunktionsgruppenr int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- SELECT an existing row from the table. SELECT [funktionsgruppenr], [bezeichnung], [beschreibung], [zugehoerigkeit], [mandantnr], [aktiv], [erstellt_am], [mutiert_am], [mutierer] FROM [dbo].[funktionsgruppe] WHERE [funktionsgruppenr] = @ifunktionsgruppenr -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Select All Stored procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_funktionsgruppe_SelectAll]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_funktionsgruppe_SelectAll] GO --------------------------------------------------------------------------------- -- Stored procedure that will select all rows from the table 'funktionsgruppe' -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_funktionsgruppe_SelectAll] @iErrorCode int OUTPUT AS SET NOCOUNT ON -- SELECT all rows from the table. SELECT [funktionsgruppenr], [bezeichnung], [beschreibung], [zugehoerigkeit], [mandantnr], [aktiv], [erstellt_am], [mutiert_am], [mutierer] FROM [dbo].[funktionsgruppe] ORDER BY [funktionsgruppenr] ASC -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- [End of Stored Procedures for table: funktionsgruppe] -- ======================================================================================================== GO -- ======================================================================================================== -- [Stored Procedures generated for table: funktionsgruppe_rolle] GO -- //// Insert Stored procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_funktionsgruppe_rolle_Insert]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_funktionsgruppe_rolle_Insert] GO --------------------------------------------------------------------------------- -- Stored procedure that will insert 1 row in the table 'funktionsgruppe_rolle' -- Gets: @iFunktionsgrupperollenr int -- Gets: @ifunktionsgruppenr int -- Gets: @irollenr int -- Gets: @imandantnr int -- Gets: @baktiv bit -- Gets: @daerstellt_am datetime -- Gets: @damutiert_am datetime -- Gets: @imutierer int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_funktionsgruppe_rolle_Insert] @iFunktionsgrupperollenr int, @ifunktionsgruppenr int, @irollenr int, @imandantnr int, @baktiv bit, @daerstellt_am datetime, @damutiert_am datetime, @imutierer int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- INSERT a new row in the table. INSERT [dbo].[funktionsgruppe_rolle] ( [Funktionsgrupperollenr], [funktionsgruppenr], [rollenr], [mandantnr], [aktiv], [erstellt_am], [mutiert_am], [mutierer] ) VALUES ( @iFunktionsgrupperollenr, @ifunktionsgruppenr, @irollenr, @imandantnr, @baktiv, @daerstellt_am, @damutiert_am, @imutierer ) -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Update Stored procedure for updating one single row. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_funktionsgruppe_rolle_Update]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_funktionsgruppe_rolle_Update] GO --------------------------------------------------------------------------------- -- Stored procedure that will update an existing row in the table 'funktionsgruppe_rolle' -- Gets: @iFunktionsgrupperollenr int -- Gets: @ifunktionsgruppenr int -- Gets: @irollenr int -- Gets: @imandantnr int -- Gets: @baktiv bit -- Gets: @daerstellt_am datetime -- Gets: @damutiert_am datetime -- Gets: @imutierer int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_funktionsgruppe_rolle_Update] @iFunktionsgrupperollenr int, @ifunktionsgruppenr int, @irollenr int, @imandantnr int, @baktiv bit, @daerstellt_am datetime, @damutiert_am datetime, @imutierer int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- UPDATE an existing row in the table. UPDATE [dbo].[funktionsgruppe_rolle] SET [funktionsgruppenr] = @ifunktionsgruppenr, [rollenr] = @irollenr, [mandantnr] = @imandantnr, [aktiv] = @baktiv, [erstellt_am] = @daerstellt_am, [mutiert_am] = @damutiert_am, [mutierer] = @imutierer WHERE [Funktionsgrupperollenr] = @iFunktionsgrupperollenr -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Delete Stored procedure using Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_funktionsgruppe_rolle_Delete]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_funktionsgruppe_rolle_Delete] GO --------------------------------------------------------------------------------- -- Stored procedure that will delete an existing row from the table 'funktionsgruppe_rolle' -- using the Primary Key. -- Gets: @iFunktionsgrupperollenr int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_funktionsgruppe_rolle_Delete] @iFunktionsgrupperollenr int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- DELETE an existing row from the table. DELETE FROM [dbo].[funktionsgruppe_rolle] WHERE [Funktionsgrupperollenr] = @iFunktionsgrupperollenr -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Select Stored procedure, based on Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_funktionsgruppe_rolle_SelectOne]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_funktionsgruppe_rolle_SelectOne] GO --------------------------------------------------------------------------------- -- Stored procedure that will select an existing row from the table 'funktionsgruppe_rolle' -- based on the Primary Key. -- Gets: @iFunktionsgrupperollenr int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_funktionsgruppe_rolle_SelectOne] @iFunktionsgrupperollenr int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- SELECT an existing row from the table. SELECT [Funktionsgrupperollenr], [funktionsgruppenr], [rollenr], [mandantnr], [aktiv], [erstellt_am], [mutiert_am], [mutierer] FROM [dbo].[funktionsgruppe_rolle] WHERE [Funktionsgrupperollenr] = @iFunktionsgrupperollenr -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Select All Stored procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_funktionsgruppe_rolle_SelectAll]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_funktionsgruppe_rolle_SelectAll] GO --------------------------------------------------------------------------------- -- Stored procedure that will select all rows from the table 'funktionsgruppe_rolle' -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_funktionsgruppe_rolle_SelectAll] @iErrorCode int OUTPUT AS SET NOCOUNT ON -- SELECT all rows from the table. SELECT [Funktionsgrupperollenr], [funktionsgruppenr], [rollenr], [mandantnr], [aktiv], [erstellt_am], [mutiert_am], [mutierer] FROM [dbo].[funktionsgruppe_rolle] ORDER BY [Funktionsgrupperollenr] ASC -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- [End of Stored Procedures for table: funktionsgruppe_rolle] -- ======================================================================================================== GO -- ======================================================================================================== -- [Stored Procedures generated for table: key_tabelle] GO -- //// Insert Stored procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_key_tabelle_Insert]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_key_tabelle_Insert] GO --------------------------------------------------------------------------------- -- Stored procedure that will insert 1 row in the table 'key_tabelle' -- Gets: @sbeschreibung varchar(255) -- Gets: @ikey_wert int -- Gets: @imandantnr int -- Gets: @baktiv bit -- Gets: @daerstellt_am datetime -- Gets: @damutiert_am datetime -- Gets: @imutierer int -- Returns: @ikeynr int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_key_tabelle_Insert] @sbeschreibung varchar(255), @ikey_wert int, @imandantnr int, @baktiv bit, @daerstellt_am datetime, @damutiert_am datetime, @imutierer int, @ikeynr int OUTPUT, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- INSERT a new row in the table. INSERT [dbo].[key_tabelle] ( [beschreibung], [key_wert], [mandantnr], [aktiv], [erstellt_am], [mutiert_am], [mutierer] ) VALUES ( @sbeschreibung, @ikey_wert, @imandantnr, @baktiv, @daerstellt_am, @damutiert_am, @imutierer ) -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR -- Get the IDENTITY value for the row just inserted. SELECT @ikeynr=SCOPE_IDENTITY() GO -- //// Update Stored procedure for updating one single row. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_key_tabelle_Update]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_key_tabelle_Update] GO --------------------------------------------------------------------------------- -- Stored procedure that will update an existing row in the table 'key_tabelle' -- Gets: @ikeynr int -- Gets: @sbeschreibung varchar(255) -- Gets: @ikey_wert int -- Gets: @imandantnr int -- Gets: @baktiv bit -- Gets: @daerstellt_am datetime -- Gets: @damutiert_am datetime -- Gets: @imutierer int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_key_tabelle_Update] @ikeynr int, @sbeschreibung varchar(255), @ikey_wert int, @imandantnr int, @baktiv bit, @daerstellt_am datetime, @damutiert_am datetime, @imutierer int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- UPDATE an existing row in the table. UPDATE [dbo].[key_tabelle] SET [beschreibung] = @sbeschreibung, [key_wert] = @ikey_wert, [mandantnr] = @imandantnr, [aktiv] = @baktiv, [erstellt_am] = @daerstellt_am, [mutiert_am] = @damutiert_am, [mutierer] = @imutierer WHERE [keynr] = @ikeynr -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Delete Stored procedure using Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_key_tabelle_Delete]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_key_tabelle_Delete] GO --------------------------------------------------------------------------------- -- Stored procedure that will delete an existing row from the table 'key_tabelle' -- using the Primary Key. -- Gets: @ikeynr int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_key_tabelle_Delete] @ikeynr int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- DELETE an existing row from the table. DELETE FROM [dbo].[key_tabelle] WHERE [keynr] = @ikeynr -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Select Stored procedure, based on Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_key_tabelle_SelectOne]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_key_tabelle_SelectOne] GO --------------------------------------------------------------------------------- -- Stored procedure that will select an existing row from the table 'key_tabelle' -- based on the Primary Key. -- Gets: @ikeynr int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_key_tabelle_SelectOne] @ikeynr int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- SELECT an existing row from the table. SELECT [keynr], [beschreibung], [key_wert], [mandantnr], [aktiv], [erstellt_am], [mutiert_am], [mutierer] FROM [dbo].[key_tabelle] WHERE [keynr] = @ikeynr -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Select All Stored procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_key_tabelle_SelectAll]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_key_tabelle_SelectAll] GO --------------------------------------------------------------------------------- -- Stored procedure that will select all rows from the table 'key_tabelle' -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_key_tabelle_SelectAll] @iErrorCode int OUTPUT AS SET NOCOUNT ON -- SELECT all rows from the table. SELECT [keynr], [beschreibung], [key_wert], [mandantnr], [aktiv], [erstellt_am], [mutiert_am], [mutierer] FROM [dbo].[key_tabelle] ORDER BY [keynr] ASC -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- [End of Stored Procedures for table: key_tabelle] -- ======================================================================================================== GO -- ======================================================================================================== -- [Stored Procedures generated for table: meldungstexte] GO -- //// Insert Stored procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_meldungstexte_Insert]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_meldungstexte_Insert] GO --------------------------------------------------------------------------------- -- Stored procedure that will insert 1 row in the table 'meldungstexte' -- Gets: @imeldungstextnr int -- Gets: @isprache int -- Gets: @sinhalt varchar(1024) -- Gets: @sBeschreibung varchar(255) -- Gets: @baktiv bit -- Gets: @daerstellt_am datetime -- Gets: @damutiert_am datetime -- Gets: @imutierer int -- Gets: @imandantnr int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_meldungstexte_Insert] @imeldungstextnr int, @isprache int, @sinhalt varchar(1024), @sBeschreibung varchar(255), @baktiv bit, @daerstellt_am datetime, @damutiert_am datetime, @imutierer int, @imandantnr int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- INSERT a new row in the table. INSERT [dbo].[meldungstexte] ( [meldungstextnr], [sprache], [inhalt], [Beschreibung], [aktiv], [erstellt_am], [mutiert_am], [mutierer], [mandantnr] ) VALUES ( @imeldungstextnr, @isprache, @sinhalt, @sBeschreibung, @baktiv, @daerstellt_am, @damutiert_am, @imutierer, @imandantnr ) -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Update Stored procedure for updating one single row. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_meldungstexte_Update]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_meldungstexte_Update] GO --------------------------------------------------------------------------------- -- Stored procedure that will update an existing row in the table 'meldungstexte' -- Gets: @imeldungstextnr int -- Gets: @isprache int -- Gets: @sinhalt varchar(1024) -- Gets: @sBeschreibung varchar(255) -- Gets: @baktiv bit -- Gets: @daerstellt_am datetime -- Gets: @damutiert_am datetime -- Gets: @imutierer int -- Gets: @imandantnr int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_meldungstexte_Update] @imeldungstextnr int, @isprache int, @sinhalt varchar(1024), @sBeschreibung varchar(255), @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].[meldungstexte] SET [inhalt] = @sinhalt, [Beschreibung] = @sBeschreibung, [aktiv] = @baktiv, [erstellt_am] = @daerstellt_am, [mutiert_am] = @damutiert_am, [mutierer] = @imutierer, [mandantnr] = @imandantnr WHERE [meldungstextnr] = @imeldungstextnr AND [sprache] = @isprache -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Delete Stored procedure using Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_meldungstexte_Delete]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_meldungstexte_Delete] GO --------------------------------------------------------------------------------- -- Stored procedure that will delete an existing row from the table 'meldungstexte' -- using the Primary Key. -- Gets: @imeldungstextnr int -- Gets: @isprache int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_meldungstexte_Delete] @imeldungstextnr int, @isprache int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- DELETE an existing row from the table. DELETE FROM [dbo].[meldungstexte] WHERE [meldungstextnr] = @imeldungstextnr AND [sprache] = @isprache -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Delete Stored procedure using PK field [meldungstextnr] if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_meldungstexte_DeleteAllWmeldungstextnrLogic]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_meldungstexte_DeleteAllWmeldungstextnrLogic] GO --------------------------------------------------------------------------------- -- Stored procedure that will delete one or more existing rows from the table 'meldungstexte' -- using the Primary Key field [meldungstextnr]. -- Gets: @imeldungstextnr int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_meldungstexte_DeleteAllWmeldungstextnrLogic] @imeldungstextnr int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- DELETE one or more existing rows from the table. DELETE FROM [dbo].[meldungstexte] WHERE [meldungstextnr] = @imeldungstextnr -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Delete Stored procedure using PK field [sprache] if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_meldungstexte_DeleteAllWspracheLogic]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_meldungstexte_DeleteAllWspracheLogic] GO --------------------------------------------------------------------------------- -- Stored procedure that will delete one or more existing rows from the table 'meldungstexte' -- using the Primary Key field [sprache]. -- Gets: @isprache int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_meldungstexte_DeleteAllWspracheLogic] @isprache int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- DELETE one or more existing rows from the table. DELETE FROM [dbo].[meldungstexte] WHERE [sprache] = @isprache -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Select Stored procedure, based on Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_meldungstexte_SelectOne]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_meldungstexte_SelectOne] GO --------------------------------------------------------------------------------- -- Stored procedure that will select an existing row from the table 'meldungstexte' -- based on the Primary Key. -- Gets: @imeldungstextnr int -- Gets: @isprache int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_meldungstexte_SelectOne] @imeldungstextnr int, @isprache int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- SELECT an existing row from the table. SELECT [meldungstextnr], [sprache], [inhalt], [Beschreibung], [aktiv], [erstellt_am], [mutiert_am], [mutierer], [mandantnr] FROM [dbo].[meldungstexte] WHERE [meldungstextnr] = @imeldungstextnr AND [sprache] = @isprache -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Select All Stored procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_meldungstexte_SelectAll]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_meldungstexte_SelectAll] GO --------------------------------------------------------------------------------- -- Stored procedure that will select all rows from the table 'meldungstexte' -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_meldungstexte_SelectAll] @iErrorCode int OUTPUT AS SET NOCOUNT ON -- SELECT all rows from the table. SELECT [meldungstextnr], [sprache], [inhalt], [Beschreibung], [aktiv], [erstellt_am], [mutiert_am], [mutierer], [mandantnr] FROM [dbo].[meldungstexte] ORDER BY [meldungstextnr] ASC , [sprache] ASC -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- [End of Stored Procedures for table: meldungstexte] -- ======================================================================================================== GO -- ======================================================================================================== -- [Stored Procedures generated for table: mitarbeiter] GO -- //// Insert Stored procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_mitarbeiter_Insert]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_mitarbeiter_Insert] GO --------------------------------------------------------------------------------- -- Stored procedure that will insert 1 row in the table 'mitarbeiter' -- Gets: @imitarbeiternr int -- Gets: @svorname varchar(50) -- Gets: @sname varchar(50) -- Gets: @stgnummer varchar(50) -- Gets: @semail varchar(50) -- Gets: @imandantnr int -- Gets: @baktiv bit -- Gets: @daerstellt_am datetime -- Gets: @damutiert_am datetime -- Gets: @imutierer int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_mitarbeiter_Insert] @imitarbeiternr int, @svorname varchar(50), @sname varchar(50), @stgnummer varchar(50), @semail varchar(50), @imandantnr int, @baktiv bit, @daerstellt_am datetime, @damutiert_am datetime, @imutierer int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- INSERT a new row in the table. INSERT [dbo].[mitarbeiter] ( [mitarbeiternr], [vorname], [name], [tgnummer], [email], [mandantnr], [aktiv], [erstellt_am], [mutiert_am], [mutierer] ) VALUES ( @imitarbeiternr, @svorname, @sname, @stgnummer, @semail, @imandantnr, @baktiv, @daerstellt_am, @damutiert_am, @imutierer ) -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Update Stored procedure for updating one single row. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_mitarbeiter_Update]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_mitarbeiter_Update] GO --------------------------------------------------------------------------------- -- Stored procedure that will update an existing row in the table 'mitarbeiter' -- Gets: @imitarbeiternr int -- Gets: @svorname varchar(50) -- Gets: @sname varchar(50) -- Gets: @stgnummer varchar(50) -- Gets: @semail varchar(50) -- Gets: @imandantnr int -- Gets: @baktiv bit -- Gets: @daerstellt_am datetime -- Gets: @damutiert_am datetime -- Gets: @imutierer int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_mitarbeiter_Update] @imitarbeiternr int, @svorname varchar(50), @sname varchar(50), @stgnummer varchar(50), @semail varchar(50), @imandantnr int, @baktiv bit, @daerstellt_am datetime, @damutiert_am datetime, @imutierer int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- UPDATE an existing row in the table. UPDATE [dbo].[mitarbeiter] SET [vorname] = @svorname, [name] = @sname, [tgnummer] = @stgnummer, [email] = @semail, [mandantnr] = @imandantnr, [aktiv] = @baktiv, [erstellt_am] = @daerstellt_am, [mutiert_am] = @damutiert_am, [mutierer] = @imutierer WHERE [mitarbeiternr] = @imitarbeiternr -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Delete Stored procedure using Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_mitarbeiter_Delete]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_mitarbeiter_Delete] GO --------------------------------------------------------------------------------- -- Stored procedure that will delete an existing row from the table 'mitarbeiter' -- using the Primary Key. -- Gets: @imitarbeiternr int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_mitarbeiter_Delete] @imitarbeiternr int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- DELETE an existing row from the table. DELETE FROM [dbo].[mitarbeiter] WHERE [mitarbeiternr] = @imitarbeiternr -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Select Stored procedure, based on Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_mitarbeiter_SelectOne]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_mitarbeiter_SelectOne] GO --------------------------------------------------------------------------------- -- Stored procedure that will select an existing row from the table 'mitarbeiter' -- based on the Primary Key. -- Gets: @imitarbeiternr int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_mitarbeiter_SelectOne] @imitarbeiternr int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- SELECT an existing row from the table. SELECT [mitarbeiternr], [vorname], [name], [tgnummer], [email], [mandantnr], [aktiv], [erstellt_am], [mutiert_am], [mutierer] FROM [dbo].[mitarbeiter] WHERE [mitarbeiternr] = @imitarbeiternr -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Select All Stored procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_mitarbeiter_SelectAll]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_mitarbeiter_SelectAll] GO --------------------------------------------------------------------------------- -- Stored procedure that will select all rows from the table 'mitarbeiter' -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_mitarbeiter_SelectAll] @iErrorCode int OUTPUT AS SET NOCOUNT ON -- SELECT all rows from the table. SELECT [mitarbeiternr], [vorname], [name], [tgnummer], [email], [mandantnr], [aktiv], [erstellt_am], [mutiert_am], [mutierer] FROM [dbo].[mitarbeiter] ORDER BY [mitarbeiternr] ASC -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- [End of Stored Procedures for table: mitarbeiter] -- ======================================================================================================== GO -- ======================================================================================================== -- [Stored Procedures generated for table: mitarbeiter_funktionsgruppe] GO -- //// Insert Stored procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_mitarbeiter_funktionsgruppe_Insert]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_mitarbeiter_funktionsgruppe_Insert] GO --------------------------------------------------------------------------------- -- Stored procedure that will insert 1 row in the table 'mitarbeiter_funktionsgruppe' -- Gets: @imitarbeiter_funktionsgruppenr int -- Gets: @imitarbeiternr int -- Gets: @ifunktionsgruppenr int -- Gets: @baktiv bit -- Gets: @imandantnr int -- Gets: @daerstellt_am datetime -- Gets: @damutiert_am datetime -- Gets: @imutierer int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_mitarbeiter_funktionsgruppe_Insert] @imitarbeiter_funktionsgruppenr int, @imitarbeiternr int, @ifunktionsgruppenr int, @baktiv bit, @imandantnr int, @daerstellt_am datetime, @damutiert_am datetime, @imutierer int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- INSERT a new row in the table. INSERT [dbo].[mitarbeiter_funktionsgruppe] ( [mitarbeiter_funktionsgruppenr], [mitarbeiternr], [funktionsgruppenr], [aktiv], [mandantnr], [erstellt_am], [mutiert_am], [mutierer] ) VALUES ( @imitarbeiter_funktionsgruppenr, @imitarbeiternr, @ifunktionsgruppenr, @baktiv, @imandantnr, @daerstellt_am, @damutiert_am, @imutierer ) -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Update Stored procedure for updating one single row. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_mitarbeiter_funktionsgruppe_Update]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_mitarbeiter_funktionsgruppe_Update] GO --------------------------------------------------------------------------------- -- Stored procedure that will update an existing row in the table 'mitarbeiter_funktionsgruppe' -- Gets: @imitarbeiter_funktionsgruppenr int -- Gets: @imitarbeiternr int -- Gets: @ifunktionsgruppenr int -- Gets: @baktiv bit -- Gets: @imandantnr int -- Gets: @daerstellt_am datetime -- Gets: @damutiert_am datetime -- Gets: @imutierer int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_mitarbeiter_funktionsgruppe_Update] @imitarbeiter_funktionsgruppenr int, @imitarbeiternr int, @ifunktionsgruppenr int, @baktiv bit, @imandantnr int, @daerstellt_am datetime, @damutiert_am datetime, @imutierer int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- UPDATE an existing row in the table. UPDATE [dbo].[mitarbeiter_funktionsgruppe] SET [mitarbeiternr] = @imitarbeiternr, [funktionsgruppenr] = @ifunktionsgruppenr, [aktiv] = @baktiv, [mandantnr] = @imandantnr, [erstellt_am] = @daerstellt_am, [mutiert_am] = @damutiert_am, [mutierer] = @imutierer WHERE [mitarbeiter_funktionsgruppenr] = @imitarbeiter_funktionsgruppenr -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Delete Stored procedure using Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_mitarbeiter_funktionsgruppe_Delete]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_mitarbeiter_funktionsgruppe_Delete] GO --------------------------------------------------------------------------------- -- Stored procedure that will delete an existing row from the table 'mitarbeiter_funktionsgruppe' -- using the Primary Key. -- Gets: @imitarbeiter_funktionsgruppenr int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_mitarbeiter_funktionsgruppe_Delete] @imitarbeiter_funktionsgruppenr int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- DELETE an existing row from the table. DELETE FROM [dbo].[mitarbeiter_funktionsgruppe] WHERE [mitarbeiter_funktionsgruppenr] = @imitarbeiter_funktionsgruppenr -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Select Stored procedure, based on Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_mitarbeiter_funktionsgruppe_SelectOne]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_mitarbeiter_funktionsgruppe_SelectOne] GO --------------------------------------------------------------------------------- -- Stored procedure that will select an existing row from the table 'mitarbeiter_funktionsgruppe' -- based on the Primary Key. -- Gets: @imitarbeiter_funktionsgruppenr int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_mitarbeiter_funktionsgruppe_SelectOne] @imitarbeiter_funktionsgruppenr int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- SELECT an existing row from the table. SELECT [mitarbeiter_funktionsgruppenr], [mitarbeiternr], [funktionsgruppenr], [aktiv], [mandantnr], [erstellt_am], [mutiert_am], [mutierer] FROM [dbo].[mitarbeiter_funktionsgruppe] WHERE [mitarbeiter_funktionsgruppenr] = @imitarbeiter_funktionsgruppenr -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Select All Stored procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_mitarbeiter_funktionsgruppe_SelectAll]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_mitarbeiter_funktionsgruppe_SelectAll] GO --------------------------------------------------------------------------------- -- Stored procedure that will select all rows from the table 'mitarbeiter_funktionsgruppe' -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_mitarbeiter_funktionsgruppe_SelectAll] @iErrorCode int OUTPUT AS SET NOCOUNT ON -- SELECT all rows from the table. SELECT [mitarbeiter_funktionsgruppenr], [mitarbeiternr], [funktionsgruppenr], [aktiv], [mandantnr], [erstellt_am], [mutiert_am], [mutierer] FROM [dbo].[mitarbeiter_funktionsgruppe] ORDER BY [mitarbeiter_funktionsgruppenr] ASC -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- [End of Stored Procedures for table: mitarbeiter_funktionsgruppe] -- ======================================================================================================== GO -- ======================================================================================================== -- [Stored Procedures generated for table: rolle] GO -- //// Insert Stored procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_rolle_Insert]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_rolle_Insert] GO --------------------------------------------------------------------------------- -- Stored procedure that will insert 1 row in the table 'rolle' -- Gets: @irollenr int -- Gets: @sbezeichnung varchar(255) -- Gets: @sbeschreibung varchar(255) -- Gets: @bsysadminrolle bit -- Gets: @imandantnr int -- Gets: @baktiv bit -- Gets: @daerstellt_am datetime -- Gets: @damutiert_am datetime -- Gets: @imutierer int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_rolle_Insert] @irollenr int, @sbezeichnung varchar(255), @sbeschreibung varchar(255), @bsysadminrolle bit, @imandantnr int, @baktiv bit, @daerstellt_am datetime, @damutiert_am datetime, @imutierer int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- INSERT a new row in the table. INSERT [dbo].[rolle] ( [rollenr], [bezeichnung], [beschreibung], [sysadminrolle], [mandantnr], [aktiv], [erstellt_am], [mutiert_am], [mutierer] ) VALUES ( @irollenr, @sbezeichnung, @sbeschreibung, @bsysadminrolle, @imandantnr, @baktiv, @daerstellt_am, @damutiert_am, @imutierer ) -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Update Stored procedure for updating one single row. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_rolle_Update]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_rolle_Update] GO --------------------------------------------------------------------------------- -- Stored procedure that will update an existing row in the table 'rolle' -- Gets: @irollenr int -- Gets: @sbezeichnung varchar(255) -- Gets: @sbeschreibung varchar(255) -- Gets: @bsysadminrolle bit -- Gets: @imandantnr int -- Gets: @baktiv bit -- Gets: @daerstellt_am datetime -- Gets: @damutiert_am datetime -- Gets: @imutierer int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_rolle_Update] @irollenr int, @sbezeichnung varchar(255), @sbeschreibung varchar(255), @bsysadminrolle bit, @imandantnr int, @baktiv bit, @daerstellt_am datetime, @damutiert_am datetime, @imutierer int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- UPDATE an existing row in the table. UPDATE [dbo].[rolle] SET [bezeichnung] = @sbezeichnung, [beschreibung] = @sbeschreibung, [sysadminrolle] = @bsysadminrolle, [mandantnr] = @imandantnr, [aktiv] = @baktiv, [erstellt_am] = @daerstellt_am, [mutiert_am] = @damutiert_am, [mutierer] = @imutierer WHERE [rollenr] = @irollenr -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Delete Stored procedure using Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_rolle_Delete]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_rolle_Delete] GO --------------------------------------------------------------------------------- -- Stored procedure that will delete an existing row from the table 'rolle' -- using the Primary Key. -- Gets: @irollenr int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_rolle_Delete] @irollenr int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- DELETE an existing row from the table. DELETE FROM [dbo].[rolle] WHERE [rollenr] = @irollenr -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Select Stored procedure, based on Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_rolle_SelectOne]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_rolle_SelectOne] GO --------------------------------------------------------------------------------- -- Stored procedure that will select an existing row from the table 'rolle' -- based on the Primary Key. -- Gets: @irollenr int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_rolle_SelectOne] @irollenr int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- SELECT an existing row from the table. SELECT [rollenr], [bezeichnung], [beschreibung], [sysadminrolle], [mandantnr], [aktiv], [erstellt_am], [mutiert_am], [mutierer] FROM [dbo].[rolle] WHERE [rollenr] = @irollenr -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Select All Stored procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_rolle_SelectAll]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_rolle_SelectAll] GO --------------------------------------------------------------------------------- -- Stored procedure that will select all rows from the table 'rolle' -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_rolle_SelectAll] @iErrorCode int OUTPUT AS SET NOCOUNT ON -- SELECT all rows from the table. SELECT [rollenr], [bezeichnung], [beschreibung], [sysadminrolle], [mandantnr], [aktiv], [erstellt_am], [mutiert_am], [mutierer] FROM [dbo].[rolle] ORDER BY [rollenr] ASC -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- [End of Stored Procedures for table: rolle] -- ======================================================================================================== GO -- ======================================================================================================== -- [Stored Procedures generated for table: Rolle_SecurityObject] GO -- //// Insert Stored procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_Rolle_SecurityObject_Insert]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_Rolle_SecurityObject_Insert] GO --------------------------------------------------------------------------------- -- Stored procedure that will insert 1 row in the table 'Rolle_SecurityObject' -- Gets: @irolle_securityobjectnr int -- Gets: @irollenr int -- Gets: @isecurityobjectnr int -- Gets: @breadonly bit -- Gets: @binvisible bit -- Gets: @baktiv bit -- Gets: @daerstellt_am datetime -- Gets: @damutiert_am datetime -- Gets: @imutierer int -- Gets: @imandantnr int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_Rolle_SecurityObject_Insert] @irolle_securityobjectnr int, @irollenr int, @isecurityobjectnr int, @breadonly bit, @binvisible bit, @baktiv bit, @daerstellt_am datetime, @damutiert_am datetime, @imutierer int, @imandantnr int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- INSERT a new row in the table. INSERT [dbo].[Rolle_SecurityObject] ( [rolle_securityobjectnr], [rollenr], [securityobjectnr], [readonly], [invisible], [aktiv], [erstellt_am], [mutiert_am], [mutierer], [mandantnr] ) VALUES ( @irolle_securityobjectnr, @irollenr, @isecurityobjectnr, @breadonly, @binvisible, @baktiv, @daerstellt_am, @damutiert_am, @imutierer, @imandantnr ) -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Update Stored procedure for updating one single row. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_Rolle_SecurityObject_Update]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_Rolle_SecurityObject_Update] GO --------------------------------------------------------------------------------- -- Stored procedure that will update an existing row in the table 'Rolle_SecurityObject' -- Gets: @irolle_securityobjectnr int -- Gets: @irollenr int -- Gets: @isecurityobjectnr int -- Gets: @breadonly bit -- Gets: @binvisible bit -- Gets: @baktiv bit -- Gets: @daerstellt_am datetime -- Gets: @damutiert_am datetime -- Gets: @imutierer int -- Gets: @imandantnr int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_Rolle_SecurityObject_Update] @irolle_securityobjectnr int, @irollenr int, @isecurityobjectnr int, @breadonly bit, @binvisible bit, @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].[Rolle_SecurityObject] SET [rollenr] = @irollenr, [securityobjectnr] = @isecurityobjectnr, [readonly] = @breadonly, [invisible] = @binvisible, [aktiv] = @baktiv, [erstellt_am] = @daerstellt_am, [mutiert_am] = @damutiert_am, [mutierer] = @imutierer, [mandantnr] = @imandantnr WHERE [rolle_securityobjectnr] = @irolle_securityobjectnr -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Delete Stored procedure using Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_Rolle_SecurityObject_Delete]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_Rolle_SecurityObject_Delete] GO --------------------------------------------------------------------------------- -- Stored procedure that will delete an existing row from the table 'Rolle_SecurityObject' -- using the Primary Key. -- Gets: @irolle_securityobjectnr int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_Rolle_SecurityObject_Delete] @irolle_securityobjectnr int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- DELETE an existing row from the table. DELETE FROM [dbo].[Rolle_SecurityObject] WHERE [rolle_securityobjectnr] = @irolle_securityobjectnr -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Select Stored procedure, based on Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_Rolle_SecurityObject_SelectOne]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_Rolle_SecurityObject_SelectOne] GO --------------------------------------------------------------------------------- -- Stored procedure that will select an existing row from the table 'Rolle_SecurityObject' -- based on the Primary Key. -- Gets: @irolle_securityobjectnr int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_Rolle_SecurityObject_SelectOne] @irolle_securityobjectnr int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- SELECT an existing row from the table. SELECT [rolle_securityobjectnr], [rollenr], [securityobjectnr], [readonly], [invisible], [aktiv], [erstellt_am], [mutiert_am], [mutierer], [mandantnr] FROM [dbo].[Rolle_SecurityObject] WHERE [rolle_securityobjectnr] = @irolle_securityobjectnr -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Select All Stored procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_Rolle_SecurityObject_SelectAll]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_Rolle_SecurityObject_SelectAll] GO --------------------------------------------------------------------------------- -- Stored procedure that will select all rows from the table 'Rolle_SecurityObject' -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_Rolle_SecurityObject_SelectAll] @iErrorCode int OUTPUT AS SET NOCOUNT ON -- SELECT all rows from the table. SELECT [rolle_securityobjectnr], [rollenr], [securityobjectnr], [readonly], [invisible], [aktiv], [erstellt_am], [mutiert_am], [mutierer], [mandantnr] FROM [dbo].[Rolle_SecurityObject] ORDER BY [rolle_securityobjectnr] ASC -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- [End of Stored Procedures for table: Rolle_SecurityObject] -- ======================================================================================================== GO -- ======================================================================================================== -- [Stored Procedures generated for table: rolle_sysadminfunktion] GO -- //// Insert Stored procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_rolle_sysadminfunktion_Insert]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_rolle_sysadminfunktion_Insert] GO --------------------------------------------------------------------------------- -- Stored procedure that will insert 1 row in the table 'rolle_sysadminfunktion' -- Gets: @irolle_sysadminfnktnr int -- Gets: @baktiv bit -- Gets: @daerstellt_am datetime -- Gets: @damutiert_am datetime -- Gets: @imutierer int -- Gets: @isysadminfnktnr int -- Gets: @irollenr int -- Gets: @imandant int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_rolle_sysadminfunktion_Insert] @irolle_sysadminfnktnr int, @baktiv bit, @daerstellt_am datetime, @damutiert_am datetime, @imutierer int, @isysadminfnktnr int, @irollenr int, @imandant int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- INSERT a new row in the table. INSERT [dbo].[rolle_sysadminfunktion] ( [rolle_sysadminfnktnr], [aktiv], [erstellt_am], [mutiert_am], [mutierer], [sysadminfnktnr], [rollenr], [mandant] ) VALUES ( @irolle_sysadminfnktnr, @baktiv, @daerstellt_am, @damutiert_am, @imutierer, @isysadminfnktnr, @irollenr, @imandant ) -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Update Stored procedure for updating one single row. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_rolle_sysadminfunktion_Update]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_rolle_sysadminfunktion_Update] GO --------------------------------------------------------------------------------- -- Stored procedure that will update an existing row in the table 'rolle_sysadminfunktion' -- Gets: @irolle_sysadminfnktnr int -- Gets: @baktiv bit -- Gets: @daerstellt_am datetime -- Gets: @damutiert_am datetime -- Gets: @imutierer int -- Gets: @isysadminfnktnr int -- Gets: @irollenr int -- Gets: @imandant int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_rolle_sysadminfunktion_Update] @irolle_sysadminfnktnr int, @baktiv bit, @daerstellt_am datetime, @damutiert_am datetime, @imutierer int, @isysadminfnktnr int, @irollenr int, @imandant int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- UPDATE an existing row in the table. UPDATE [dbo].[rolle_sysadminfunktion] SET [aktiv] = @baktiv, [erstellt_am] = @daerstellt_am, [mutiert_am] = @damutiert_am, [mutierer] = @imutierer, [sysadminfnktnr] = @isysadminfnktnr, [rollenr] = @irollenr, [mandant] = @imandant WHERE [rolle_sysadminfnktnr] = @irolle_sysadminfnktnr -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Delete Stored procedure using Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_rolle_sysadminfunktion_Delete]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_rolle_sysadminfunktion_Delete] GO --------------------------------------------------------------------------------- -- Stored procedure that will delete an existing row from the table 'rolle_sysadminfunktion' -- using the Primary Key. -- Gets: @irolle_sysadminfnktnr int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_rolle_sysadminfunktion_Delete] @irolle_sysadminfnktnr int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- DELETE an existing row from the table. DELETE FROM [dbo].[rolle_sysadminfunktion] WHERE [rolle_sysadminfnktnr] = @irolle_sysadminfnktnr -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Select Stored procedure, based on Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_rolle_sysadminfunktion_SelectOne]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_rolle_sysadminfunktion_SelectOne] GO --------------------------------------------------------------------------------- -- Stored procedure that will select an existing row from the table 'rolle_sysadminfunktion' -- based on the Primary Key. -- Gets: @irolle_sysadminfnktnr int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_rolle_sysadminfunktion_SelectOne] @irolle_sysadminfnktnr int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- SELECT an existing row from the table. SELECT [rolle_sysadminfnktnr], [aktiv], [erstellt_am], [mutiert_am], [mutierer], [sysadminfnktnr], [rollenr], [mandant] FROM [dbo].[rolle_sysadminfunktion] WHERE [rolle_sysadminfnktnr] = @irolle_sysadminfnktnr -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Select All Stored procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_rolle_sysadminfunktion_SelectAll]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_rolle_sysadminfunktion_SelectAll] GO --------------------------------------------------------------------------------- -- Stored procedure that will select all rows from the table 'rolle_sysadminfunktion' -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_rolle_sysadminfunktion_SelectAll] @iErrorCode int OUTPUT AS SET NOCOUNT ON -- SELECT all rows from the table. SELECT [rolle_sysadminfnktnr], [aktiv], [erstellt_am], [mutiert_am], [mutierer], [sysadminfnktnr], [rollenr], [mandant] FROM [dbo].[rolle_sysadminfunktion] ORDER BY [rolle_sysadminfnktnr] ASC -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- [End of Stored Procedures for table: rolle_sysadminfunktion] -- ======================================================================================================== GO -- ======================================================================================================== -- [Stored Procedures generated for table: SecurityObject] GO -- //// Insert Stored procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_SecurityObject_Insert]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_SecurityObject_Insert] GO --------------------------------------------------------------------------------- -- Stored procedure that will insert 1 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_Insert] @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 -- INSERT a new row in the table. INSERT [dbo].[SecurityObject] ( [SecurityObjectNr], [SecurityForm], [SecurityObjectType], [SecurityObject], [SecurityObjectItem], [SecurityObjectDescriotion], [Level], [Aktiv], [Erstellt_am], [Mutiert_am], [Mutierer], [Mandantnr] ) VALUES ( @iSecurityObjectNr, @sSecurityForm, @sSecurityObjectType, @sSecurityObject, @sSecurityObjectItem, @sSecurityObjectDescriotion, @iLevel, @bAktiv, @daErstellt_am, @daMutiert_am, @iMutierer, @iMandantnr ) -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Update Stored procedure for updating one single row. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_SecurityObject_Update]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_SecurityObject_Update] 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 -- //// Delete Stored procedure using Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_SecurityObject_Delete]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_SecurityObject_Delete] GO --------------------------------------------------------------------------------- -- Stored procedure that will delete an existing row from the table 'SecurityObject' -- using the Primary Key. -- Gets: @iSecurityObjectNr int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_SecurityObject_Delete] @iSecurityObjectNr int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- DELETE an existing row from the table. DELETE FROM [dbo].[SecurityObject] WHERE [SecurityObjectNr] = @iSecurityObjectNr -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Select Stored procedure, based on Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_SecurityObject_SelectOne]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_SecurityObject_SelectOne] GO --------------------------------------------------------------------------------- -- Stored procedure that will select an existing row from the table 'SecurityObject' -- based on the Primary Key. -- Gets: @iSecurityObjectNr int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_SecurityObject_SelectOne] @iSecurityObjectNr int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- SELECT an existing row from the table. SELECT [SecurityObjectNr], [SecurityForm], [SecurityObjectType], [SecurityObject], [SecurityObjectItem], [SecurityObjectDescriotion], [Level], [Aktiv], [Erstellt_am], [Mutiert_am], [Mutierer], [Mandantnr] FROM [dbo].[SecurityObject] WHERE [SecurityObjectNr] = @iSecurityObjectNr -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Select All Stored procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_SecurityObject_SelectAll]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_SecurityObject_SelectAll] GO --------------------------------------------------------------------------------- -- Stored procedure that will select all rows from the table 'SecurityObject' -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_SecurityObject_SelectAll] @iErrorCode int OUTPUT AS SET NOCOUNT ON -- SELECT all rows from the table. SELECT [SecurityObjectNr], [SecurityForm], [SecurityObjectType], [SecurityObject], [SecurityObjectItem], [SecurityObjectDescriotion], [Level], [Aktiv], [Erstellt_am], [Mutiert_am], [Mutierer], [Mandantnr] FROM [dbo].[SecurityObject] ORDER BY [SecurityObjectNr] ASC -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- [End of Stored Procedures for table: SecurityObject] -- ======================================================================================================== GO -- ======================================================================================================== -- [Stored Procedures generated for table: spalten] GO -- //// Insert Stored procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_spalten_Insert]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_spalten_Insert] 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 -- //// Update Stored procedure for updating one single row. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_spalten_Update]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_spalten_Update] GO --------------------------------------------------------------------------------- -- Stored procedure that will update an existing 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_Update] @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 -- UPDATE an existing row in the table. UPDATE [dbo].[spalten] SET [tabelle] = @stabelle, [tabellenspalte] = @stabellenspalte, [spalte] = @sspalte, [Readonly] = @bReadonly, [alsHacken] = @balsHacken, [Breite] = @iBreite, [Reihenfolge] = @iReihenfolge, [tiptext] = @stiptext, [aktiv] = @baktiv, [erstellt_am] = @daerstellt_am, [mutiert_am] = @damutiert_am, [mutierer] = @imutierer, [mandantnr] = @imandantnr, [NumberFormat] = @sNumberFormat WHERE [eintragnr] = @ieintragnr -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Delete Stored procedure using Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_spalten_Delete]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_spalten_Delete] GO --------------------------------------------------------------------------------- -- Stored procedure that will delete an existing row from the table 'spalten' -- using the Primary Key. -- Gets: @ieintragnr int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_spalten_Delete] @ieintragnr int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- DELETE an existing row from the table. DELETE FROM [dbo].[spalten] WHERE [eintragnr] = @ieintragnr -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Select Stored procedure, based on Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_spalten_SelectOne]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_spalten_SelectOne] GO --------------------------------------------------------------------------------- -- Stored procedure that will select an existing row from the table 'spalten' -- based on the Primary Key. -- Gets: @ieintragnr int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_spalten_SelectOne] @ieintragnr int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- SELECT an existing row from the table. SELECT [eintragnr], [tabelle], [tabellenspalte], [spalte], [Readonly], [alsHacken], [Breite], [Reihenfolge], [tiptext], [aktiv], [erstellt_am], [mutiert_am], [mutierer], [mandantnr], [NumberFormat] FROM [dbo].[spalten] WHERE [eintragnr] = @ieintragnr -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Select All Stored procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_spalten_SelectAll]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_spalten_SelectAll] GO --------------------------------------------------------------------------------- -- Stored procedure that will select all rows from the table 'spalten' -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_spalten_SelectAll] @iErrorCode int OUTPUT AS SET NOCOUNT ON -- SELECT all rows from the table. SELECT [eintragnr], [tabelle], [tabellenspalte], [spalte], [Readonly], [alsHacken], [Breite], [Reihenfolge], [tiptext], [aktiv], [erstellt_am], [mutiert_am], [mutierer], [mandantnr], [NumberFormat] FROM [dbo].[spalten] ORDER BY [eintragnr] ASC -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- [End of Stored Procedures for table: spalten] -- ======================================================================================================== GO -- ======================================================================================================== -- [Stored Procedures generated for table: sysadminfunktion] GO -- //// Insert Stored procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_sysadminfunktion_Insert]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_sysadminfunktion_Insert] GO --------------------------------------------------------------------------------- -- Stored procedure that will insert 1 row in the table 'sysadminfunktion' -- Gets: @isysadminfnktnr int -- Gets: @sbezeichnung varchar(255) -- Gets: @iParentID int -- Gets: @iSort int -- Gets: @iImageIndex int -- Gets: @iImageIndexOpen int -- Gets: @iftop int -- Gets: @ifleft int -- Gets: @ifwidth int -- Gets: @ifheight int -- Gets: @sbeschreibung varchar(255) -- Gets: @imandantnr int -- Gets: @isprache int -- Gets: @baktiv bit -- Gets: @daerstellt_am datetime -- Gets: @damutiert_am datetime -- Gets: @imutierer int -- Gets: @sDomaintable varchar(255) -- Gets: @sKeyFields varchar(255) -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_sysadminfunktion_Insert] @isysadminfnktnr int, @sbezeichnung varchar(255), @iParentID int, @iSort int, @iImageIndex int, @iImageIndexOpen int, @iftop int, @ifleft int, @ifwidth int, @ifheight int, @sbeschreibung varchar(255), @imandantnr int, @isprache int, @baktiv bit, @daerstellt_am datetime, @damutiert_am datetime, @imutierer int, @sDomaintable varchar(255), @sKeyFields varchar(255), @iErrorCode int OUTPUT AS SET NOCOUNT ON -- INSERT a new row in the table. INSERT [dbo].[sysadminfunktion] ( [sysadminfnktnr], [bezeichnung], [ParentID], [Sort], [ImageIndex], [ImageIndexOpen], [ftop], [fleft], [fwidth], [fheight], [beschreibung], [mandantnr], [sprache], [aktiv], [erstellt_am], [mutiert_am], [mutierer], [Domaintable], [KeyFields] ) VALUES ( @isysadminfnktnr, @sbezeichnung, @iParentID, @iSort, @iImageIndex, @iImageIndexOpen, @iftop, @ifleft, @ifwidth, @ifheight, @sbeschreibung, @imandantnr, @isprache, @baktiv, @daerstellt_am, @damutiert_am, @imutierer, @sDomaintable, @sKeyFields ) -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Update Stored procedure for updating one single row. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_sysadminfunktion_Update]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_sysadminfunktion_Update] GO --------------------------------------------------------------------------------- -- Stored procedure that will update an existing row in the table 'sysadminfunktion' -- Gets: @isysadminfnktnr int -- Gets: @sbezeichnung varchar(255) -- Gets: @iParentID int -- Gets: @iSort int -- Gets: @iImageIndex int -- Gets: @iImageIndexOpen int -- Gets: @iftop int -- Gets: @ifleft int -- Gets: @ifwidth int -- Gets: @ifheight int -- Gets: @sbeschreibung varchar(255) -- Gets: @imandantnr int -- Gets: @isprache int -- Gets: @baktiv bit -- Gets: @daerstellt_am datetime -- Gets: @damutiert_am datetime -- Gets: @imutierer int -- Gets: @sDomaintable varchar(255) -- Gets: @sKeyFields varchar(255) -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_sysadminfunktion_Update] @isysadminfnktnr int, @sbezeichnung varchar(255), @iParentID int, @iSort int, @iImageIndex int, @iImageIndexOpen int, @iftop int, @ifleft int, @ifwidth int, @ifheight int, @sbeschreibung varchar(255), @imandantnr int, @isprache int, @baktiv bit, @daerstellt_am datetime, @damutiert_am datetime, @imutierer int, @sDomaintable varchar(255), @sKeyFields varchar(255), @iErrorCode int OUTPUT AS SET NOCOUNT ON -- UPDATE an existing row in the table. UPDATE [dbo].[sysadminfunktion] SET [bezeichnung] = @sbezeichnung, [ParentID] = @iParentID, [Sort] = @iSort, [ImageIndex] = @iImageIndex, [ImageIndexOpen] = @iImageIndexOpen, [ftop] = @iftop, [fleft] = @ifleft, [fwidth] = @ifwidth, [fheight] = @ifheight, [beschreibung] = @sbeschreibung, [mandantnr] = @imandantnr, [sprache] = @isprache, [aktiv] = @baktiv, [erstellt_am] = @daerstellt_am, [mutiert_am] = @damutiert_am, [mutierer] = @imutierer, [Domaintable] = @sDomaintable, [KeyFields] = @sKeyFields WHERE [sysadminfnktnr] = @isysadminfnktnr -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Delete Stored procedure using Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_sysadminfunktion_Delete]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_sysadminfunktion_Delete] GO --------------------------------------------------------------------------------- -- Stored procedure that will delete an existing row from the table 'sysadminfunktion' -- using the Primary Key. -- Gets: @isysadminfnktnr int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_sysadminfunktion_Delete] @isysadminfnktnr int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- DELETE an existing row from the table. DELETE FROM [dbo].[sysadminfunktion] WHERE [sysadminfnktnr] = @isysadminfnktnr -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Select Stored procedure, based on Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_sysadminfunktion_SelectOne]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_sysadminfunktion_SelectOne] GO --------------------------------------------------------------------------------- -- Stored procedure that will select an existing row from the table 'sysadminfunktion' -- based on the Primary Key. -- Gets: @isysadminfnktnr int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_sysadminfunktion_SelectOne] @isysadminfnktnr int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- SELECT an existing row from the table. SELECT [sysadminfnktnr], [bezeichnung], [ParentID], [Sort], [ImageIndex], [ImageIndexOpen], [ftop], [fleft], [fwidth], [fheight], [beschreibung], [mandantnr], [sprache], [aktiv], [erstellt_am], [mutiert_am], [mutierer], [Domaintable], [KeyFields] FROM [dbo].[sysadminfunktion] WHERE [sysadminfnktnr] = @isysadminfnktnr -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Select All Stored procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_sysadminfunktion_SelectAll]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_sysadminfunktion_SelectAll] GO --------------------------------------------------------------------------------- -- Stored procedure that will select all rows from the table 'sysadminfunktion' -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_sysadminfunktion_SelectAll] @iErrorCode int OUTPUT AS SET NOCOUNT ON -- SELECT all rows from the table. SELECT [sysadminfnktnr], [bezeichnung], [ParentID], [Sort], [ImageIndex], [ImageIndexOpen], [ftop], [fleft], [fwidth], [fheight], [beschreibung], [mandantnr], [sprache], [aktiv], [erstellt_am], [mutiert_am], [mutierer], [Domaintable], [KeyFields] FROM [dbo].[sysadminfunktion] ORDER BY [sysadminfnktnr] ASC -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- [End of Stored Procedures for table: sysadminfunktion] -- ======================================================================================================== GO -- ======================================================================================================== -- [Stored Procedures generated for table: ToolTip] GO -- //// Insert Stored procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_ToolTip_Insert]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_ToolTip_Insert] GO --------------------------------------------------------------------------------- -- Stored procedure that will insert 1 row in the table 'ToolTip' -- Gets: @iToolTipNr int -- Gets: @sFormularName varchar(50) -- Gets: @sControlName varchar(50) -- Gets: @sToolTip varchar(1024) -- Gets: @bAktiv bit -- Gets: @daErstellt_am datetime -- Gets: @daMutiert_am datetime -- Gets: @iMutierer int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_ToolTip_Insert] @iToolTipNr int, @sFormularName varchar(50), @sControlName varchar(50), @sToolTip varchar(1024), @bAktiv bit, @daErstellt_am datetime, @daMutiert_am datetime, @iMutierer int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- INSERT a new row in the table. INSERT [dbo].[ToolTip] ( [ToolTipNr], [FormularName], [ControlName], [ToolTip], [Aktiv], [Erstellt_am], [Mutiert_am], [Mutierer] ) VALUES ( @iToolTipNr, @sFormularName, @sControlName, @sToolTip, @bAktiv, @daErstellt_am, @daMutiert_am, @iMutierer ) -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Update Stored procedure for updating one single row. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_ToolTip_Update]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_ToolTip_Update] GO --------------------------------------------------------------------------------- -- Stored procedure that will update an existing row in the table 'ToolTip' -- Gets: @iToolTipNr int -- Gets: @sFormularName varchar(50) -- Gets: @sControlName varchar(50) -- Gets: @sToolTip varchar(1024) -- Gets: @bAktiv bit -- Gets: @daErstellt_am datetime -- Gets: @daMutiert_am datetime -- Gets: @iMutierer int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_ToolTip_Update] @iToolTipNr int, @sFormularName varchar(50), @sControlName varchar(50), @sToolTip varchar(1024), @bAktiv bit, @daErstellt_am datetime, @daMutiert_am datetime, @iMutierer int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- UPDATE an existing row in the table. UPDATE [dbo].[ToolTip] SET [FormularName] = @sFormularName, [ControlName] = @sControlName, [ToolTip] = @sToolTip, [Aktiv] = @bAktiv, [Erstellt_am] = @daErstellt_am, [Mutiert_am] = @daMutiert_am, [Mutierer] = @iMutierer WHERE [ToolTipNr] = @iToolTipNr -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Delete Stored procedure using Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_ToolTip_Delete]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_ToolTip_Delete] GO --------------------------------------------------------------------------------- -- Stored procedure that will delete an existing row from the table 'ToolTip' -- using the Primary Key. -- Gets: @iToolTipNr int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_ToolTip_Delete] @iToolTipNr int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- DELETE an existing row from the table. DELETE FROM [dbo].[ToolTip] WHERE [ToolTipNr] = @iToolTipNr -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Select Stored procedure, based on Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_ToolTip_SelectOne]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_ToolTip_SelectOne] GO --------------------------------------------------------------------------------- -- Stored procedure that will select an existing row from the table 'ToolTip' -- based on the Primary Key. -- Gets: @iToolTipNr int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_ToolTip_SelectOne] @iToolTipNr int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- SELECT an existing row from the table. SELECT [ToolTipNr], [FormularName], [ControlName], [ToolTip], [Aktiv], [Erstellt_am], [Mutiert_am], [Mutierer] FROM [dbo].[ToolTip] WHERE [ToolTipNr] = @iToolTipNr -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Select All Stored procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_ToolTip_SelectAll]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_ToolTip_SelectAll] GO --------------------------------------------------------------------------------- -- Stored procedure that will select all rows from the table 'ToolTip' -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_ToolTip_SelectAll] @iErrorCode int OUTPUT AS SET NOCOUNT ON -- SELECT all rows from the table. SELECT [ToolTipNr], [FormularName], [ControlName], [ToolTip], [Aktiv], [Erstellt_am], [Mutiert_am], [Mutierer] FROM [dbo].[ToolTip] ORDER BY [ToolTipNr] ASC -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- [End of Stored Procedures for table: ToolTip] -- ======================================================================================================== GO