Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 dtsrun works from command prompt, hangs in Query Analyzer

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2006-08-09 : 09:08:23
Vanessa writes "I have a dts that works from the command prompt, but hangs in Query Analyzer. Here's the code inside Query Analyzer:
exec master..xp_cmdshell 'dtsrun /S myserver /N mydts /E'

From the command prompt, it's just:
dtsrun /S myserver /N mydts /E

The dts just runs the following activeX script:
Function Main()
Dim filePath, fileName

fileName = "\\mypath\my_excel_file.xls"

dim excelObject
set excelObject = CreateObject("Excel.Application")

excelObject.workbooks.open fileName

excelObject.Quit
set excelObject = Nothing

Main = DTSTaskExecResult_Success
End Function

Any ideas what's wrong? Thanks for your help!"
   

- Advertisement -