dbTalk Databases Forums  

dts / com objects

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


Discuss dts / com objects in the microsoft.public.sqlserver.dts forum.



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

Default dts / com objects - 07-19-2005 , 05:04 PM






Hi, I've written a COM object in C# that a DTS package calls via an
Activex Task. I registered it with REGASM. It works just fine when I run
the dts package from within sql server(either within the dts package, or by
right clicking execute) , but when I execute from the dtsrun command either
in a dos window, or in the sql scheduler, I get a dts/vbScript error that
says "File or assembly name not found". (I've tried both dtsrun and
dtsrunUI)

I am executing the package from the same server that it was created on.
I'm logging in with the same NT account that created the package.

Any thoughts on what dtsrun is doing differently??

Thanks
Bill



Reply With Quote
  #2  
Old   
Rick Gittins
 
Posts: n/a

Default Re: dts / com objects - 07-19-2005 , 05:26 PM






Do you have the COM object registered on the server? That's where it runs
from when it is scheduled. It is run from you local machine (where it looks
for the COM object) when you run the DTS or right click to run the DTS.

Rick

"Bill Swartz" <wsaharem (AT) yahoo (DOT) com> wrote

Quote:
Hi, I've written a COM object in C# that a DTS package calls via an
Activex Task. I registered it with REGASM. It works just fine when I
run the dts package from within sql server(either within the dts package,
or by right clicking execute) , but when I execute from the dtsrun command
either in a dos window, or in the sql scheduler, I get a dts/vbScript
error that says "File or assembly name not found". (I've tried both
dtsrun and dtsrunUI)

I am executing the package from the same server that it was created on.
I'm logging in with the same NT account that created the package.

Any thoughts on what dtsrun is doing differently??

Thanks
Bill




Reply With Quote
  #3  
Old   
Bill Swartz
 
Posts: n/a

Default Re: dts / com objects - 07-19-2005 , 05:49 PM



Yeah, I mentioned that I was running it on the same server that the package
was created on.. It ran fine there from the within the package..

Anyway.... the answer is... dtsRun for some reason requires the assembly to
be registered with the /codebase option..

Bill


"Rick Gittins" <rgittins (AT) dungarvin (DOT) com> wrote

Quote:
Do you have the COM object registered on the server? That's where it runs
from when it is scheduled. It is run from you local machine (where it
looks for the COM object) when you run the DTS or right click to run the
DTS.

Rick

"Bill Swartz" <wsaharem (AT) yahoo (DOT) com> wrote in message
news:eHDIN3KjFHA.2772 (AT) TK2MSFTNGP12 (DOT) phx.gbl...
Hi, I've written a COM object in C# that a DTS package calls via an
Activex Task. I registered it with REGASM. It works just fine when I
run the dts package from within sql server(either within the dts package,
or by right clicking execute) , but when I execute from the dtsrun
command either in a dos window, or in the sql scheduler, I get a
dts/vbScript error that says "File or assembly name not found". (I've
tried both dtsrun and dtsrunUI)

I am executing the package from the same server that it was created on.
I'm logging in with the same NT account that created the package.

Any thoughts on what dtsrun is doing differently??

Thanks
Bill






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.