USE [Vertragsverwaltung_20160404] GO /****** Object: StoredProcedure [dbo].[pr_ApplikationVersion_SelectAll_Bottomtable] Script Date: 02.12.2016 09:08:54 ******/ DROP PROCEDURE [dbo].[pr_ApplikationVersion_SelectAll_Bottomtable] GO /****** Object: StoredProcedure [dbo].[pr_ApplikationVersion_SelectAll_Bottomtable] Script Date: 02.12.2016 09:08:54 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO --------------------------------------------------------------------------------- -- Stored procedure that will select all rows from the table 'Applikationabhaengigkeit' -- Returns: @iErrorCode int --------------------------------------------------------------------------------- Create PROCEDURE [dbo].[pr_ApplikationVersion_SelectAll_Bottomtable] @iErrorCode int OUTPUT, @Fokus int, @KeyValue int, @mitarbeiternr int AS SET NOCOUNT ON SET NOCOUNT ON -- SELECT all rows from the table. SELECT [ApplikationVersionNr], [ApplikationNr], [Version], [Bemerkung], [Eingesetzt], [aktiv], [erstellt_am], [mutiert_am], [mutierer] FROM [dbo].[ApplikationVersion] where dbo.applikationversion.[ApplikationNr]=@keyvalue --and dbo.Applikationabhaengigkeit.SecurityLevelnrin (select SecurityLevelNr from dbo.Get_SecurityLevelTab(@mitarbeiternr)) ORDER BY [ApplikationVersionNr] ASC SELECT @iErrorCode=@@ERROR GO