How to find DTS package Name from JOB step

  • Hi all,

    How to find DTS Package name from a job steps. As it was encrypted like this

    DTSRun /~Z0x63739A9F0C47A5C6D8BFEC64E6301C6E3E4892

    but i want to find out which DTS package is used in this job step.

    Thanks & Regards

    Shashi kant chauhan

  • Right click on the job and do a Generate SQL Script. CLick the Preview button and look at the line for:

    --Add the job

    and take a look at the variable @description. It should state the package name that the job is executing, like this:

    @description = N'Execute package: XXX'

  • That will only work if the package name was used in the step description. What you need to do is

    decrpyt the DTSRUN command. Do this:

    copy the command to a cmd prompt, append /!X /!C to the end, and run it. The !X argument blocks

    execution of the package and the !C argument copies the unencrypted command to the Windows clipboard.

    Just open Notepad and paste to see the unencrypted command. Look for the package name after the 'N'

    argument.

    Greg

    Greg

  • Thanks to both of you,

    The first reply is only applicable when you use the name as an unencrypted form...

    The second reply i check and tried before my testing but i have not got the result at all..

    In my case this is not work fine .

    I got a very good reply from one of my friend Named Neeraj Malik 🙂

    he suggest me to use DTSRUNDEC.exe for getting exact name of package which is used.

    You just download this package and use the exe as i used.

    Please check this link for download this file http://jimmers.info/software.html

    Steps.

    Start-> Run-> Cmd

    extract your DTSRUNDESC.exe file on desktop.

    after that cd c:\documents and settings\User\desktop\DTSRUNDESC.exe 0xh1........

    the last parameter is you encrypted name of the DTS package which comes after /~z option.

    after running this you got the Package name, server Name.

    Regards

    Shashi Kant Chauhan

    (Share your knowlege with others, Really it grows. So don't hesitate while giving some one somthing)

  • I've used DTSRUNDEC and it does work, but the method I described was easier to use so I've stuck with it. I'm curious about why it didn't work for you.

    Greg

    Greg

  • Greg Charles (12/17/2007)


    That will only work if the package name was used in the step description. What you need to do is

    decrpyt the DTSRUN command. Do this:

    copy the command to a cmd prompt, append /!X /!C to the end, and run it. The !X argument blocks

    execution of the package and the !C argument copies the unencrypted command to the Windows clipboard.

    Just open Notepad and paste to see the unencrypted command. Look for the package name after the 'N'

    argument.

    Greg

    Worked like a charm for me .. Thanks !

  • Thanks Greg Charles,

    for your alternative suggestion, Now /!x /!c works in my case

    Output is same in both the solution.

    Regards

    Shashi Kant chauhan

  • The /!X /!C tricked worked fine for me and is definately a good tip. But instead of scripting the job so you can see what it is going to set the Description property to, why don't you just look at the job properties to see the Description property?

    I've usually relied on the fact that when you schedule the job it has the same name as the package that was scheduled. In my experience, none of these scheduled packages has been edited later to add steps or change the description property so I didn't have to do much guessing. If there's any doubt that the DTS command line doesn't match the job name or description, decrypting the command line is the only way to be certain.

  • That's a really nice tip - it worked for me too. I inherited a few encrypted jobs when I took over this position so have now been able to unencrypt them and update the jobs with the real name of the DTS package. Thanks.

  • Works Perfectly for me.

    Thanks Greg

    Arjun

  • Excellent!! Thank you so much for the solution.

  • Great Tip. You da man.

    Thanks Greg

  • its perfectly worked for me..thanks Greg for the tip

  • Hi when i try to do this command i get the following error

    Invalid hex test for encrypted parameter

    this is what am running i don;t show the complete encyrped text but it give you an idea..

    C:program files\DTSRun /~Z0../!X/!C

Viewing 14 posts - 1 through 13 (of 13 total)

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