USE [Vertragsverwaltung_20160404] GO /****** Object: StoredProcedure [dbo].[pr_sla_selectall_active] Script Date: 02.12.2016 09:08:54 ******/ DROP PROCEDURE [dbo].[pr_sla_selectall_active] GO /****** Object: StoredProcedure [dbo].[pr_sla_selectall_active] Script Date: 02.12.2016 09:08:54 ******/ SET ANSI_NULLS OFF GO SET QUOTED_IDENTIFIER OFF GO --------------------------------------------------------------------------------- -- Stored procedure that will select all rows from the table 'rolle_sysadminfunktion' -- Returns: @iErrorCode int --------------------------------------------------------------------------------- Create PROCEDURE [dbo].[pr_sla_selectall_active] AS SET NOCOUNT ON SELECT dbo.SLA.SLANr, dbo.SLATyp.Bezeichnung + ' | ' + dbo.SLASubTyp.Bezeichnung AS SLA FROM dbo.SLA INNER JOIN dbo.SLATyp ON dbo.SLA.SLATypNr = dbo.SLATyp.SLATypNr INNER JOIN dbo.SLASubTyp ON dbo.SLA.SLASubTypNr = dbo.SLASubTyp.SLASubTypNr where sla.aktiv=1 ORDER BY dbo.slatyp.bezeichnung, slasubtyp.bezeichnung GO