DTS Job Scheduling!! Very Confusing??

  • Hi all,

    I am trying to create scheduled job for DTS. I have created new DTS in SQL 2005 but not able to create job out of it.

    I tried creating Credential and then to create proxy with this:

    Use master

    CREATE CREDENTIAL [MyCredential] WITH IDENTITY = 'yourdomain\myWindowAccount', secret = 'WindowLoginPassword'

    Use msdb

    Sp_add_proxy @proxy_name='MyProxy', @credential_name='MyCredential'

    Sp_grant_login_to_proxy @login_name=' devlogin', @proxy_name='MyProxy'

    Sp_grant_proxy_to_subsystem @proxy_name='MyProxy', @subsystem_name='SSIS'

    but could not get the job to schedule it. when i try to search for the DTS package(TestRev) it could not find it:

    Is there a way that i can just call TSQL statement to run that dam DTS because it is too confusing to create job for DTS.

    Thanks

  • Ok...I'm no expert on credentials and proxies, but I have gotten this to work.  The issue is that there is encrypted secrets in your package.  Packages without passwords don't have this problem. 

    Here is what I do if I have to have a password in my package:

    1. I create a credential for the sql server service account, and a proxy for that.
    2. Log into the server using the service account, open the package, and enter the password information.  This will encrypt the password using the service account credentials.
    3. Import the job into the server.
    4. Add the job to a job step, and choose to "run as" your proxy name.

    I don't like this solution...but it does work for me.  I am chiming in here mostly because I want to see alternative strategies.

  • Since I don't want to schedule every package for the devs, I was motivated to get this to work.  I used the same proxy user I had for SS2000 jobs (win authent).  Using SSMS, add the login (giving just dtsoperator in msdb permissions, no server permissions); create the credential (using the win authent login), create a proxy, giving 'SSIS Package Execution' and 'OS' subsystems.  The developers need access to run their jobs as the proxy user, so right-click your new proxy and add them as principals.

    Then, devs can 'create job', type='ssis', enter server, find the package (they have all been imported to msdb). Set 'run as' to your proxy user.  Devs need dts and job permissions on msdb.  Other posts here give great help on getting devs able to access SSIS on a remote server; I was able to get an AD group to work, so only needed one com/dcom config change per server.

    As to scripting, I'd use ssms once to get it to work, then script out what you need.

    HTH, Mary Bahrami

Viewing 3 posts - 1 through 2 (of 2 total)

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