Skip to content

Commit 36f1074

Browse files
committed
Update templateSatelliteView.Handlebars
1 parent 6b30928 commit 36f1074

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Virtual_EDW/Templates/templateSatelliteView.Handlebars

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ CREATE VIEW [{{../metadataConfiguration.vdwSchemaName}}].[{{targetDataObject.nam
1414
SELECT
1515
HASHBYTES('MD5', {{#each businessKeys}} {{!-- Create the Surrogate Key using the Business Key and components --}}
1616
{{#each businessKeyComponentMapping}}
17-
ISNULL(RTRIM(CONVERT(NVARCHAR(100), {{targetDataItem.name}})), 'N/A') + '#~!'{{#unless @last}} +{{/unless}}
17+
ISNULL(RTRIM(CONVERT(NVARCHAR(MAX), {{targetDataItem.name}})), 'N/A') + '#~!'{{#unless @last}} +{{/unless}}
1818
{{/each}}
1919
) AS [{{surrogateKey}}],{{/each}}
2020
--DATEADD(mcs,[{{../metadataConfiguration.sourceRowIdAttribute}}], {{../metadataConfiguration.loadDateTimeAttribute}}) AS {{../metadataConfiguration.loadDateTimeAttribute}},
@@ -45,8 +45,8 @@ SELECT
4545
-- ELSE 'N'
4646
--END AS [DELETED_RECORD_INDICATOR],
4747
HASHBYTES('MD5',
48-
ISNULL(RTRIM(CONVERT(NVARCHAR(100),{{../metadataConfiguration.changeDataCaptureAttribute}})), 'N/A') + '#~!' +{{#each dataItemMappings}}
49-
ISNULL(RTRIM(CONVERT(NVARCHAR(100),{{targetDataItem.name}})), 'N/A') + '#~!'{{#unless @last}} +{{/unless}}{{/each}}
48+
ISNULL(RTRIM(CONVERT(NVARCHAR(MAX),{{../metadataConfiguration.changeDataCaptureAttribute}})), 'N/A') + '#~!' +{{#each dataItemMappings}}
49+
ISNULL(RTRIM(CONVERT(NVARCHAR(MAX),{{targetDataItem.name}})), 'N/A') + '#~!'{{#unless @last}} +{{/unless}}{{/each}}
5050
) AS [{{../metadataConfiguration.recordChecksumAttribute}}],
5151
{{#each dataItemMappings}}
5252
[{{targetDataItem.name}}],

0 commit comments

Comments
 (0)