Welcome to EMC Consulting Blogs Sign in | Join | Help

Browse by Tags

All Tags » SQL Server Inte... » Foreach Loop
Showing page 1 of 2 (13 total posts)
  • SSIS: Initialise variables the easy way

    Its possible that at some point when building SSIS packages that you will want to initialise a variable with some value at execution time and the most obvious way of doing this is to use a script task. That code would look something like the following: Public Sub Main() Dim vars As Variables ...
    Posted to SSIS Junkie (Weblog) by jamie.thomson on September 9, 2008
  • SSIS: Deleting a group of files

    A question I quite often see on the SSIS forum is: Is there a way to delete a group of files within a directory? ie: I want to delete all files in directorty c:\logs\*.txt (http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=3196521&SiteID=1) Well its actually quite easy, you just need  ForEach Loop container and the FileSystem Task. ...
    Posted to SSIS Junkie (Weblog) by jamie.thomson on April 17, 2008
  • SSIS: Put a package to sleep

    A question was recently asked on the SSIS forum about how you can put a package "to sleep". In other words, pause execution for a defined length of time. It was suggested to use a script task to do this. That would definately work but there is actually a much easier way - use an empty For Loop. Here's a screenshot showing ...
    Posted to SSIS Junkie (Weblog) by jamie.thomson on October 23, 2006
  • SSIS: Processing data from multiple files all at once

    Quite often you may want to process data from multiple files all at the same time. There are a number of options available to you if you want to do this. 1. Have a seperate source adapter for each file and amalgamate them together with the Union All component. Advantages of this approach: This works well if the files are of ...
    Posted to SSIS Junkie (Weblog) by jamie.thomson on October 14, 2006
  • SSIS: Expressions on ForEach enumerators

    I've noticed a few people on the SSIS forum lately asking about expressions on the Foreach Loop. They are aware that its possible to set expressions on properties of the Foreach container but are flummoxed when it comes to setting expressions on the properties of the enumerators themselves. That's understandable because the properties ...
    Posted to SSIS Junkie (Weblog) by jamie.thomson on October 13, 2006
  • SSIS: Append to a raw file

    I have just arrived home from an excellent BI-flavoured meeting of Tony Rogerson's UK SQL Server User Group. Aside from some great content the thing I love about these events is the change to meet up with people from around the BI community - people that I've met both in person and online in the past few years.So Rastko Petrovic, Mat Stephen, ...
    Posted to SSIS Junkie (Weblog) by jamie.thomson on June 22, 2006
  • SSIS Nugget: Setting expressions

    Whilst reading posts on the SSIS forum of late it has become evident that people are unaware of the power that expressions can provide within an SSIS package. This is understandable - alot of people are starting to use SSIS now but expressions aren't the most obvious feature. So what are they? Well the most generic explanation is that ...
    Posted to SSIS Junkie (Weblog) by jamie.thomson on March 11, 2006
  • SSIS: Caching result sets for re-use in a ForEach loop

    Peter (sorry, don't know your surname) made a very good comment here: http://blogs.conchango.com/jamiethomson/archive/2006/02/20/2895.aspx#2903 that data-flows in a ForEach loop carry out repeated SELECTs against a data source and it would be good to be able to cache that data rather than executing the same query over and over. Its a great ...
    Posted to SSIS Junkie (Weblog) by jamie.thomson on February 20, 2006
  • SSIS Nugget: Execute SQL Task into an object variable - Shred it with a Foreach loop

    Here is the first in what will hopefully be a long series of postings in what I have colloquially called my SSIS Nuggets series. I was reading a post this morning from Sam Bendayan in which he was pondering how to store a full result set returned from the Execute SQL Task. He had followed BOL (which according to Sam states that a Full Result Set ...
    Posted to SSIS Junkie (Weblog) by jamie.thomson on July 4, 2005
  • SSIS: Getting a value out of a file to use it in our package

    Someone recently asked on a newsgroup how they could grab hold of a value from a given field in the last row of a file. For example, in the file depicted below we would like to grab the value ''Posh''. I figured this might be a fairly common requirement so figured I'd put something together to show how to do this. There's  probably a number ...
    Posted to SSIS Junkie (Weblog) by jamie.thomson on June 15, 2005
1 2 Next >
Powered by Community Server (Personal Edition), by Telligent Systems