dbTalk Databases Forums  

Permission Denied for CreateObject

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


Discuss Permission Denied for CreateObject in the microsoft.public.sqlserver.dts forum.



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

Default Permission Denied for CreateObject - 07-09-2004 , 05:46 AM






I'm a bit lost.
When I execute a DTS package via the SQL Server Agent I get a Permission Denied for CreateObject after the job successfully creates an object.
Set cn = CreateObject("ADODB.Connection") works
... some code...
Set ftp = CreateObject("doFtp.Ftp") fails
When I log in as the the proxy account/job owner the DTS runs fine.
When I put the job and dll on a test server it runs with no problems as a scheduled job.
The Job executes as the service account. (At least thats the message in the job history)

I'm running Sql 2000 SP3

The dll is one I created in VB. Here's what I've done so far:

The service account the SQL Server Agent starts under and the Proxy Account are both System Administrators.
The owner of the job is the Proxy Account.
I've run dcomcnfg and specifically added the Service Account and Proxy Account.
I've validated that the Service Account and Proxy Account have access to HKLM\software\Microsoft\Ole
I've specifically granted permissions for the proxy account and service account to the directory and file containing the dll
I've stopped and restarted SQL Server Agent.


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

Default Re: Permission Denied for CreateObject - 07-09-2004 , 06:08 AM






298725 - PRB: Scheduled DTS Package Fails With "Permission Denied:
CreateObject"
(http://support.microsoft.com/default...5&Product=sql2
k)



--
Darren Green
http://www.sqldts.com
"Larry Charlton" <LarryCharlton (AT) discussions (DOT) microsoft.com> wrote

Quote:
I'm a bit lost.
When I execute a DTS package via the SQL Server Agent I get a Permission
Denied for CreateObject after the job successfully creates an object.
Set cn = CreateObject("ADODB.Connection") works
... some code...
Set ftp = CreateObject("doFtp.Ftp") fails
When I log in as the the proxy account/job owner the DTS runs fine.
When I put the job and dll on a test server it runs with no problems as
a scheduled job.
The Job executes as the service account. (At least thats the message in
the job history)

I'm running Sql 2000 SP3

The dll is one I created in VB. Here's what I've done so far:

The service account the SQL Server Agent starts under and the Proxy
Account are both System Administrators.
The owner of the job is the Proxy Account.
I've run dcomcnfg and specifically added the Service Account and Proxy
Account.
I've validated that the Service Account and Proxy Account have access to
HKLM\software\Microsoft\Ole
I've specifically granted permissions for the proxy account and service
account to the directory and file containing the dll
I've stopped and restarted SQL Server Agent.




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.