Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

run dts package from sql server agent

Status
Not open for further replies.

tek2002

Programmer
Aug 21, 2001
67
0
0
US
i created a dts package called Nef_Projects which moves data from an excel file to table1 in BLA database - it works fine when executed.

i created a job in sql server agent with step1 deleting data from table1 in BLA database and step2 runs the above DTS package.

the problem i am having is that the job executes fine with no errors but table1 in BLA database is empty so step1 appears to work but it that seems step2 is not working.

perhaps my syntax in step2 is incorrrect?
master..xp_cmdshell 'DTSrun /BLA/sa/pwd123/Nef_Projects'

anyone have any suggestions?

thanks for your help.
 
No real solution but you might want to look at which account the job is running under. I know I've had DTS packages work fine when I execute them but fail as a job.

See the following:

Also, to use the xp_cmdshell you must have admin rights or assign the user account execute permissions.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top