Wednesday, September 12, 2012

BIML History Cleanup

Example file for creating a History Cleanup Integrity SSIS Package
<Biml xmlns="http://schemas.varigence.com/biml.xsd">
    <Connections>
        <AdoNetConnection
            Name ="CnAdoAdventureWorks2012"
            Provider="System.Data.SqlClient.SqlConnection, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
            ConnectionString ="Data Source=.\MSSQL2012;Integrated Security=SSPI;Connect Timeout=30;"
            RetainSameConnection="true">
        </AdoNetConnection>
    </Connections>
    <Packages>
        <Package Name ="Maintenance.HistoryCleanup" ConstraintMode="Linear">
            <Annotations>
                <Annotation>
                    File: Maintenance.HistoryCleanup.biml
                    Demo biml for setting up a History Cleanup package
                    Enviroment:
                    DB: MS-SQL2012
                    BIML: 1.6 VS2010 BIDS Helper
                    (c) John Minkjan biml101.blogspot.com
                </Annotation>
            </Annotations>
            <Tasks>
                <HistoryCleanup
                    Name="HCU AdventureWorks2012"
                    ConnectionName="CnAdoAdventureWorks2012">
                </HistoryCleanup>
            </Tasks>
        </Package>
    </Packages>
</Biml>

No comments:

Post a Comment