203. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 10/26/2017 10:43:17 PM Eastern Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

203.1 Files compared

# Location File Last Modified
1 OSCIF_BMS_v2_iter 2_September_2017.zip\BMS_Cand\BMS_Build_C72898\BMS_Source-BuildC72898.zip\C72898\Source\Sources\Database\CreationScripts\BMS_DW\2.Functions dbo.ufn_RPT_Permission.UserDefinedFunction.sql Wed Oct 23 12:51:17 2013 UTC
2 OSCIF_BMS_v2_iter 2_September_2017.zip\BMS_Cand\BMS_Build_C72898\BMS_Source-BuildC72898.zip\C72898\Source\Sources\Database\CreationScripts\BMS_DW\2.Functions dbo.ufn_RPT_Permission.UserDefinedFunction.sql Thu Oct 26 15:57:31 2017 UTC

203.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 118
Changed 1 2
Inserted 0 0
Removed 0 0

203.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

203.4 Active regular expressions

No regular expressions were active.

203.5 Comparison detail

  1   /****** Ob ject:  Use rDefinedFu nction [db o].[ufn_RP T_Permissi on]    Scr ipt Date:  03/21/2012  16:03:44  ******/
  2   IF  EXISTS  (SELECT *  FROM sys. objects WH ERE object _id = OBJE CT_ID(N'[d bo].[ufn_R PT_Permiss ion]') AND  type in ( N'FN', N'I F', N'TF',  N'FS', N' FT'))
  3   DROP FUNCT ION [dbo]. [ufn_RPT_P ermission]
  4   GO
  5  
  6   SET ANSI_N ULLS ON
  7   GO
  8   SET QUOTED _IDENTIFIE R ON
  9   GO
  10  
  11   CREATE FUN CTION [dbo ].[ufn_RPT _Permissio n](@user_n ame 
VARCHAR(50 0))
  12   RETURNS @p ermission  TABLE 
  13   (
  14           DI M_ORGANIZA TION_ID IN T
  15   )
  16   AS
  17   BEGIN
  18  
  19           IF  EXISTS(
  20                    SELE CT 1
  21                    FROM  dbo.DIM_P ERMISSION  p
  22                    INNE R JOIN 
  23                             (
  24                             SELECT  u.SID AS  UserSID, g .SID AS Gr oupSID
  25                             FROM d bo.DIM_DOM AIN_USER u
  26                                      LEFT JOI N dbo.DOMA IN_USER_GR OUP gu ON  u.ID = gu. DIM_DOMAIN _USER_ID
  27                                      LEFT JOI N dbo.DIM_ DOMAIN_GRO UP g ON gu .DIM_DOMAI N_GROUP_ID  = g.ID
  28                             WHERE  u.[USER_NA ME] = dbo. ufn_RPT_Ex tractUserN ame(@user_ name) 
  29                                      AND u.DO MAIN = ISN ULL(dbo.uf n_RPT_Extr actDomain( @user_name ), u.DOMAI N)
  30                             )u ON  p.SID = u. UserSID OR  p.SID = u .GroupSID
  31                    WHER E p.IS_SUP ER_USER =  1)
  32           BE GIN   
  33                                      
  34                             INSERT  INTO @per mission
  35                             SELECT  do.ID FRO M dbo.DIM_ ORGANIZATI ON do inne r join dbo .DIM_ORGAN IZATION_TY PE dot
  36                                      ON do.DI M_ORGANIZA TION_TYPE_ ID = dot.I D
  37                                      WHERE do t.CODE = ' FAC'
  38                             
  39           EN D
  40           EL SE 
  41           BE GIN   
  42                    INSE RT INTO @p ermission
  43                    SELE CT p.DIM_O RGANIZATIO N_ID
  44                    FROM  dbo.DIM_P ERMISSION  p
  45                    INNE R JOIN 
  46                             (
  47                             SELECT  u.SID AS  UserSID, g .SID AS Gr oupSID
  48                             FROM d bo.DIM_DOM AIN_USER u
  49                                      LEFT JOI N dbo.DOMA IN_USER_GR OUP gu ON  u.ID = gu. DIM_DOMAIN _USER_ID
  50                                      LEFT JOI N dbo.DIM_ DOMAIN_GRO UP g ON gu .DIM_DOMAI N_GROUP_ID  = g.ID
  51                             WHERE  u.[USER_NA ME] = dbo. ufn_RPT_Ex tractUserN ame(@user_ name) 
  52                                      AND u.DO MAIN = ISN ULL(dbo.uf n_RPT_Extr actDomain( @user_name ), u.DOMAI N)
  53                             )u ON  p.SID = u. UserSID OR  p.SID = u .GroupSID
  54                    WHER E p.PERMIS SION_NAME  = 'HM, Rea d' AND (p. DIM_ORGANI ZATION_ID  IS NOT NUL L)
  55                    GROU P BY p.DIM _ORGANIZAT ION_ID
  56           EN D
  57           
  58           RE TURN
  59   END
  60   GO