dbTalk Databases Forums  

Can DTS packages containing WMI be run as a job?

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Can DTS packages containing WMI be run as a job? in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Tim Jolliffe
 
Posts: n/a

Default Can DTS packages containing WMI be run as a job? - 05-17-2006 , 05:25 PM






Hi,

I've written a DTS package that contains WMI logic in ActiveX scripts.
It works perfectly when I run it in DTS designer. It also works fine
when I right-click/execute it from Enterprise Manager.

However, it fails when I run it as a SQL job. It also fails when I run
it from the command line via DTSRUN.

The only message is the generic "ActiveX Scripting encountered a Run
Time Error during the execution of the script."

The SQLSERVERAGENT login is a member of the local Admin group.

The line it fails on is:

Set colFiles = objWMIService.ExecQuery _
("SELECT * FROM CIM_DataFile WHERE Path = ...")


It even fails when I run a local copy where SQLSERVERAGENT is running
under my login.

Any ideas? Thanks.

Tim


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.