USE [Vertragsverwaltung_20160404] GO /****** Object: StoredProcedure [dbo].[pr_ServiceKatalog_SLAKatalog_SelectAll_Bottomtable] Script Date: 02.12.2016 09:08:54 ******/ DROP PROCEDURE [dbo].[pr_ServiceKatalog_SLAKatalog_SelectAll_Bottomtable] GO /****** Object: StoredProcedure [dbo].[pr_ServiceKatalog_SLAKatalog_SelectAll_Bottomtable] Script Date: 02.12.2016 09:08:54 ******/ SET ANSI_NULLS OFF GO SET QUOTED_IDENTIFIER ON GO --------------------------------------------------------------------------------- -- Stored procedure that will select all rows from the table 'funktionsgruppe_rolle' -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_ServiceKatalog_SLAKatalog_SelectAll_Bottomtable] @iErrorCode int OUTPUT, @Fokus int, @KeyValue int, @mitarbeiternr int AS SET NOCOUNT ON SELECT dbo.ServiceKatalog_SLAKatalog.ServiceKatalog_SLAKatalognr, dbo.ServiceKatalog_SLAKatalog.ServiceKatalognr, dbo.ServiceKatalog_SLAKatalog.SLAKatalogNr, dbo.ServiceKatalog_SLAKatalog.Aktiv, dbo.ServiceKatalog_SLAKatalog.Erstellt_am, dbo.ServiceKatalog_SLAKatalog.Mutiert_am, dbo.ServiceKatalog_SLAKatalog.Mutierer, dbo.ServiceKatalog_SLAKatalog.Mandantnr, dbo.SLATyp.Bezeichnung AS SLATyp, dbo.SLASubTyp.Bezeichnung AS SLASubTyp, dbo.SLAKatalog.Zeit, dbo.Zeiteinheittyp.Bezeichnung AS Zeiteinheit FROM dbo.SLAKatalog INNER JOIN dbo.SLA ON dbo.SLAKatalog.SLANr = dbo.SLA.SLANr INNER JOIN dbo.SLATyp ON dbo.SLA.SLATypNr = dbo.SLATyp.SLATypNr INNER JOIN dbo.SLASubTyp ON dbo.SLA.SLASubTypNr = dbo.SLASubTyp.SLASubTypNr INNER JOIN dbo.Zeiteinheittyp ON dbo.SLAKatalog.Zeiteinheittypnr = dbo.Zeiteinheittyp.Zeiteinheittypnr INNER JOIN dbo.ServiceKatalog_SLAKatalog ON dbo.SLAKatalog.SLAKatalogNr = dbo.ServiceKatalog_SLAKatalog.SLAKatalogNr WHERE (dbo.servicekatalog_slakatalog.servicekatalognr = @keyvalue) and dbo.SLAKatalog.SecurityLevelin (select SecurityLevelNr from dbo.Get_SecurityLevelTab(@mitarbeiternr)) SELECT @iErrorCode=@@ERROR GO