Last active
August 29, 2015 14:10
-
-
Save in2bi/6e2bf273409a16330c86 to your computer and use it in GitHub Desktop.
Biml file to creat initial load of CDC enabled table
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Biml xmlns="http://schemas.varigence.com/biml.xsd"> | |
<Connections> | |
<AdoNetConnection Name="Source" | |
ConnectionString="Data Source=.;Initial Catalog=CDCTest;Integrated Security=True;" | |
Provider="System.Data.SqlClient.SqlConnection, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" | |
CreateInProject="true" /> | |
<AdoNetConnection Name="Destination" | |
ConnectionString="Data Source=.;Initial Catalog=CDCTest;Integrated Security=True;" | |
Provider="System.Data.SqlClient.SqlConnection, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" | |
CreateInProject="true"/> | |
</Connections> | |
<Packages> | |
<Package Name="Initial Load" ConstraintMode="Linear" ProtectionLevel="EncryptSensitiveWithUserKey"> | |
<Variables> | |
<Variable Name="CDC_State" DataType="String"></Variable> | |
</Variables> | |
<Tasks> | |
<CustomTask Name="CDC Mark start" | |
CreationName="Attunity.SqlServer.CDCControlTask.CdcControlTask, Attunity.SqlServer.CDCControlTask, Version=1.0.0.0, Culture=neutral, PublicKeyToken=aa342389a732e31c"> | |
<ObjectData> | |
<![CDATA[<CDCControlTask | |
Connection="Source" | |
TaskOperation="MarkInitialLoadStart" | |
OperationParameter="" | |
StateConnection="Destination" | |
StateVariable="User::CDC_State" | |
AutomaticStatePersistence="True" | |
StateName="CDC_State" | |
StateTable="[dbo].[cdc_states]" | |
CommandTimeout="30" | |
ChangeDetectionRetryInterval="10" | |
ChangeDetectionTimeout="60" />]]> | |
</ObjectData> | |
</CustomTask> | |
<!--Normal data flow loading all rows in source--> | |
<Dataflow Name="DFT Initial Load"> | |
<Transformations> | |
<AdoNetSource Name="ADO_SRC Source" ConnectionName="Source"> | |
<ExternalTableInput Table ="[dbo].[DimDepartmentGroup_CDC]" /> | |
</AdoNetSource> | |
<AdoNetDestination Name="ADO_DST Destination" ConnectionName="Destination"> | |
<ExternalTableOutput Table="[dbo].[DimDepartmentGroup_Destination]" /> | |
</AdoNetDestination> | |
</Transformations> | |
</Dataflow> | |
<CustomTask Name="CDC Mark end" | |
CreationName="Attunity.SqlServer.CDCControlTask.CdcControlTask, Attunity.SqlServer.CDCControlTask, Version=1.0.0.0, Culture=neutral, PublicKeyToken=aa342389a732e31c"> | |
<ObjectData> | |
<![CDATA[<CDCControlTask | |
Connection="Source" | |
TaskOperation="MarkInitialLoadEnd" | |
OperationParameter="" | |
StateConnection="Destination" | |
StateVariable="User::CDC_State" | |
AutomaticStatePersistence="True" | |
StateName="CDC_State" | |
StateTable="[dbo].[cdc_states]" | |
CommandTimeout="30" | |
ChangeDetectionRetryInterval="10" | |
ChangeDetectionTimeout="60" />]]> | |
</ObjectData> | |
</CustomTask> | |
</Tasks> | |
</Package> | |
</Packages> | |
</Biml> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment