35 lines
1.1 KiB
Transact-SQL
35 lines
1.1 KiB
Transact-SQL
-- ================================================
|
|
-- Template generated from Template Explorer using:
|
|
-- Create Procedure (New Menu).SQL
|
|
--
|
|
-- Use the Specify Values for Template Parameters
|
|
-- command (Ctrl-Shift-M) to fill in the parameter
|
|
-- values below.
|
|
--
|
|
-- This block of comments will not be included in
|
|
-- the definition of the procedure.
|
|
-- ================================================
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
-- =============================================
|
|
-- Author: somo
|
|
-- Create date: 2015-09-24
|
|
-- Description: Összes funkció jogosultság lekérdezése.
|
|
-- =============================================
|
|
CREATE PROCEDURE sp_GetAllRoleFunctions
|
|
AS
|
|
BEGIN
|
|
-- SET NOCOUNT ON added to prevent extra result sets from
|
|
-- interfering with SELECT statements.
|
|
SET NOCOUNT ON;
|
|
|
|
-- Insert statements for procedure here
|
|
select r.C_ROLENAME RoleName, f.C_FUNCTIONID FunctionId, rf.C_VALIDFROM ValidFrom, rf.C_VALIDTO ValidTo
|
|
from T_ROLEFUNCTIONS rf
|
|
JOIN T_ROLES r on r.ID = rf.C_ROLESID
|
|
JOIN T_FUNCTIONS f on f.ID = rf.C_FUNCTIONSID
|
|
where rf.C_ENABLED = 'T'
|
|
END
|
|
GO
|