856. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 10/26/2017 10:44:49 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.

856.1 Files compared

# Location File Last Modified
1 OSCIF_BMS_v2_iter 2_September_2017.zip\BMS_Cand\Source\Sources\Database\CreationScripts\BMS_DW\2.Functions dbo.ufn_Split.UserDefinedFunction.sql Wed Oct 18 19:15:50 2017 UTC
2 OSCIF_BMS_v2_iter 2_September_2017.zip\BMS_Cand\Source\Sources\Database\CreationScripts\BMS_DW\2.Functions dbo.ufn_Split.UserDefinedFunction.sql Thu Oct 26 19:48:33 2017 UTC

856.2 Comparison summary

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

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

856.4 Active regular expressions

No regular expressions were active.

856.5 Comparison detail

  1   /****** Ob ject:  Use rDefinedFu nction [db o].[ufn_Sp lit]    Sc ript Date:  03/21/201 2 16:03:44  ******/
  2   IF  EXISTS  (SELECT *  FROM sys. objects WH ERE object _id = OBJE CT_ID(N'[d bo].[ufn_S plit]') AN D type in  (N'FN', N' IF', N'TF' , N'FS', N 'FT'))
  3   DROP FUNCT ION [dbo]. [ufn_Split ]
  4   GO
  5  
  6   SET ANSI_N ULLS ON
  7   GO
  8   SET QUOTED _IDENTIFIE R ON
  9   GO
  10   -- ======= ========== ========== ========== ========
  11   -- Author:                
P II
  12   -- Create  date: 10/1 9/2011
  13   -- Descrip tion: Spli t a string  by delimi ter
  14   -- ======= ========== ========== ========== ========
  15   CREATE FUN CTION [dbo ].[ufn_Spl it](@text  varchar(MA X), @delim iter varch ar(20) = '  ')
  16   RETURNS @S trings TAB LE
  17   (   
  18     ID int I DENTITY PR IMARY KEY,
  19     VALUE NV ARCHAR(250 )
  20   )
  21   AS
  22   BEGIN
  23   DECLARE @i ndex int
  24   SET @index  = -1
  25   WHILE (LEN (@text) >  0)
  26     BEGIN 
  27       SET @i ndex = CHA RINDEX(@de limiter ,  @text) 
  28       
  29       IF (@i ndex = 0)  AND (LEN(@ text) > 0)  
  30         BEGI N  
  31           IN SERT INTO  @Strings V ALUES (@te xt)
  32              BREAK 
  33         END 
  34  
  35       IF (@i ndex > 1) 
  36         BEGI N  
  37           IN SERT INTO  @Strings V ALUES (LEF T(@text, @ index - 1) )  
  38           SE T @text =  RIGHT(@tex t, (LEN(@t ext) - @in dex)) 
  39         END 
  40       ELSE
  41         SET  @text = RI GHT(@text,  (LEN(@tex t) - @inde x))
  42       END
  43     RETURN
  44   END
  45   GO