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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DTSRun using xp_cmdshell

Status
Not open for further replies.

seekwall

Programmer
May 14, 2001
41
GB
Hi,

I am trying to run the following batch within SQL2000:

declare @cmd varchar(100)
set @cmd = 'dtsrun /s servername /u username /p password /n my_dts'
execute master.dbo.xp_cmdshell @cmd

And keep getting the following error message:

output DTSRun: Loading...

Error: -2147287038 (80030002); Provider Error: 0 (0)

Error string: The system cannot find the file specified.

Error source: Microsoft Data Transformation Services (DTS) Package

Help file: sqldts.hlp

Help context: 713


Can anyone tell me what it is I am doing wrong? I have run the DTSrun part as a batch file, and it works fine


Thanks

Paul
 
Executing DTSRun with xp_cmdshell causes it to run under the SQL Account. The SQL start account must have permissions to whatever files you are trying to access. If those files are available on a mapped drive, remembe that SQL Server doesn't see mapped drives. It runs under its own NT credentials. You may need to use UNC addressing. Terry L. Broadbent - DBA
Computing Links:
faq183-874 contains "Suggestions for Getting Quick and Appropriate Answers" to your questions.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top