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.
ITSM/.svn/pristine/2c/2c88785e6e708515316e79d71e5...

41 lines
2.5 KiB

USE [Vertragsverwaltung_20160404]
GO
/****** Object: StoredProcedure [dbo].[pr_rolle_sysadminfunktion_SelectOne] Script Date: 02.12.2016 09:08:54 ******/
DROP PROCEDURE [dbo].[pr_rolle_sysadminfunktion_SelectOne]
GO
/****** Object: StoredProcedure [dbo].[pr_rolle_sysadminfunktion_SelectOne] Script Date: 02.12.2016 09:08:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
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