dbTalk Databases Forums  

Urgent: ActiveX component can't create object in DTS

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


Discuss Urgent: ActiveX component can't create object in DTS in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mihaela M.
 
Posts: n/a

Default Urgent: ActiveX component can't create object in DTS - 04-05-2004 , 07:23 AM






I built a DTS package, which contains just one ActiveX Script Task
(VBScript).
In this script I have to create an object, used for crypting/decrypting
strings:
Set enobj=CreateObject("encrypt.encr")

This object is a DLL registered on the server.
I tested the script into an ASP page, it works fine. But in DTS it gives me
the following error:
"ActiveX component can't create object"

What is wrong with this object here? It works fine in other applications.
What have I do?

Please help. It's urgent!
Thanks.



Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: Urgent: ActiveX component can't create object in DTS - 04-05-2004 , 07:57 AM






In message <Obg8QjwGEHA.3472 (AT) TK2MSFTNGP11 (DOT) phx.gbl>, Mihaela M.
<mihaela.mesaros (AT) s-concept (DOT) net> writes
Quote:
I built a DTS package, which contains just one ActiveX Script Task
(VBScript).
In this script I have to create an object, used for crypting/decrypting
strings:
Set enobj=CreateObject("encrypt.encr")

This object is a DLL registered on the server.
I tested the script into an ASP page, it works fine. But in DTS it gives me
the following error:
"ActiveX component can't create object"

What is wrong with this object here? It works fine in other applications.
What have I do?

Please help. It's urgent!
Thanks.


Are you sat at the server executing the package?

If you are sat at a workstation executing this package through
Enterprise Manager then that is where the package is executing, not the
server, so that is where the Dll needs to be registered. DTS is client
side, as it too is just a load of COM objects.


--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org



Reply With Quote
  #3  
Old   
Mihaela M.
 
Posts: n/a

Default Re: Urgent: ActiveX component can't create object in DTS - 04-05-2004 , 08:25 AM



Right! Few minutes ago I realized that. I was executing the DTS from
Enterprise Manager from another workstation, not from the server.
Then I realized it was wrong. I connected to the server with the Terminal
Client and I executed the DTS from there and it worked, of course

Thanks!!!


"Darren Green" <darren.green (AT) reply-to-newsgroup-sqldts (DOT) com> wrote

Quote:
In message <Obg8QjwGEHA.3472 (AT) TK2MSFTNGP11 (DOT) phx.gbl>, Mihaela M.
mihaela.mesaros (AT) s-concept (DOT) net> writes
I built a DTS package, which contains just one ActiveX Script Task
(VBScript).
In this script I have to create an object, used for crypting/decrypting
strings:
Set enobj=CreateObject("encrypt.encr")

This object is a DLL registered on the server.
I tested the script into an ASP page, it works fine. But in DTS it gives
me
the following error:
"ActiveX component can't create object"

What is wrong with this object here? It works fine in other applications.
What have I do?

Please help. It's urgent!
Thanks.



Are you sat at the server executing the package?

If you are sat at a workstation executing this package through
Enterprise Manager then that is where the package is executing, not the
server, so that is where the Dll needs to be registered. DTS is client
side, as it too is just a load of COM objects.


--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

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.