Click here to Skip to main content
11,924,487 members (59,534 online)
Click here to Skip to main content
Add your own
alternative version


59 bookmarked

How to Schedule and Run a SSIS package ( DTS ) Job in SQL Server 2005

, 9 Jun 2006
Rate this:
Please Sign up or sign in to vote.
How to Schedule and Run a SSIS package ( DTS ) Job in SQL Server 2005
<!-- Article Starts - DO NOT ADD HTML/BODY START TAGS-->


How to Schedule and Run a SSIS package ( DTS ) Job


In the SQL Server 2005, after you create a SSIS package ( DTS), you want to create a job and schedule to run it. You will get the error to prevent you to run the job. What is the problem?


Here is why: SQL Server 2005 is quite different from SQL Server 2000. In SQL Server 2000, you can create the job and run it without problem. In SQL Server 2005, you need to go through the security layer in order to run the job.


The logic is like this:

Ø      The job executor account needs the roles of sysadmin,  SQLAgentUserRole, SQLAgentReaderRole,  SQLAgentOperatorRole

Ø      The job needs to be run under Proxy account

Ø      The job executor account is better to be used to create SSIS package and so you are sure the job executor account has the right to run this SSIS package.


The following steps can be followed to get the job done.

The work environment is MS SQL Server Management Studio and you log in as sa.


I. Create job executor account

Highlight Security->New Login, say to make login as devlogin, type your password, default database can be your target database.

Server roles: check “sysadmin

User mapping: your target database

Msdb database: you make sure to include SQLAgentUserRole, SQLAgentReaderRole,  SQLAgentOperatorRole

Then click OK


II. Create SQL proxy account and associate proxy account with job executor account

Here is the code and run it the query window.


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'


III. Create SSIS package

In MS SQL Server Business Intelligence Development Studio, you use job executor account devlogin to create the SSIS package (DTS) and make sure you can execute this package in SQL Server Business Intelligence Development Studio. Compile/build this package.


IV. Create the job, schedule the job and run the job

In SQL Server Management Studio, highlight SQL Server Agent -> Start. Highlight Job ->New Job…, name it , myJob.

Under Steps, New Step, name it, Step1,

Type: SQL Server Integration Service Package

Run as: myProxy

Package source: File System

Browse to select your package file xxx.dtsx

Click Ok

Schedule your job and enable it


Now you can run your job.


If you think this is very helpful, please leave your comments online. If you have any questions or suggestions, please email me at


Happy SQLing!


- Hongwei Li





This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author
Web Developer
United States United States
.Focus on database (SQL Server 2005/2000/7/6.5 and Oracle 10g) development with C#,

.Like to work with MS Server 2005 SSIS and report service
.Like full cycle software design, development and deployment
.Microsoft Certified SQL Server Developer and DBA.

You may also be interested in...

Comments and Discussions

QuestionPerfect! Pin
Member 368331728-May-14 14:29
memberMember 368331728-May-14 14:29 
QuestionThis just saved me from madness Pin
glynrb16-Jan-13 1:22
memberglynrb16-Jan-13 1:22 
GeneralMembers of sysadmin server role are allowed to use any proxy. Pin
Mohammed Raheem23-Jul-12 2:55
memberMohammed Raheem23-Jul-12 2:55 
QuestionCreate SSIS with job executor, how? Pin
zhuangrich17-Jul-11 21:39
memberzhuangrich17-Jul-11 21:39 
GeneralThanks a lot - Muchas Gracias Pin
Member 358032614-Jan-11 9:23
memberMember 358032614-Jan-11 9:23 
GeneralWow... Thanks its works Pin
anakbinus17-Aug-09 18:40
memberanakbinus17-Aug-09 18:40 
GeneralGreat help! Pin
Omoba28-Apr-09 6:07
memberOmoba28-Apr-09 6:07 
thanks a lot, your article really helped me with scheduling my SSIS package. Thumbs Up | :thumbsup:

Is life easier, with or without technology?

Generalfaster extraction and loading on SSIS. Pin
blackpower2k725-Apr-09 20:54
memberblackpower2k725-Apr-09 20:54 
GeneralSSIS execution from SQL agent Pin
mmohsin20-Jan-09 7:40
membermmohsin20-Jan-09 7:40 
QuestionDo I need a NT account for creating an credential? Pin
Chris sc Lee9-Dec-08 15:55
memberChris sc Lee9-Dec-08 15:55 
GeneralSSIS OLE DB Source oracle proc call Pin
WTurcios27-Aug-08 10:49
memberWTurcios27-Aug-08 10:49 
GeneralOMG Thank you so much Pin
anvie1-Aug-08 7:32
memberanvie1-Aug-08 7:32 
GeneralGreat working solution - I think there may be more though Pin
James Towell31-Jul-08 4:00
memberJames Towell31-Jul-08 4:00 
GeneralDTS to SSIS conversion Pin
SayCode24-Jul-08 5:50
memberSayCode24-Jul-08 5:50 
GeneralRunning an SSIS package Pin
Stevie G22-May-08 2:02
memberStevie G22-May-08 2:02 
GeneralGood Job Man! Pin
JonCR6-May-08 12:30
memberJonCR6-May-08 12:30 
QuestionHow do I resolve error after following Step 1? [modified] Pin
Paul Cho7-Feb-08 11:16
memberPaul Cho7-Feb-08 11:16 
AnswerRe: How do I resolve error after following Step 1? Pin
Paul Cho19-Feb-08 12:56
memberPaul Cho19-Feb-08 12:56 
GeneralGreat Pin
Cool_rajdevil12-Jul-07 4:40
memberCool_rajdevil12-Jul-07 4:40 
GeneralI am not able to find the option: Package Source: File System. Pin
WadeDing29-May-07 8:23
memberWadeDing29-May-07 8:23 
GeneralRe: I am not able to find the option: Package Source: File System. Pin
hong_wei_li@yahoo.com29-May-07 19:40
memberhong_wei_li@yahoo.com29-May-07 19:40 
GeneralRe: I am not able to find the option: Package Source: File System. Pin
WadeDing30-May-07 3:29
memberWadeDing30-May-07 3:29 
GeneralRe: I am not able to find the option: Package Source: File System. Pin
WadeDing30-May-07 6:34
memberWadeDing30-May-07 6:34 
QuestionSQL Server Integration Service Package Type [modified] Pin
Aunty B13-Feb-07 5:46
memberAunty B13-Feb-07 5:46 
AnswerRe: SQL Server Integration Service Package Type Pin
Aunty B13-Feb-07 6:25
memberAunty B13-Feb-07 6:25 
GeneralVerify SSIS Account Pin
jlminer5-Jan-07 11:41
memberjlminer5-Jan-07 11:41 
GeneralMicrosoft - An SSIS package does not run when you call the SSIS package from a SQL Server Agent job step Pin
coby cai26-Sep-06 18:21
membercoby cai26-Sep-06 18:21 
GeneralA Tip Pin
coby cai26-Sep-06 18:18
membercoby cai26-Sep-06 18:18 
GeneralIncomplete solution Pin
mahmudaq25-Aug-06 4:22
membermahmudaq25-Aug-06 4:22 
QuestionSQL Sever DTS [modified] Pin
| Muhammad Waqas Butt |9-Jun-06 23:07
member| Muhammad Waqas Butt |9-Jun-06 23:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.151125.3 | Last Updated 9 Jun 2006
Article Copyright 2006 by
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid