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.
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 /EThe 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_SuccessEnd FunctionAny ideas what's wrong? Thanks for your help!" |
|
|
|
|