Data Import Functionality Using SQL Server

  • tjayram

    SSC Rookie

    Points: 48

    Comments posted to this topic are about the content posted at

  • tjayram

    SSC Rookie

    Points: 48


    You are 100% right. This is very good point. Sample code I supplied uses this approach but failure notification is never sent if process fails initially in any of the tasks.

    I guess best approach in this case is to have separate failure notification task in each case.

    Thanks for your valuable comments.


  • layne

    SSC Rookie

    Points: 32

    One option to maintain the clean modularity of your notification task is to use two packages to organize or "scope" your code.

    The added "controller" package contains an Execute Package Task for the existing package of ETL tasks. The Send Mail Task is moved to the controller package with an On Failure constraint from the Execute Package Task. Pass the path of the ETL package's log file back to the controller package as a global variable. Set the FileAttachments property of the Send Mail Task to the global variable value so that the log file can conveniently be read as an attachment to the failure notification email.

    This would avoid the development burden of building a custom task or ActiveX script to avoid redundancy.

    (Of course, a custom task is the direction to go when you need powerful auditing or, especially, an error handler...but throwing COM or Visual Studio into the mix probably won't meet the spec for simplicity of maintenance.)

  • irhm

    SSC Rookie

    Points: 28

    This is a very useful article, and should help get us started on our project. But I can't find the "download" scripts anywhere. Are they on this website?


  • Oblio Leitch


    Points: 2137

    I'm brand new to the whole DTS scene, and I found the article very helpful. However, my task involves some conditional processing. Could you help me by providing some examples of conditional logic for determining whether the current row is existing or not (ins vs upd)? I know very little VBscript/ActiceX, but I can extrapolate from examples.

    I really appreciate it.

  • Dhanunjay Kumar Vootada


    Points: 17


    Could you please let me know the URL, where i can find the Sample Code for this.

    Thank You

  • philcart


    Points: 47794

    As the article is over two years old and the author has not been active on the website since posting the article, I'd say the download is no longer available.


    Colt 45 - the original point and click interface

  • Marco Esquivel

    SSC Rookie

    Points: 25

    Why don't you provide database ?

  • Calvin Lawson


    Points: 11030

    "Data Driven Query Task" suck, if you ask me. Other than that, it's a pretty good overview of what you can do with DTS. Personally, I put business rules in SQL code, preferably making it data driven so users can modify the imports in simple ways without changing code.


    Signature is NULL

  • mcajanarth


    Points: 21


Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic. Login to reply