Skip to content

Instantly share code, notes, and snippets.

@tdmitch
Created July 12, 2017 01:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tdmitch/7d48323b0957d6b6621003c89e2fe035 to your computer and use it in GitHub Desktop.
Save tdmitch/7d48323b0957d6b6621003c89e2fe035 to your computer and use it in GitHub Desktop.
<# foreach (var worksheet in worksheetCollection) {#>
<Dataflow Name="<#= worksheet.Replace("$",  "") #>" DelayValidation="true">
<Transformations>
<ExcelSource ConnectionName="Accidents Source File" Name="XLS Accidents - <#= worksheet.Replace("$",  "") #>">
<DirectInput>SELECT * FROM `<#= worksheet #>`</DirectInput>
</ExcelSource>
<OleDbDestination Name="OLEDST Accidents Table" ConnectionName="AccidentData DB">
<ExternalTableOutput Table="[dbo].[AccidentData]"></ExternalTableOutput>
</OleDbDestination>
</Transformations>
</Dataflow>
<# } #>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment