dbTalk Databases Forums  

Cannot run command in DTS

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


Discuss Cannot run command in DTS in the microsoft.public.sqlserver.dts forum.



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

Default Cannot run command in DTS - 03-14-2005 , 03:06 PM






From within a DTS pacakge ActiveX script I'm building a
command with a .cmd extension and then trying to execute
the command via shell.run. I've installed this successfully
on 10 servers so far without a problem. On server 11 the
process is hanging after the command file is created. When
I execute the task from within the DTS package I get the
following message in a popup: Some files can harm your
computer. If the file information below looks suspicious,
or you do not trust the source, do not open or save this
file. It then lists the file information and a warning
about malicious code. We have the option to save or open
the file. I've tried running this with domain admin
credentials.

Question 1: Is there a secure way to allow .cmd files to be
run?

Question 2: Is there a way to turn off the prompting and
make it default to 'open'?

Question 3: Is there something I can do via user/group
credentials?

Reply With Quote
  #2  
Old   
MA
 
Posts: n/a

Default Cannot run command in DTS - 03-15-2005 , 10:45 AM






I resolved the issue with the popup by changing some
security setting in IE. My script now runs until the .cmd
file is created but hangs at that point. It never executes.
This only happens when I'm running the dts via a job. If I
execute the script from within the package it works fine.

Any help or suggestions would be appreciated.
Thanks...
MA
Quote:
-----Original Message-----
From within a DTS pacakge ActiveX script I'm building a
command with a .cmd extension and then trying to execute
the command via shell.run. I've installed this successfully
on 10 servers so far without a problem. On server 11 the
process is hanging after the command file is created. When
I execute the task from within the DTS package I get the
following message in a popup: Some files can harm your
computer. If the file information below looks suspicious,
or you do not trust the source, do not open or save this
file. It then lists the file information and a warning
about malicious code. We have the option to save or open
the file. I've tried running this with domain admin
credentials.

Question 1: Is there a secure way to allow .cmd files to be
run?

Question 2: Is there a way to turn off the prompting and
make it default to 'open'?

Question 3: Is there something I can do via user/group
credentials?
.


Reply With Quote
  #3  
Old   
Simon Worth
 
Posts: n/a

Default Re: Cannot run command in DTS - 03-15-2005 , 04:05 PM



Check the log history to see if it points to anything, also check the event
logs to see if popups were encountered. it will hang on popups if run
through a job. Also, what context is the job being run in - I mean to say,
what user is the job being executed under. Changing IE settings may only be
for you, not the context of the job user running the job.

--
Simon Worth


"MA" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
I resolved the issue with the popup by changing some
security setting in IE. My script now runs until the .cmd
file is created but hangs at that point. It never executes.
This only happens when I'm running the dts via a job. If I
execute the script from within the package it works fine.

Any help or suggestions would be appreciated.
Thanks...
MA
-----Original Message-----
From within a DTS pacakge ActiveX script I'm building a
command with a .cmd extension and then trying to execute
the command via shell.run. I've installed this successfully
on 10 servers so far without a problem. On server 11 the
process is hanging after the command file is created. When
I execute the task from within the DTS package I get the
following message in a popup: Some files can harm your
computer. If the file information below looks suspicious,
or you do not trust the source, do not open or save this
file. It then lists the file information and a warning
about malicious code. We have the option to save or open
the file. I've tried running this with domain admin
credentials.

Question 1: Is there a secure way to allow .cmd files to be
run?

Question 2: Is there a way to turn off the prompting and
make it default to 'open'?

Question 3: Is there something I can do via user/group
credentials?
.




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.