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.
| # | 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_GetVISNIdByIdentifier.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_GetVISNIdByIdentifier.UserDefinedFunction.sql | Thu Oct 26 19:48:33 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 66 |
| Changed | 1 | 2 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| 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 |
No regular expressions were active.
| 1 | /****** Ob ject: Use rDefinedFu nction [db o].[ufn_Ge tVISNIdByI dentifier] Script 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_G etVISNIdBy Identifier ]') AND ty pe in (N'F N', N'IF', N'TF', N' FS', N'FT' )) | |
| 3 | DROP FUNCT ION [dbo]. [ufn_GetVI SNIdByIden tifier] | |
| 4 | GO | |
| 5 | ||
| 6 | SET ANSI_N ULLS ON | |
| 7 | GO | |
| 8 | SET QUOTED _IDENTIFIE R ON | |
| 9 | GO | |
| 10 | -- ======= ========== ========== ========== ======== | |
| 11 | -- Author:
|
|
| 12 | -- Create date: 02/1 8/2012 | |
| 13 | -- Descrip tion: Get visn id by Ien | |
| 14 | -- ======= ========== ========== ========== ======== | |
| 15 | CREATE FUN CTION [dbo ].[ufn_Get VISNIdById entifier] | |
| 16 | ( | |
| 17 | @V ISN_IDENTI FIER nvarc har(250) | |
| 18 | ) | |
| 19 | RETURNS IN T | |
| 20 | AS | |
| 21 | BEGIN | |
| 22 | ||
| 23 | DE CLARE @VIS N_ID INT | |
| 24 | SE LECT @VIS N_ID = VIS N.ID | |
| 25 | FROM d bo.DIM_ORG ANIZATION AS VISN | |
| 26 | INNER JOIN dbo.D IM_ORGANIZ ATION_TYPE ORGANIZAT ION_TYPE O N ORGANIZA TION_TYPE. ID=VISN.DI M_ORGANIZA TION_TYPE_ ID | |
| 27 | WHERE VISN.SOURC E_ID = @VI SN_IDENTIF IER AND OR GANIZATION _TYPE.CODE = 'VISN' AND VISN.S TATUS='act ive'; | |
| 28 | ||
| 29 | IF @VISN_ID IS NULL | |
| 30 | SET @VISN_ID = 0; | |
| 31 | ||
| 32 | RE TURN @VISN _ID | |
| 33 | END | |
| 34 | GO |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.