Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

ActiveX component can't create object - SQL2005 Agent Job Expand / Collapse
Author
Message
Posted Friday, May 16, 2008 7:46 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, May 19, 2008 3:13 PM
Points: 2, Visits: 8
We are using SQL Agent ActiveX jobs to send MQ messages using
CreateObject("MQAX200.MQSession").
We are running this without any issues in SQL2000. When we upgraded to SQL2005 we are having errors as below. where STG is our domain and wfservice is part of Administrator group on this server.

Message
Executed as user: STG\wfservice. Error Code: 0 Error Source= Microsoft VBScript runtime error Error Description: ActiveX component can't create object: 'MQAX200.MQSession' Error on Line 23. The step failed

We are also using dome other FAX API and having same problem (can't create object) in SQL2005 but SQL2000 works fine.

Help!
Post #502055
Posted Friday, May 16, 2008 1:33 PM


Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Monday, July 21, 2014 4:13 PM
Points: 318, Visits: 350
That's because Yukon has tighter security than Shiloh.
Have you created a proxy and given it rights to active-x? That may get you what you're after.


Watch my free SQL Server Tutorials at:
http://MidnightDBA.ITBookworm.com

Read my book reviews at:
www.ITBookworm.com

Blog Author of:
Database Underground -- http://www.infoworld.com/blogs/sean-mccown
DBA Rant – http://dbarant.blogspot.com
Post #502328
Posted Monday, May 19, 2008 3:11 PM


Keeper of the Duck

Keeper of the Duck

Group: Moderators
Last Login: Thursday, July 10, 2014 1:34 PM
Points: 6,623, Visits: 1,855
Is the SQL Server 2005 server the exact same server as where you were running SQL Server 2000? In other words, did you do an in-place upgrade or did you install SQL Server 2005 to a new server?


K. Brian Kelley, CISA, MCSE, Security+, MVP - SQL Server
Regular Columnist (Security), SQLServerCentral.com
Author of Introduction to SQL Server: Basic Skills for Any SQL Server User
| Professional Development blog | Technical Blog | LinkedIn | Twitter
Post #503174
Posted Monday, May 19, 2008 3:15 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, May 19, 2008 3:13 PM
Points: 2, Visits: 8
same server upgraded from SQL2000 to SQL2005.
This is 64bit server and could it be that when we ran with SQL2000 we used 32bit version of API DLLS and SQL2005 is running in 64bit mode and can not find API DLL's for 64bit.
Post #503177
Posted Friday, January 21, 2011 9:47 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Yesterday @ 8:02 AM
Points: 25, Visits: 99
Hey Hi,
Can you mention which Tutorial ? I searched a lot on your blog / Ws... Pretty impressive,
Keep it up.

I have a similar issue, the Excel object creation written in script task works fine in debug mode , package execution from VS in release mode, but Not always 100% when exactly configured as a Job with a proxy account
from SQl Agent. Surprisingly the same SSIS packaged job executes creating an excel file on some rainy days but not when sunshines !!!!

I have created a Proxy account a administrator for SQL Agent SQL 2008 R2, but how would you give it rights to execute or create objects like active-x ?

I can send you my code snippet if you desire..

Thankx in advance...
Post #1051650
Posted Thursday, May 26, 2011 12:20 PM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Yesterday @ 8:02 AM
Points: 25, Visits: 99

Was able to get pas thro' the Excel permission rights but still.... stuck in Cannot create ActiveX Component...... for Excel in SSIS SQL2008 R2, Windows 2008 R2 machine.. Sometime back I did something, that worked but still searching what I did...

Due to some DCOM permission settings for Microsoft Excel Application in Component Services. We need to run the command MMC comexp.msc, go to the properties of Microsoft Excel Application, under Identity, change it to The Interactive User from The Launching User (which is set by default). After making this change I was able to run the package as a scheduled Sql job successfully. However, there is still 1 little caveat when we are on x64 Windows 2008 (R2 also) Operating System where Component Services launched in 64 Bit does not show Microsoft Excel Application. In such a scenario we need to launch Component Services in x86 mode with the command MMC comexp.msc /32, rest of things remain the same.
Post #1115756
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse