Produced by Araxis Merge on 10/26/2017 10:43:14 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\BMS_Build_C72898\BMS_Source-BuildC72898.zip\C72898\Source\Sources\Database\CreationScripts\BMS\2.Functions | dbo.fn_Get_Icon_Id_Order.sql | Wed Oct 23 12:51:08 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\2.Functions | dbo.fn_Get_Icon_Id_Order.sql | Thu Oct 26 15:35:49 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 104 |
| 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].[fn_Get _Icon_Id_O rder] S cript Date : 03/22/20 12 10:39:3 2 ******/ | |
| 2 | IF EXISTS (SELECT * FROM sys. objects WH ERE object _id = OBJE CT_ID(N'[d bo].[fn_Ge t_Icon_Id_ Order]') A ND type in (N'FN', N 'IF', N'TF ', N'FS', N'FT')) | |
| 3 | DROP FUNCT ION [dbo]. [fn_Get_Ic on_Id_Orde r] | |
| 4 | GO | |
| 5 | ||
| 6 | SET ANSI_N ULLS ON | |
| 7 | GO | |
| 8 | SET QUOTED _IDENTIFIE R ON | |
| 9 | GO | |
| 10 | -- ======= ========== ========== ========== ======== | |
| 11 | -- Author: PII | |
| 12 | -- Create date: 08.0 5.2012 | |
| 13 | -- Descrip tion: Spli t a string by delimi ter | |
| 14 | -- ======= ========== ========== ========== ======== | |
| 15 | CREATE FUN CTION [dbo ].[fn_Get_ Icon_Id_Or der] | |
| 16 | (@STR NVAR CHAR(MAX), @DELIM CH AR(1) = ', ') | |
| 17 | ||
| 18 | RETURNS @R ESULT TABL E | |
| 19 | ( | |
| 20 | ID INT, | |
| 21 | OR DER_INDEX INT | |
| 22 | ) | |
| 23 | ||
| 24 | AS | |
| 25 | BEGIN | |
| 26 | ||
| 27 | IF @STR IS N ULL RETURN ; | |
| 28 | ||
| 29 | DE CLARE @ID INT, @ORDE R_INDEX IN T, @I INT, @J INT | |
| 30 | SE T @I = 1 | |
| 31 | ||
| 32 | WH ILE 1=1 | |
| 33 | BE GIN | |
| 34 | IF @ I > LEN(@S TR) BREAK | |
| 35 | --id | |
| 36 | SET @J = CHARI NDEX(@DELI M, @STR, @ I) | |
| 37 | IF @ J = 0 SET @J = LEN(@ STR) + 1 | |
| 38 | SET @ID = CAST (RTRIM(LTR IM(SUBSTRI NG(@STR, @ I, @J-@I)) ) AS INT) | |
| 39 | SET @I = @J + 1 | |
| 40 | ||
| 41 | --ex tension | |
| 42 | SET @J = CHARI NDEX(@DELI M, @STR, @ I) | |
| 43 | IF @ J = 0 SET @J = LEN(@ STR) + 1 | |
| 44 | SET @ORDER_IND EX = CAST( RTRIM(LTRI M(SUBSTRIN G(@STR, @I , @J-@I))) AS INT) | |
| 45 | SET @I = @J + 1 | |
| 46 | ||
| 47 | INSE RT INTO @R ESULT VALU ES(@ID, @O RDER_INDEX ) | |
| 48 | EN D | |
| 49 | ||
| 50 | RETURN | |
| 51 | ||
| 52 | END | |
| 53 | GO |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.