Re: Permission Denied for CreateObject

From: Darren Green (darren.green_at_reply-to-newsgroup-sqldts.com)
Date: 07/09/04


Date: Fri, 9 Jul 2004 12:08:23 +0100

298725 - PRB: Scheduled DTS Package Fails With "Permission Denied:
CreateObject"
(http://support.microsoft.com/default.aspx?scid=kb;en-us;298725&Product=sql2
k)

-- 
Darren Green
http://www.sqldts.com
"Larry Charlton" <LarryCharlton@discussions.microsoft.com> wrote in message
news:E4F052DF-387C-4C4F-87AF-DBD68D0B0BCE@microsoft.com...
> 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.
>


Relevant Pages

  • Permission Denied for CreateObject
    ... 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. ... The service account the SQL Server Agent starts under and the Proxy Account are both System Administrators. ...
    (microsoft.public.sqlserver.dts)
  • Re: SQL Agent Proxy account
    ... Try changing the SQL Server service account via Enterprise Manager as ... You can also specify the proxy account from ... System --> Reset proxy account. ...
    (microsoft.public.sqlserver.server)
  • RE: Unable to set the SQL Agent proxy account
    ... The Proxy Account should not be the same account used to ... Start SQL Server and SQL Agent. ... SQL Server Agent proxy accounts allow SQL Server users who do not belong to ... SQL Server Agent jobs. ...
    (microsoft.public.sqlserver.security)
  • Set Sql Agent Proxy Account to Local Account
    ... Hi- I'm trying to set the Proxy Account for Sql Server agent to a local ... windows account. ... EXECUTE xp_sqlagent_proxy_account N'SET' ...
    (microsoft.public.sqlserver.security)
  • Re: Is this the correct group to post problems about proxy accounts?
    ... Try resetting the proxy account using the user and password ... the properties of SQL Server Agent, on the Job Control tab, ... click on Reset Proxy Account. ... >the logon details are correct. ...
    (microsoft.public.sqlserver.security)