Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2006
    Posts
    4

    Unanswered: Create a SP that will launch a DTS package

    Hi all. How can I create a Stored Procedure that will launch a DTS package that I have already built dynamically ?

    I have a string already built and I need to put it in a SP because my application is php (linux) and the database is SQL Server on a Windows machine.

    I will use php to execute the stored proc, which is the only way to access it.

    My string looks like this :
    C:\Progra~1\Micros~3\80\Tools\Binn\ISQL.EXE -S [MyServer] -U [Username] -P [Password] -Q "ISQL_Batch 'D:\DDFIImporte\IMPICAFI.bat [user] [Schema] [Pwd] '" -n -d [database]

    (Words in [] are only to show that I will put other values)

    Thanks


    CFGilles

  2. #2
    Join Date
    Nov 2004
    Location
    on the wrong server
    Posts
    8,835
    Provided Answers: 6
    xp_cmdshell but it will have to execute with sysadmin permissions.
    “If one brings so much courage to this world the world has to kill them or break them, so of course it kills them. The world breaks every one and afterward many are strong at the broken places. But those that will not break it kills. It kills the very good and the very gentle and the very brave impartially. If you are none of these you can be sure it will kill you too but there will be no special hurry.” Earnest Hemingway, A Farewell To Arms.

  3. #3
    Join Date
    Oct 2006
    Posts
    4

    Create a SP that will launch a DTS package

    Hi,

    Can you be more specific ?? I'm a near-newby in SP building... Maybe some pseudo-code, some links or examples ?

    Thanks

    CFGilles

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •