151. EPMO Open Source Coordination Office Redaction File Detail Report

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

151.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\4.Stored Procedures dbo.usp_Insert_Logged_User.sql Wed Oct 23 12:51:11 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\4.Stored Procedures dbo.usp_Insert_Logged_User.sql Thu Oct 26 15:44:58 2017 UTC

151.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 3 96
Changed 2 6
Inserted 0 0
Removed 0 0

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

151.4 Active regular expressions

No regular expressions were active.

151.5 Comparison detail

  1   /****** Ob ject:  Sto redProcedu re [dbo].[ usp_Insert _Logged_Us er]    Scr ipt Date:  03/22/2012  11:04:49  ******/
  2   IF  EXISTS  (SELECT *  FROM sys. objects WH ERE object _id = OBJE CT_ID(N'[d bo].[usp_I nsert_Logg ed_User]')  AND type  in (N'P',  N'PC'))
  3   DROP PROCE DURE [dbo] .[usp_Inse rt_Logged_ User]
  4   GO
  5   SET ANSI_N ULLS ON
  6   GO
  7   SET QUOTED _IDENTIFIE R ON
  8   GO
  9   -- ======= ========== ========== ========== ========
  10   -- Author:                 PII
  11   -- Create  date: 05.0 6.2012
  12   -- Descrip tion: Inse rt logged  user.
  13   -- ======= ========== ========== ========== ========
  14   CREATE PRO CEDURE [db o].[usp_In sert_Logge d_User]
  15           @S ESSION_ID 
VARCHAR(15 0),
  16           @U SER_NAME 
VARCHAR(25 0),         
  17           @F ACILITY_UI D UNIQUEID ENTIFIER,
  18           @V ISN_UID UN IQUEIDENTI FIER
  19   AS
  20   BEGIN
  21   SET NOCOUN T ON
  22  
  23           IF  (@SESSION _ID = 'Del ete' AND @ USER_NAME  = 'Delete' )
  24                    -- C LEAR ALL L OGGED USER S FROM THE  DATABASE
  25                    BEGI N
  26                             DELETE  FROM LOGG ED_USER 
  27                             DELETE  FROM SECU RITY_TOKEN
  28                    END
  29           EL SE
  30                    BEGI N
  31                             IF EXI STS (SELEC T * FROM L OGGED_USER  WHERE SES SION_ID =  @SESSION_I D)
  32                                      DELETE F ROM LOGGED _USER WHER E SESSION_ ID = @SESS ION_ID
  33                                      
  34                             INSERT  INTO LOGG ED_USER
  35                                      (
  36                                               [SESSION_I D], 
  37                                               [USER_NAME ], 
  38                                               [FACILITY_ UID], 
  39                                               [VISN_UID]
  40                                      )
  41                             VALUES
  42                                      (
  43                                               @SESSION_I D, 
  44                                               @USER_NAME
  45                                               @FACILITY_ UID, 
  46                                               @VISN_UID
  47                                      )       
  48                    END
  49           
  50   END
  51   GO