-
Notifications
You must be signed in to change notification settings - Fork 0
/
deutschebahn_real_trafic_data.dtsx
697 lines (697 loc) · 38.1 KB
/
deutschebahn_real_trafic_data.dtsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
<?xml version="1.0"?>
<DTS:Executable xmlns:DTS="www.microsoft.com/SqlServer/Dts"
DTS:refId="Package"
DTS:CreationDate="10/14/2023 9:20:40 PM"
DTS:CreationName="Microsoft.Package"
DTS:CreatorComputerName="MSI"
DTS:CreatorName="MSI\alexm"
DTS:DTSID="{E00EF116-18F3-47FD-82C4-A3B37AA4AFA4}"
DTS:ExecutableType="Microsoft.Package"
DTS:LastModifiedProductVersion="16.0.5314.0"
DTS:LocaleID="1033"
DTS:ObjectName="deutschebahn_real_trafic_data"
DTS:PackageType="5"
DTS:VersionBuild="23"
DTS:VersionGUID="{31FE605D-A0F0-49D8-960C-DB07601D9E47}">
<DTS:Property
DTS:Name="PackageFormatVersion">8</DTS:Property>
<DTS:ConnectionManagers>
<DTS:ConnectionManager
DTS:refId="Package.ConnectionManagers[Flat File Connection Manager]"
DTS:CreationName="FLATFILE"
DTS:DTSID="{6CD788CC-4BBE-48A3-A5A9-4811BC198699}"
DTS:ObjectName="Flat File Connection Manager">
<DTS:ObjectData>
<DTS:ConnectionManager
DTS:Format="Delimited"
DTS:LocaleID="1033"
DTS:HeaderRowDelimiter="_x000D__x000A_"
DTS:ColumnNamesInFirstDataRow="True"
DTS:RowDelimiter=""
DTS:TextQualifier="_x0022_"
DTS:CodePage="1252"
DTS:ConnectionString="C:\Users\alexm\Desktop\Proyectos\ML\Deutschebahn\Zugfahrten_2016_12.csv">
<DTS:FlatFileColumns>
<DTS:FlatFileColumn
DTS:ColumnType="Delimited"
DTS:ColumnDelimiter="_x003B_"
DTS:MaximumWidth="50"
DTS:DataType="129"
DTS:TextQualified="True"
DTS:ObjectName="BST_NR_8"
DTS:DTSID="{98D47933-8A3A-4B01-8812-B4132D4FDC24}"
DTS:CreationName="" />
<DTS:FlatFileColumn
DTS:ColumnType="Delimited"
DTS:ColumnDelimiter="_x003B_"
DTS:MaximumWidth="50"
DTS:DataType="129"
DTS:TextQualified="True"
DTS:ObjectName="Land"
DTS:DTSID="{21D14B56-C44E-4707-B0F5-1F1B6966052F}"
DTS:CreationName="" />
<DTS:FlatFileColumn
DTS:ColumnType="Delimited"
DTS:ColumnDelimiter="_x003B_"
DTS:MaximumWidth="50"
DTS:DataType="129"
DTS:TextQualified="True"
DTS:ObjectName="PROD_DATUM"
DTS:DTSID="{BEE7C5F8-7863-4D92-BA4F-4F2EC6869202}"
DTS:CreationName="" />
<DTS:FlatFileColumn
DTS:ColumnType="Delimited"
DTS:ColumnDelimiter="_x003B_"
DTS:MaximumWidth="50"
DTS:DataType="129"
DTS:TextQualified="True"
DTS:ObjectName="Zugfahrten"
DTS:DTSID="{59A13B34-7C7F-4230-BF4B-4498ADAB5D46}"
DTS:CreationName="" />
<DTS:FlatFileColumn
DTS:ColumnType="Delimited"
DTS:ColumnDelimiter="_x000D__x000A_"
DTS:MaximumWidth="50"
DTS:DataType="129"
DTS:TextQualified="True"
DTS:ObjectName="Verspätungsminuten"
DTS:DTSID="{FEE4987C-52C6-4CF5-A5EA-C7104569B76A}"
DTS:CreationName="" />
</DTS:FlatFileColumns>
</DTS:ConnectionManager>
</DTS:ObjectData>
</DTS:ConnectionManager>
<DTS:ConnectionManager
DTS:refId="Package.ConnectionManagers[MSI\SQLEXPRESS.DWH.sa]"
DTS:CreationName="ADO.NET:System.Data.SqlClient.SqlConnection, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
DTS:DTSID="{56587689-CAD6-4BC9-8688-B0B0596A8052}"
DTS:ObjectName="MSI\SQLEXPRESS.DWH.sa">
<DTS:ObjectData>
<DTS:ConnectionManager
DTS:ConnectionString="Data Source=MSI\SQLEXPRESS;User ID=sa;Initial Catalog=DWH;Persist Security Info=True;Application Name=SSIS-Package-{56587689-CAD6-4BC9-8688-B0B0596A8052}MSI\SQLEXPRESS.DWH.sa;">
<DTS:Password
DTS:Name="Password"
Sensitive="1"
Encrypted="1">AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAElTKGhXWakuDMWGGak3wUQAAAAAIAAAARABUAFMAAAAQZgAAAAEAACAAAACFJsRr1jRzvgjd2YpqAmRhzFx7ScxoDTxk77P9OY9OYgAAAAAOgAAAAAIAACAAAACbkCVLdXhTKZ3qsdMRMliGgkCr9hP6S4Zo7Ceedy09wiAAAADUqYviW7EcNfJt/LNNGGjsg7ERUO+/zlGg0KtAmr+De0AAAAA3IscfAfeZqF4JUmhIZM5dzJr+8Y07RmGSONB2uaRDWRYWx9t69FL4KEzv6jens4KM/bCWDNTwikKkQnoKx7Qf</DTS:Password>
</DTS:ConnectionManager>
</DTS:ObjectData>
</DTS:ConnectionManager>
</DTS:ConnectionManagers>
<DTS:Variables />
<DTS:Executables>
<DTS:Executable
DTS:refId="Package\Create temp table"
DTS:CreationName="Microsoft.ExecuteSQLTask"
DTS:Description="Execute SQL Task"
DTS:DTSID="{AF4D049C-9C09-4E73-823E-B9F265804966}"
DTS:ExecutableType="Microsoft.ExecuteSQLTask"
DTS:LocaleID="-1"
DTS:ObjectName="Create temp table"
DTS:ThreadHint="0">
<DTS:Variables />
<DTS:ObjectData>
<SQLTask:SqlTaskData
SQLTask:Connection="{56587689-CAD6-4BC9-8688-B0B0596A8052}"
SQLTask:SqlStatementSource="DROP TABLE IF EXISTS [DWH].[dbo].[temp_deutschebahn_real_trafic_data]

CREATE TABLE [DWH].[dbo].[temp_deutschebahn_real_trafic_data]
(
	bst_nr_8		NVARCHAR(20) 		NOT NULL,
	country		NVARCHAR(20) 		NOT NULL,
	prod_datum	NVARCHAR(20) 		NOT NULL,
	number_trips	NVARCHAR(20) 		NOT NULL,
	[minutes]		NVARCHAR(20) 		NOT NULL,
)
GO" xmlns:SQLTask="www.microsoft.com/sqlserver/dts/tasks/sqltask" />
</DTS:ObjectData>
</DTS:Executable>
<DTS:Executable
DTS:refId="Package\Data Flow Task"
DTS:CreationName="Microsoft.Pipeline"
DTS:DelayValidation="True"
DTS:Description="Data Flow Task"
DTS:DTSID="{A15CF5B8-6266-4933-9459-186687650906}"
DTS:ExecutableType="Microsoft.Pipeline"
DTS:LocaleID="-1"
DTS:ObjectName="Data Flow Task"
DTS:TaskContact="Performs high-performance data extraction, transformation and loading;Microsoft Corporation; Microsoft SQL Server; (C) Microsoft Corporation; All Rights Reserved;https://www.microsoft.com/sql/support/default.asp;1">
<DTS:Variables />
<DTS:ObjectData>
<pipeline
version="1">
<components>
<component
refId="Package\Data Flow Task\ADO NET Destination"
componentClassID="Microsoft.ManagedComponentHost"
contactInfo="Loads data into an ADO.NET-compliant database that uses a database table or view. Load data into a new or existing table. For example, use an ADO.NET provider for ODBC to load data into an ODBC destination.;Microsoft Corporation; Microsoft SQL Server; © Microsoft Corporation; All Rights Reserved; https://www.microsoft.com/sql/support;2"
description="Loads data into an ADO.NET-compliant database that uses a database table or view. Load data into a new or existing table. For example, use an ADO.NET provider for ODBC to load data into an ODBC destination."
name="ADO NET Destination"
usesDispositions="true"
version="2">
<properties>
<property
dataType="System.String"
description="The Destination database table name."
expressionType="Notify"
name="TableOrViewName"
UITypeEditor="Microsoft.DataTransformationServices.Controls.ModalMultilineStringEditor">"dbo"."temp_deutschebahn_real_trafic_data"</property>
<property
dataType="System.Int32"
description="Specify the number of rows per batch. The default is 0 which uses the same size as SSIS internal buffer. "
expressionType="Notify"
name="BatchSize">0</property>
<property
dataType="System.Int32"
description="The number of seconds before a command times out. A value of 0 indicates infinite time-out. "
expressionType="Notify"
name="CommandTimeout">30</property>
<property
dataType="System.Boolean"
description="Specifies whether to use the SqlBulkCopy interface to improve the performance of bulk insert operations. Only certain providers support this interface."
expressionType="Notify"
name="UseBulkInsertWhenPossible">true</property>
<property
dataType="System.String"
name="UserComponentTypeName">Microsoft.ADONETDestination</property>
</properties>
<connections>
<connection
refId="Package\Data Flow Task\ADO NET Destination.Connections[IDbConnection]"
connectionManagerID="Package.ConnectionManagers[MSI\SQLEXPRESS.DWH.sa]"
connectionManagerRefId="Package.ConnectionManagers[MSI\SQLEXPRESS.DWH.sa]"
description="Managed connection manager"
name="IDbConnection" />
</connections>
<inputs>
<input
refId="Package\Data Flow Task\ADO NET Destination.Inputs[ADO NET Destination Input]"
errorRowDisposition="FailComponent"
hasSideEffects="true"
name="ADO NET Destination Input">
<inputColumns>
<inputColumn
refId="Package\Data Flow Task\ADO NET Destination.Inputs[ADO NET Destination Input].Columns[BST_NR_8]"
cachedCodepage="1252"
cachedDataType="str"
cachedLength="50"
cachedName="BST_NR_8"
externalMetadataColumnId="Package\Data Flow Task\ADO NET Destination.Inputs[ADO NET Destination Input].ExternalColumns[bst_nr_8]"
lineageId="Package\Data Flow Task\Flat File Source.Outputs[Flat File Source Output].Columns[BST_NR_8]" />
<inputColumn
refId="Package\Data Flow Task\ADO NET Destination.Inputs[ADO NET Destination Input].Columns[PROD_DATUM]"
cachedCodepage="1252"
cachedDataType="str"
cachedLength="50"
cachedName="PROD_DATUM"
externalMetadataColumnId="Package\Data Flow Task\ADO NET Destination.Inputs[ADO NET Destination Input].ExternalColumns[prod_datum]"
lineageId="Package\Data Flow Task\Flat File Source.Outputs[Flat File Source Output].Columns[PROD_DATUM]" />
<inputColumn
refId="Package\Data Flow Task\ADO NET Destination.Inputs[ADO NET Destination Input].Columns[Land]"
cachedCodepage="1252"
cachedDataType="str"
cachedLength="50"
cachedName="Land"
externalMetadataColumnId="Package\Data Flow Task\ADO NET Destination.Inputs[ADO NET Destination Input].ExternalColumns[country]"
lineageId="Package\Data Flow Task\Flat File Source.Outputs[Flat File Source Output].Columns[Land]" />
<inputColumn
refId="Package\Data Flow Task\ADO NET Destination.Inputs[ADO NET Destination Input].Columns[Zugfahrten]"
cachedCodepage="1252"
cachedDataType="str"
cachedLength="50"
cachedName="Zugfahrten"
externalMetadataColumnId="Package\Data Flow Task\ADO NET Destination.Inputs[ADO NET Destination Input].ExternalColumns[number_trips]"
lineageId="Package\Data Flow Task\Flat File Source.Outputs[Flat File Source Output].Columns[Zugfahrten]" />
<inputColumn
refId="Package\Data Flow Task\ADO NET Destination.Inputs[ADO NET Destination Input].Columns[Verspätungsminuten]"
cachedCodepage="1252"
cachedDataType="str"
cachedLength="50"
cachedName="Verspätungsminuten"
externalMetadataColumnId="Package\Data Flow Task\ADO NET Destination.Inputs[ADO NET Destination Input].ExternalColumns[minutes]"
lineageId="Package\Data Flow Task\Flat File Source.Outputs[Flat File Source Output].Columns[Verspätungsminuten]" />
</inputColumns>
<externalMetadataColumns
isUsed="True">
<externalMetadataColumn
refId="Package\Data Flow Task\ADO NET Destination.Inputs[ADO NET Destination Input].ExternalColumns[bst_nr_8]"
dataType="wstr"
length="20"
name="bst_nr_8" />
<externalMetadataColumn
refId="Package\Data Flow Task\ADO NET Destination.Inputs[ADO NET Destination Input].ExternalColumns[country]"
dataType="wstr"
length="20"
name="country" />
<externalMetadataColumn
refId="Package\Data Flow Task\ADO NET Destination.Inputs[ADO NET Destination Input].ExternalColumns[prod_datum]"
dataType="wstr"
length="20"
name="prod_datum" />
<externalMetadataColumn
refId="Package\Data Flow Task\ADO NET Destination.Inputs[ADO NET Destination Input].ExternalColumns[number_trips]"
dataType="wstr"
length="20"
name="number_trips" />
<externalMetadataColumn
refId="Package\Data Flow Task\ADO NET Destination.Inputs[ADO NET Destination Input].ExternalColumns[minutes]"
dataType="wstr"
length="20"
name="minutes" />
</externalMetadataColumns>
</input>
</inputs>
<outputs>
<output
refId="Package\Data Flow Task\ADO NET Destination.Outputs[ADO NET Destination Error Output]"
exclusionGroup="1"
isErrorOut="true"
name="ADO NET Destination Error Output"
synchronousInputId="Package\Data Flow Task\ADO NET Destination.Inputs[ADO NET Destination Input]">
<outputColumns>
<outputColumn
refId="Package\Data Flow Task\ADO NET Destination.Outputs[ADO NET Destination Error Output].Columns[ErrorCode]"
dataType="i4"
lineageId="Package\Data Flow Task\ADO NET Destination.Outputs[ADO NET Destination Error Output].Columns[ErrorCode]"
name="ErrorCode"
specialFlags="1" />
<outputColumn
refId="Package\Data Flow Task\ADO NET Destination.Outputs[ADO NET Destination Error Output].Columns[ErrorColumn]"
dataType="i4"
lineageId="Package\Data Flow Task\ADO NET Destination.Outputs[ADO NET Destination Error Output].Columns[ErrorColumn]"
name="ErrorColumn"
specialFlags="2" />
</outputColumns>
<externalMetadataColumns />
</output>
</outputs>
</component>
<component
refId="Package\Data Flow Task\Flat File Source"
componentClassID="Microsoft.FlatFileSource"
contactInfo="Flat File Source;Microsoft Corporation; Microsoft SQL Server; (C) Microsoft Corporation; All Rights Reserved; https://www.microsoft.com/sql/support;1"
description="Flat File Source"
localeId="1033"
name="Flat File Source"
usesDispositions="true"
version="1">
<properties>
<property
dataType="System.Boolean"
description="Specifies whether zero-length columns are treated as null."
name="RetainNulls">false</property>
<property
dataType="System.String"
description="Specifies the name of an output column containing the file name. If no name is specified, no output column containing the file name will be generated."
name="FileNameColumnName"></property>
</properties>
<connections>
<connection
refId="Package\Data Flow Task\Flat File Source.Connections[FlatFileConnection]"
connectionManagerID="Package.ConnectionManagers[Flat File Connection Manager]"
connectionManagerRefId="Package.ConnectionManagers[Flat File Connection Manager]"
name="FlatFileConnection" />
</connections>
<outputs>
<output
refId="Package\Data Flow Task\Flat File Source.Outputs[Flat File Source Output]"
name="Flat File Source Output">
<outputColumns>
<outputColumn
refId="Package\Data Flow Task\Flat File Source.Outputs[Flat File Source Output].Columns[BST_NR_8]"
codePage="1252"
dataType="str"
errorOrTruncationOperation="Conversion"
errorRowDisposition="FailComponent"
externalMetadataColumnId="Package\Data Flow Task\Flat File Source.Outputs[Flat File Source Output].ExternalColumns[BST_NR_8]"
length="50"
lineageId="Package\Data Flow Task\Flat File Source.Outputs[Flat File Source Output].Columns[BST_NR_8]"
name="BST_NR_8"
truncationRowDisposition="FailComponent">
<properties>
<property
dataType="System.Boolean"
description="Indicates whether the column uses the faster, locale-neutral parsing routines."
name="FastParse">false</property>
<property
dataType="System.Boolean"
description="Indicates whether the data is in binary format."
name="UseBinaryFormat">false</property>
</properties>
</outputColumn>
<outputColumn
refId="Package\Data Flow Task\Flat File Source.Outputs[Flat File Source Output].Columns[Land]"
codePage="1252"
dataType="str"
errorOrTruncationOperation="Conversion"
errorRowDisposition="FailComponent"
externalMetadataColumnId="Package\Data Flow Task\Flat File Source.Outputs[Flat File Source Output].ExternalColumns[Land]"
length="50"
lineageId="Package\Data Flow Task\Flat File Source.Outputs[Flat File Source Output].Columns[Land]"
name="Land"
truncationRowDisposition="FailComponent">
<properties>
<property
dataType="System.Boolean"
description="Indicates whether the column uses the faster, locale-neutral parsing routines."
name="FastParse">false</property>
<property
dataType="System.Boolean"
description="Indicates whether the data is in binary format."
name="UseBinaryFormat">false</property>
</properties>
</outputColumn>
<outputColumn
refId="Package\Data Flow Task\Flat File Source.Outputs[Flat File Source Output].Columns[PROD_DATUM]"
codePage="1252"
dataType="str"
errorOrTruncationOperation="Conversion"
errorRowDisposition="FailComponent"
externalMetadataColumnId="Package\Data Flow Task\Flat File Source.Outputs[Flat File Source Output].ExternalColumns[PROD_DATUM]"
length="50"
lineageId="Package\Data Flow Task\Flat File Source.Outputs[Flat File Source Output].Columns[PROD_DATUM]"
name="PROD_DATUM"
truncationRowDisposition="FailComponent">
<properties>
<property
dataType="System.Boolean"
description="Indicates whether the column uses the faster, locale-neutral parsing routines."
name="FastParse">false</property>
<property
dataType="System.Boolean"
description="Indicates whether the data is in binary format."
name="UseBinaryFormat">false</property>
</properties>
</outputColumn>
<outputColumn
refId="Package\Data Flow Task\Flat File Source.Outputs[Flat File Source Output].Columns[Zugfahrten]"
codePage="1252"
dataType="str"
errorOrTruncationOperation="Conversion"
errorRowDisposition="FailComponent"
externalMetadataColumnId="Package\Data Flow Task\Flat File Source.Outputs[Flat File Source Output].ExternalColumns[Zugfahrten]"
length="50"
lineageId="Package\Data Flow Task\Flat File Source.Outputs[Flat File Source Output].Columns[Zugfahrten]"
name="Zugfahrten"
truncationRowDisposition="FailComponent">
<properties>
<property
dataType="System.Boolean"
description="Indicates whether the column uses the faster, locale-neutral parsing routines."
name="FastParse">false</property>
<property
dataType="System.Boolean"
description="Indicates whether the data is in binary format."
name="UseBinaryFormat">false</property>
</properties>
</outputColumn>
<outputColumn
refId="Package\Data Flow Task\Flat File Source.Outputs[Flat File Source Output].Columns[Verspätungsminuten]"
codePage="1252"
dataType="str"
errorOrTruncationOperation="Conversion"
errorRowDisposition="FailComponent"
externalMetadataColumnId="Package\Data Flow Task\Flat File Source.Outputs[Flat File Source Output].ExternalColumns[Verspätungsminuten]"
length="50"
lineageId="Package\Data Flow Task\Flat File Source.Outputs[Flat File Source Output].Columns[Verspätungsminuten]"
name="Verspätungsminuten"
truncationRowDisposition="FailComponent">
<properties>
<property
dataType="System.Boolean"
description="Indicates whether the column uses the faster, locale-neutral parsing routines."
name="FastParse">false</property>
<property
dataType="System.Boolean"
description="Indicates whether the data is in binary format."
name="UseBinaryFormat">false</property>
</properties>
</outputColumn>
</outputColumns>
<externalMetadataColumns
isUsed="True">
<externalMetadataColumn
refId="Package\Data Flow Task\Flat File Source.Outputs[Flat File Source Output].ExternalColumns[BST_NR_8]"
codePage="1252"
dataType="str"
length="50"
name="BST_NR_8" />
<externalMetadataColumn
refId="Package\Data Flow Task\Flat File Source.Outputs[Flat File Source Output].ExternalColumns[Land]"
codePage="1252"
dataType="str"
length="50"
name="Land" />
<externalMetadataColumn
refId="Package\Data Flow Task\Flat File Source.Outputs[Flat File Source Output].ExternalColumns[PROD_DATUM]"
codePage="1252"
dataType="str"
length="50"
name="PROD_DATUM" />
<externalMetadataColumn
refId="Package\Data Flow Task\Flat File Source.Outputs[Flat File Source Output].ExternalColumns[Zugfahrten]"
codePage="1252"
dataType="str"
length="50"
name="Zugfahrten" />
<externalMetadataColumn
refId="Package\Data Flow Task\Flat File Source.Outputs[Flat File Source Output].ExternalColumns[Verspätungsminuten]"
codePage="1252"
dataType="str"
length="50"
name="Verspätungsminuten" />
</externalMetadataColumns>
</output>
<output
refId="Package\Data Flow Task\Flat File Source.Outputs[Flat File Source Error Output]"
isErrorOut="true"
name="Flat File Source Error Output">
<outputColumns>
<outputColumn
refId="Package\Data Flow Task\Flat File Source.Outputs[Flat File Source Error Output].Columns[Flat File Source Error Output Column]"
codePage="1252"
dataType="text"
description="Flat File Source Error Output Column"
lineageId="Package\Data Flow Task\Flat File Source.Outputs[Flat File Source Error Output].Columns[Flat File Source Error Output Column]"
name="Flat File Source Error Output Column" />
<outputColumn
refId="Package\Data Flow Task\Flat File Source.Outputs[Flat File Source Error Output].Columns[ErrorCode]"
dataType="i4"
lineageId="Package\Data Flow Task\Flat File Source.Outputs[Flat File Source Error Output].Columns[ErrorCode]"
name="ErrorCode"
specialFlags="1" />
<outputColumn
refId="Package\Data Flow Task\Flat File Source.Outputs[Flat File Source Error Output].Columns[ErrorColumn]"
dataType="i4"
lineageId="Package\Data Flow Task\Flat File Source.Outputs[Flat File Source Error Output].Columns[ErrorColumn]"
name="ErrorColumn"
specialFlags="2" />
</outputColumns>
<externalMetadataColumns />
</output>
</outputs>
</component>
</components>
<paths>
<path
refId="Package\Data Flow Task.Paths[Flat File Source Output]"
endId="Package\Data Flow Task\ADO NET Destination.Inputs[ADO NET Destination Input]"
name="Flat File Source Output"
startId="Package\Data Flow Task\Flat File Source.Outputs[Flat File Source Output]" />
</paths>
</pipeline>
</DTS:ObjectData>
</DTS:Executable>
<DTS:Executable
DTS:refId="Package\Drop temp table"
DTS:CreationName="Microsoft.ExecuteSQLTask"
DTS:Description="Execute SQL Task"
DTS:DTSID="{E02A86DA-E8C1-44EF-A764-91A483FAFBA9}"
DTS:ExecutableType="Microsoft.ExecuteSQLTask"
DTS:LocaleID="-1"
DTS:ObjectName="Drop temp table"
DTS:ThreadHint="0">
<DTS:Variables />
<DTS:ObjectData>
<SQLTask:SqlTaskData
SQLTask:Connection="{56587689-CAD6-4BC9-8688-B0B0596A8052}"
SQLTask:SqlStatementSource="DROP TABLE IF EXISTS [DWH].[dbo].[temp_deutschebahn_real_trafic_data]" xmlns:SQLTask="www.microsoft.com/sqlserver/dts/tasks/sqltask" />
</DTS:ObjectData>
</DTS:Executable>
<DTS:Executable
DTS:refId="Package\Merge to production"
DTS:CreationName="Microsoft.ExecuteSQLTask"
DTS:Description="Execute SQL Task"
DTS:DTSID="{10A600D1-C599-4C25-A860-AF542C1AF326}"
DTS:ExecutableType="Microsoft.ExecuteSQLTask"
DTS:LocaleID="-1"
DTS:ObjectName="Merge to production"
DTS:ThreadHint="0">
<DTS:Variables />
<DTS:ObjectData>
<SQLTask:SqlTaskData
SQLTask:Connection="{56587689-CAD6-4BC9-8688-B0B0596A8052}"
SQLTask:SqlStatementSource="/*------------------------------------------------------------------- */
/*----------------------- MERGE TO PRODUCTION ----------------------- */
/*------------------------------------------------------------------- */


IF (SELECT COUNT(*) FROM [DWH].[dbo].[temp_deutschebahn_real_trafic_data] WITH(NOLOCK)) > 0
BEGIN

	DECLARE @date_min DATE = (SELECT MIN(CONVERT(DATE, prod_datum, 104)) FROM [DWH].[dbo].[temp_deutschebahn_real_trafic_data] WITH(NOLOCK))
	DECLARE @date_max DATE = (SELECT MAX(CONVERT(DATE, prod_datum, 104)) FROM [DWH].[dbo].[temp_deutschebahn_real_trafic_data] WITH(NOLOCK))

	DELETE FROM [DWH].[dbo].[deutschebahn_real_trafic_data] 
	WHERE CONVERT(DATE, prod_datum, 104) >= @date_min AND 
		 CONVERT(DATE, prod_datum, 104) <= @date_max

	INSERT INTO [DWH].[dbo].[deutschebahn_real_trafic_data]
	SELECT 
		 CONVERT(INT,bst_nr_8)				AS bst_nr_8
		,CONVERT(VARCHAR(20),country)		AS country
		,CONVERT(DATETIME,prod_datum,104)	AS prod_datum
		,CONVERT(INT,number_trips)			AS number_trips
		,CONVERT(INT,[minutes])				AS [minutes]
		,GETDATE()							AS [last_update]
	FROM [DWH].[dbo].[temp_deutschebahn_real_trafic_data] WITH(NOLOCK)

END" xmlns:SQLTask="www.microsoft.com/sqlserver/dts/tasks/sqltask" />
</DTS:ObjectData>
</DTS:Executable>
</DTS:Executables>
<DTS:PrecedenceConstraints>
<DTS:PrecedenceConstraint
DTS:refId="Package.PrecedenceConstraints[Constraint]"
DTS:CreationName=""
DTS:DTSID="{C7EFC245-79A1-4F44-A531-0811EE078E7E}"
DTS:From="Package\Create temp table"
DTS:LogicalAnd="True"
DTS:ObjectName="Constraint"
DTS:To="Package\Data Flow Task" />
<DTS:PrecedenceConstraint
DTS:refId="Package.PrecedenceConstraints[Constraint 1]"
DTS:CreationName=""
DTS:DTSID="{79479FC2-BC99-4F67-95A2-3B99B3CF97C4}"
DTS:From="Package\Data Flow Task"
DTS:LogicalAnd="True"
DTS:ObjectName="Constraint 1"
DTS:To="Package\Merge to production" />
<DTS:PrecedenceConstraint
DTS:refId="Package.PrecedenceConstraints[Constraint 2]"
DTS:CreationName=""
DTS:DTSID="{7D88264C-F80A-46AD-B658-900DB468F453}"
DTS:From="Package\Merge to production"
DTS:LogicalAnd="True"
DTS:ObjectName="Constraint 2"
DTS:To="Package\Drop temp table" />
</DTS:PrecedenceConstraints>
<DTS:DesignTimeProperties><![CDATA[<?xml version="1.0"?>
<!--This CDATA section contains the layout information of the package. The section includes information such as (x,y) coordinates, width, and height.-->
<!--If you manually edit this section and make a mistake, you can delete it. -->
<!--The package will still be able to load normally but the previous layout information will be lost and the designer will automatically re-arrange the elements on the design surface.-->
<Objects
Version="8">
<!--Each node below will contain properties that do not affect runtime behavior.-->
<Package
design-time-name="Package">
<LayoutInfo>
<GraphLayout
Capacity="8" xmlns="clr-namespace:Microsoft.SqlServer.IntegrationServices.Designer.Model.Serialization;assembly=Microsoft.SqlServer.IntegrationServices.Graph" xmlns:mssgle="clr-namespace:Microsoft.SqlServer.Graph.LayoutEngine;assembly=Microsoft.SqlServer.Graph" xmlns:assembly="https://schemas.microsoft.com/winfx/2006/xaml">
<NodeLayout
Size="160.8,41.6"
Id="Package\Create temp table"
TopLeft="280.833317989277,151.666665611996" />
<NodeLayout
Size="150.4,41.6"
Id="Package\Data Flow Task"
TopLeft="281.666651277079,224.466665105754" />
<NodeLayout
Size="152,41.6"
Id="Package\Drop temp table"
TopLeft="283.333317852683,357.06666418367" />
<NodeLayout
Size="170.4,41.6"
Id="Package\Merge to production"
TopLeft="279.166651413673,292.066664635672" />
<EdgeLayout
Id="Package.PrecedenceConstraints[Constraint]"
TopLeft="359.049984633178,193.266665611996">
<EdgeLayout.Curve>
<mssgle:Curve
StartConnector="{assembly:Null}"
EndConnector="0,31.1999994937575"
Start="0,0"
End="0,23.6999994937575">
<mssgle:Curve.Segments>
<mssgle:SegmentCollection
Capacity="5">
<mssgle:LineSegment
End="0,23.6999994937575" />
</mssgle:SegmentCollection>
</mssgle:Curve.Segments>
</mssgle:Curve>
</EdgeLayout.Curve>
<EdgeLayout.Labels>
<EdgeLabelCollection />
</EdgeLayout.Labels>
</EdgeLayout>
<EdgeLayout
Id="Package.PrecedenceConstraints[Constraint 1]"
TopLeft="360.616651345376,266.066665105754">
<EdgeLayout.Curve>
<mssgle:Curve
StartConnector="{assembly:Null}"
EndConnector="0,25.9999995299181"
Start="0,0"
End="0,18.4999995299181">
<mssgle:Curve.Segments>
<mssgle:SegmentCollection
Capacity="5">
<mssgle:LineSegment
End="0,18.4999995299181" />
</mssgle:SegmentCollection>
</mssgle:Curve.Segments>
</mssgle:Curve>
</EdgeLayout.Curve>
<EdgeLayout.Labels>
<EdgeLabelCollection />
</EdgeLayout.Labels>
</EdgeLayout>
<EdgeLayout
Id="Package.PrecedenceConstraints[Constraint 2]"
TopLeft="361.849984633178,333.666664635672">
<EdgeLayout.Curve>
<mssgle:Curve
StartConnector="{assembly:Null}"
EndConnector="0,23.399999547998"
Start="0,0"
End="0,15.899999547998">
<mssgle:Curve.Segments>
<mssgle:SegmentCollection
Capacity="5">
<mssgle:LineSegment
End="0,15.899999547998" />
</mssgle:SegmentCollection>
</mssgle:Curve.Segments>
</mssgle:Curve>
</EdgeLayout.Curve>
<EdgeLayout.Labels>
<EdgeLabelCollection />
</EdgeLayout.Labels>
</EdgeLayout>
</GraphLayout>
</LayoutInfo>
</Package>
<TaskHost
design-time-name="Package\Data Flow Task">
<LayoutInfo>
<GraphLayout
Capacity="4" xmlns="clr-namespace:Microsoft.SqlServer.IntegrationServices.Designer.Model.Serialization;assembly=Microsoft.SqlServer.IntegrationServices.Graph" xmlns:mssgle="clr-namespace:Microsoft.SqlServer.Graph.LayoutEngine;assembly=Microsoft.SqlServer.Graph" xmlns:assembly="https://schemas.microsoft.com/winfx/2006/xaml">
<NodeLayout
Size="151.2,41.6"
Id="Package\Data Flow Task\Flat File Source"
TopLeft="368.333313208488,166.399998842875" />
<NodeLayout
Size="179.2,41.6"
Id="Package\Data Flow Task\ADO NET Destination"
TopLeft="354.166647315854,249.599998264313" />
<EdgeLayout
Id="Package\Data Flow Task.Paths[Flat File Source Output]"
TopLeft="443.849980262171,207.999998842875">
<EdgeLayout.Curve>
<mssgle:Curve
StartConnector="{assembly:Null}"
EndConnector="0,41.5999994214376"
Start="0,0"
End="0,34.0999994214376">
<mssgle:Curve.Segments>
<mssgle:SegmentCollection
Capacity="5">
<mssgle:LineSegment
End="0,34.0999994214376" />
</mssgle:SegmentCollection>
</mssgle:Curve.Segments>
</mssgle:Curve>
</EdgeLayout.Curve>
<EdgeLayout.Labels>
<EdgeLabelCollection />
</EdgeLayout.Labels>
</EdgeLayout>
</GraphLayout>
</LayoutInfo>
</TaskHost>
<PipelineComponentMetadata
design-time-name="Package\Data Flow Task\ADO NET Destination">
<Properties>
<Property>
<Name>DataSourceViewID</Name>
</Property>
</Properties>
</PipelineComponentMetadata>
</Objects>]]></DTS:DesignTimeProperties>
</DTS:Executable>