dbTalk Databases Forums  

DTS ActiveX Script - Fail on Schedule HELP!

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


Discuss DTS ActiveX Script - Fail on Schedule HELP! in the microsoft.public.sqlserver.dts forum.



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

Default DTS ActiveX Script - Fail on Schedule HELP! - 09-18-2003 , 04:49 PM






Hi All,

I finally finished my project in DTS running it manually about 9 billion
times through many test scenarios... :-)

Anyway, here's my issue... When I schedule the job it is failing to run on
a creatobject line... permissons???

Any thoughts? Please please please! :-))))

Travis



Reply With Quote
  #2  
Old   
Sue Hoegemeier
 
Posts: n/a

Default Re: DTS ActiveX Script - Fail on Schedule HELP! - 09-18-2003 , 10:10 PM






It depends - failing on create what object? If it's your own
component, maybe it hasn't been registered on the server.

-Sue

On Thu, 18 Sep 2003 14:49:50 -0700, "REM7600"
<rem7600 (AT) hotmail (DOT) com> wrote:

Quote:
Hi All,

I finally finished my project in DTS running it manually about 9 billion
times through many test scenarios... :-)

Anyway, here's my issue... When I schedule the job it is failing to run on
a creatobject line... permissons???

Any thoughts? Please please please! :-))))

Travis



Reply With Quote
  #3  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: DTS ActiveX Script - Fail on Schedule HELP! - 09-19-2003 , 01:14 AM



Further to Sue's comments. We would need to know what it cannot
create. If it is an instance of a DTS package then we probably need to
reregister the DTS dlls. Usually when you can use DTS manually and not
when scheduled then this is the problem

http://support.microsoft.com/?kbid=269074


Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


Reply With Quote
  #4  
Old   
REM7600
 
Posts: n/a

Default Re: DTS ActiveX Script - Fail on Schedule HELP! - 09-19-2003 , 10:28 AM



Sue and Allan...

The package runs fine when manually run even on the server or run manually
on my workstation. When run as a job it fails. I agree that it is security
related and am doing my best to sift through the document Allan mentioned.
The object I am creating is an FTP object. I ran the setup program on the
server for the control.

' this is a custom FTP control that gives fairly clean FTP functionality
within VBScript
' setup FTP Wizard object
set FTPWizard1 = CreateObject("FTPWizard.FTPWizardCtrl2")

I really hope to be able to make this work as the package would "come
together" nicely...

Travis


"Sue Hoegemeier" <Sue_H (AT) nomail (DOT) please> wrote

Quote:
It depends - failing on create what object? If it's your own
component, maybe it hasn't been registered on the server.

-Sue

On Thu, 18 Sep 2003 14:49:50 -0700, "REM7600"
rem7600 (AT) hotmail (DOT) com> wrote:

Hi All,

I finally finished my project in DTS running it manually about 9 billion
times through many test scenarios... :-)

Anyway, here's my issue... When I schedule the job it is failing to run
on
a creatobject line... permissons???

Any thoughts? Please please please! :-))))

Travis





Reply With Quote
  #5  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: DTS ActiveX Script - Fail on Schedule HELP! - 09-19-2003 , 11:21 AM



You can easily prove then the security issues

Go to the server
Log in as the SQL Server Agent Account
Now execute your package



Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


Reply With Quote
  #6  
Old   
REM7600
 
Posts: n/a

Default Re: DTS ActiveX Script - Fail on Schedule HELP! - 09-19-2003 , 11:33 AM



Allan is this the account used to start the SQL Server Agent Service? And
by EXECUTE you mean run the job, correct?

Thanks for all the help!

Travis

Quote:
You can easily prove then the security issues

Go to the server
Log in as the SQL Server Agent Account
Now execute your package





Reply With Quote
  #7  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: DTS ActiveX Script - Fail on Schedule HELP! - 09-19-2003 , 11:56 AM



Correct




Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


Reply With Quote
  #8  
Old   
REM7600
 
Posts: n/a

Default Re: DTS ActiveX Script - Fail on Schedule HELP! - 09-19-2003 , 12:06 PM



tested and still failed... This "ain't lookin' good" so to speak...

I'm testing with a VERY basic ActiveX Script example and it fails to
instantiate the object when scheduled. Works fine when run manually at the
server console.

ARRRGGGGHHHHHHHHH! Another $200 down the drain on an ActiveX for FTPing
that won't QUITE get the job done. Perhaps I'll just start staying around
the clock manually running the routine every 2 minutes! Whatdya think? :-(

TR

Quote:
Correct



Reply With Quote
  #9  
Old   
Sue Hoegemeier
 
Posts: n/a

Default Re: DTS ActiveX Script - Fail on Schedule HELP! - 09-19-2003 , 01:37 PM



Maybe there is something stored in the user profile for the
component - you try rerunning setup logging onto the server
using the service account for SQL Server Agent and install
it under that user. You could also try reregistering.
Possibly there may be some info in the event logs on the
server that could have some info. Maybe not...just something
to check.

-Sue

On Fri, 19 Sep 2003 10:06:40 -0700, "REM7600"
<rem7600 (AT) hotmail (DOT) com> wrote:

Quote:
tested and still failed... This "ain't lookin' good" so to speak...

I'm testing with a VERY basic ActiveX Script example and it fails to
instantiate the object when scheduled. Works fine when run manually at the
server console.

ARRRGGGGHHHHHHHHH! Another $200 down the drain on an ActiveX for FTPing
that won't QUITE get the job done. Perhaps I'll just start staying around
the clock manually running the routine every 2 minutes! Whatdya think? :-(

TR

Correct



Reply With Quote
  #10  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: DTS ActiveX Script - Fail on Schedule HELP! - 09-19-2003 , 03:53 PM



I would give Sue's idea a go. I once saw this with some AS400 drivers.
They would only work if the person who installed them ran the
package/load.


Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


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.