@@ -68,7 +68,7 @@ private void ButtonGenerateOmdMetadata(object sender, EventArgs e)
68
68
var metadataDatabaseName = textBoxGenerationMetadataDatabaseName ;
69
69
70
70
insertIntoStatement . AppendLine ( "/* Run the following in ETL control framework database */" ) ;
71
- insertIntoStatement . AppendLine ( "USE [" + metadataDatabaseName + "];" ) ;
71
+ insertIntoStatement . AppendLine ( "USE [" + textBoxDirectDatabase . Text + "];" ) ;
72
72
insertIntoStatement . AppendLine ( ) ;
73
73
74
74
// Add the initial delete statements
@@ -187,10 +187,10 @@ private void AddModuleContent(StringBuilder insertIntoStatement)
187
187
{
188
188
insertIntoStatement . AppendLine ( "IF NOT EXISTS (SELECT MODULE_CODE FROM OMD_MODULE WHERE MODULE_CODE='m_100_" + stagingTableName + "')" ) ;
189
189
}
190
- insertIntoStatement . AppendLine ( "INSERT INTO [OMD_MODULE] ([AREA_CODE],[MODULE_CODE],[MODULE_DESCRIPTION],[MODULE_TYPE_CODE])" ) ;
190
+ insertIntoStatement . AppendLine ( "INSERT INTO [OMD_MODULE] ([AREA_CODE], [MODULE_CODE], [MODULE_DESCRIPTION], [MODULE_TYPE_CODE], [FREQUENCY_CODE ])" ) ;
191
191
insertIntoStatement . AppendLine ( "VALUES ('STG','m_100_" + stagingTableName +
192
192
"','Source to Staging ETL for " +
193
- stagingTableName + "', 'SSIS')" ) ;
193
+ stagingTableName + "', 'SSIS', 'Queue' )" ) ;
194
194
}
195
195
}
196
196
else
@@ -230,10 +230,10 @@ private void AddModuleContent(StringBuilder insertIntoStatement)
230
230
insertIntoStatement . AppendLine ( "IF NOT EXISTS (SELECT MODULE_CODE FROM OMD_MODULE WHERE MODULE_CODE='m_150_H" + stagingTableName + "')" ) ;
231
231
}
232
232
insertIntoStatement . AppendLine (
233
- "INSERT INTO [OMD_MODULE] ([AREA_CODE],[MODULE_CODE],[MODULE_DESCRIPTION],[MODULE_TYPE_CODE])" ) ;
233
+ "INSERT INTO [OMD_MODULE] ([AREA_CODE],[MODULE_CODE],[MODULE_DESCRIPTION],[MODULE_TYPE_CODE],[FREQUENCY_CODE] )" ) ;
234
234
insertIntoStatement . AppendLine ( "VALUES ('HSTG','m_150_H" + stagingTableName +
235
235
"','Staging to History Staging ETL for H" + stagingTableName +
236
- "', 'SSIS')" ) ;
236
+ "', 'SSIS', 'Queue' )" ) ;
237
237
}
238
238
}
239
239
else
@@ -352,10 +352,10 @@ private void AddModuleContent(StringBuilder insertIntoStatement)
352
352
insertIntoStatement . AppendLine ( "IF NOT EXISTS (SELECT MODULE_CODE FROM OMD_MODULE WHERE MODULE_CODE = 'm_200_" + intTable + "_With_Driving_Key')" ) ;
353
353
}
354
354
insertIntoStatement . AppendLine (
355
- "INSERT INTO [OMD_MODULE] ([AREA_CODE],[MODULE_CODE],[MODULE_DESCRIPTION],[MODULE_TYPE_CODE])" ) ;
355
+ "INSERT INTO [OMD_MODULE] ([AREA_CODE],[MODULE_CODE],[MODULE_DESCRIPTION],[MODULE_TYPE_CODE],[FREQUENCY_CODE] )" ) ;
356
356
insertIntoStatement . AppendLine ( "VALUES ('INT','m_200_" + intTable +
357
357
"_With_Driving_Key','Driving-key based Link Satellite table sourced from " +
358
- targetTableName + "', 'SSIS')" ) ;
358
+ targetTableName + "', 'SSIS', 'Queue' )" ) ;
359
359
}
360
360
else //Normal LSATs
361
361
{
@@ -366,10 +366,10 @@ private void AddModuleContent(StringBuilder insertIntoStatement)
366
366
"')" ) ;
367
367
}
368
368
insertIntoStatement . AppendLine (
369
- "INSERT INTO [OMD_MODULE] ([AREA_CODE],[MODULE_CODE],[MODULE_DESCRIPTION],[MODULE_TYPE_CODE])" ) ;
369
+ "INSERT INTO [OMD_MODULE] ([AREA_CODE],[MODULE_CODE],[MODULE_DESCRIPTION],[MODULE_TYPE_CODE],[FREQUENCY_CODE] )" ) ;
370
370
insertIntoStatement . AppendLine ( "VALUES ('INT','m_200_" + intTable + "_" + targetTableName +
371
371
"','Driving-key based Link Satellite table sourced from " +
372
- targetTableName + "', 'SSIS')" ) ;
372
+ targetTableName + "', 'SSIS', 'Queue' )" ) ;
373
373
}
374
374
}
375
375
else
@@ -379,9 +379,9 @@ private void AddModuleContent(StringBuilder insertIntoStatement)
379
379
insertIntoStatement . AppendLine ( "IF NOT EXISTS (SELECT MODULE_CODE FROM OMD_MODULE WHERE MODULE_CODE='m_200_" + intTable + "_" +
380
380
targetTableName + "')" ) ;
381
381
}
382
- insertIntoStatement . AppendLine ( "INSERT INTO [OMD_MODULE] ([AREA_CODE],[MODULE_CODE],[MODULE_DESCRIPTION],[MODULE_TYPE_CODE])" ) ;
382
+ insertIntoStatement . AppendLine ( "INSERT INTO [OMD_MODULE] ([AREA_CODE],[MODULE_CODE],[MODULE_DESCRIPTION],[MODULE_TYPE_CODE],[FREQUENCY_CODE] )" ) ;
383
383
insertIntoStatement . AppendLine ( "VALUES ('INT','m_200_" + intTable + "_" + targetTableName +
384
- "','Integration Layer ETL sourced from " + targetTableName + "', 'SSIS')" ) ;
384
+ "','Integration Layer ETL sourced from " + targetTableName + "', 'SSIS','Queue' )" ) ;
385
385
}
386
386
insertIntoStatement . AppendLine ( ) ;
387
387
}
@@ -444,8 +444,8 @@ private void AddModuleContent(StringBuilder insertIntoStatement)
444
444
insertIntoStatement . AppendLine ( "IF NOT EXISTS (SELECT MODULE_CODE FROM OMD_MODULE WHERE MODULE_CODE='m_200_" + intTableName + "_END_DATES')" ) ;
445
445
}
446
446
447
- insertIntoStatement . AppendLine ( "INSERT INTO [OMD_MODULE] ([AREA_CODE],[MODULE_CODE],[MODULE_DESCRIPTION],[MODULE_TYPE_CODE])" ) ;
448
- insertIntoStatement . AppendLine ( "VALUES ('INT','m_200_" + intTableName + "_END_DATES','End-dating logic for the table " + intTableName + "', 'SSIS')" ) ;
447
+ insertIntoStatement . AppendLine ( "INSERT INTO [OMD_MODULE] ([AREA_CODE],[MODULE_CODE],[MODULE_DESCRIPTION],[MODULE_TYPE_CODE],[FREQUENCY_CODE] )" ) ;
448
+ insertIntoStatement . AppendLine ( "VALUES ('INT','m_200_" + intTableName + "_END_DATES','End-dating logic for the table " + intTableName + "', 'SSIS', 'Queue' )" ) ;
449
449
insertIntoStatement . AppendLine ( ) ;
450
450
}
451
451
}
@@ -522,7 +522,7 @@ private void AddBatchContent(StringBuilder insertIntoStatement)
522
522
}
523
523
524
524
insertIntoStatement . AppendLine ( "INSERT INTO [OMD_BATCH] ([FREQUENCY_CODE],[BATCH_CODE],[BATCH_DESCRIPTION])" ) ;
525
- insertIntoStatement . AppendLine ( "VALUES ('Continuous ','b_EDW_STG_INT_" + stagingBatchName + "','Source to Integration Area processing for " + stagingBatchName + "')" ) ;
525
+ insertIntoStatement . AppendLine ( "VALUES ('Queue ','b_EDW_STG_INT_" + stagingBatchName + "','Source to Integration Area processing for " + stagingBatchName + "')" ) ;
526
526
insertIntoStatement . AppendLine ( ) ;
527
527
}
528
528
}
@@ -1399,7 +1399,7 @@ private void InitializePath()
1399
1399
initialConfigurationFile . AppendLine ( @"connectionStringGenerationMetadata|Provider=SQLNCLI11;Server=.;Initial Catalog=EDW_900_Metadata;User ID=sa; Password=K3kobus2" ) ;
1400
1400
initialConfigurationFile . AppendLine ( @"GenerationMetaDataDatabaseName|EDW_900_Metadata" ) ;
1401
1401
initialConfigurationFile . AppendLine ( @"connectionStringDirect|Provider=SQLNCLI11;Server=.;Initial Catalog=EDW_900_Metadata; User ID=sa; Password=K3kobus2" ) ;
1402
- initialConfigurationFile . AppendLine ( @"DirectDatabaseName|EDW_900_Metadata " ) ;
1402
+ initialConfigurationFile . AppendLine ( @"DirectDatabaseName|EDW_900_OMD_Framework " ) ;
1403
1403
initialConfigurationFile . AppendLine ( @"connectionStringSTG|Provider=SQLNCLI11;Server=.;Initial Catalog=EDW_100_Staging_Area;User ID=sa; Password=K3kobus2" ) ;
1404
1404
initialConfigurationFile . AppendLine ( @"STGDatabaseName|EDW_100_Staging_Area" ) ;
1405
1405
initialConfigurationFile . AppendLine ( @"connectionStringPSA|Provider=SQLNCLI11;Server=.;Initial Catalog=EDW_150_Persistent_Staging_Area;User ID=sa; Password=K3kobus2" ) ;
0 commit comments