DTS Package Help | Stored Procedure to Txt File

Discussion in 'Databases' started by datropics, Apr 10, 2007.

  1. #1
    Hi,

    could someone tell me how I go about creating a DTS package that executes two stored procedures and have the results put in 2 different files which are stored on a remote location (another server)?

    I have never worked with DTS packages before and would really appreciate the help.

    Thanks in advance
     
    datropics, Apr 10, 2007 IP
  2. briansol

    briansol Well-Known Member

    Messages:
    221
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    110
    #2
    new package
    from sql
    to destination 1 text file (path it like \\192.168.1.1\d$\folder\file.txt)
    use query, put in exec sp_xxxxx
    chose options for pipes, tabs, commas, etc
    save


    do the same thing for the other file

    now you have 2 dts's

    create a 3rd dts, which calls these two packages
    inset the connection object
    insert the two package tasks
    click on the first, then ctrl click the 2nd,
    right click, On success

    draws the arrow for you.
    save and close

    then you can schedule the main "wrapper" package to run it all at once nice and easy
     
    briansol, Apr 10, 2007 IP
  3. datropics

    datropics Peon

    Messages:
    309
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    0
    #3
    I'll try this and let you know - thanks BrianSol
     
    datropics, Apr 11, 2007 IP