202. 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.

202.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_GetCurrentDomain.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_GetCurrentDomain.UserDefinedFunction.sql Thu Oct 26 15:57:31 2017 UTC

202.2 Comparison summary

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

202.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

202.4 Active regular expressions

No regular expressions were active.

202.5 Comparison detail

  1   /****** Ob ject:  Use rDefinedFu nction [db o].[ufn_RP T_GetCurre ntDomain]     Script  Date: 03/2 1/2012 16: 03:44 **** **/
  2   IF  EXISTS  (SELECT *  FROM sys. objects WH ERE object _id = OBJE CT_ID(N'[d bo].[ufn_R PT_GetCurr entDomain] ') AND typ e in (N'FN ', N'IF',  N'TF', N'F S', N'FT') )
  3   DROP FUNCT ION [dbo]. [ufn_RPT_G etCurrentD omain]
  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 _GetCurren tDomain](@ user_name 
VARCHAR(50 0))
  12   RETURNS IN
  13   AS
  14   BEGIN
  15  
  16           DE CLARE @PK_ DimDomain  INT
  17  
  18           SE LECT @PK_D imDomain =  d.ID
  19           FR OM dbo.DIM _PERMISSIO N p
  20                    INNE R JOIN  db o.DIM_DOMA IN_USER u  ON p.SID =  u.SID       
  21                    INNE R JOIN dbo .DIM_DOMAI N d ON p.R ESOURCE_EX TENSION =  d.SOURCE_I D
  22           WH ERE p.PERM ISSION_NAM E = 'HM, C urrentDoma in' AND
  23                    u.[U SER_NAME]  = dbo.ufn_ RPT_Extrac tUserName( @user_name
  24                    AND  u.Domain =  ISNULL(db o.ufn_RPT_ ExtractDom ain(@user_ name), u.D omain)  
  25           GR OUP BY d.I D
  26           
  27           RE TURN @PK_D imDomain
  28           
  29   END
  30   GO