Produced by Araxis Merge on 10/26/2017 10:44:46 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\2.Functions | dbo.fn_Split_Ids.sql | Wed Oct 18 19:06:54 2017 UTC |
| 2 | OSCIF_BMS_v2_iter 2_September_2017.zip\BMS_Cand\Source\Sources\Database\CreationScripts\BMS\2.Functions | dbo.fn_Split_Ids.sql | Thu Oct 26 19:45:37 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 86 |
| 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_Spl it_Ids] Script Da te: 03/22/ 2012 10:39 :32 ****** / | |
| 2 | IF EXISTS (SELECT * FROM sys. objects WH ERE object _id = OBJE CT_ID(N'[d bo].[fn_Sp lit_Ids]') AND type in (N'FN', N'IF', N' TF', N'FS' , N'FT')) | |
| 3 | DROP FUNCT ION [dbo]. [fn_Split_ Ids] | |
| 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: 03.0 5.2012 | |
| 13 | -- Descrip tion: Spli t a string by delimi ter | |
| 14 | -- ======= ========== ========== ========== ======== | |
| 15 | CREATE FUN CTION [dbo ].[fn_Spli t_Ids](@te xt varchar (MAX), @de limiter va rchar(20) = ' ') | |
| 16 | RETURNS @I DS TABLE | |
| 17 | ( | |
| 18 | ID int | |
| 19 | ) | |
| 20 | AS | |
| 21 | BEGIN | |
| 22 | DECLARE @i ndex int | |
| 23 | SET @index = -1 | |
| 24 | WHILE (LEN (@text) > 0) | |
| 25 | BEGIN | |
| 26 | SET @i ndex = CHA RINDEX(@de limiter , @text) | |
| 27 | ||
| 28 | IF (@i ndex = 0) AND (LEN(@ text) > 0) | |
| 29 | BEGI N | |
| 30 | IN SERT INTO @IDS VALUE S (CAST(@t ext AS int )) | |
| 31 | BREAK | |
| 32 | END | |
| 33 | ||
| 34 | IF (@i ndex > 1) | |
| 35 | BEGI N | |
| 36 | IN SERT INTO @IDS VALUE S (CAST(LE FT(@text, @index - 1 ) AS int)) | |
| 37 | SE T @text = RIGHT(@tex t, (LEN(@t ext) - @in dex)) | |
| 38 | END | |
| 39 | ELSE | |
| 40 | SET @text = RI GHT(@text, (LEN(@tex t) - @inde x)) | |
| 41 | END | |
| 42 | RETURN | |
| 43 | END | |
| 44 | GO |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.