dbTalk Databases Forums  

Job -> xp_cmdshell 'DTSRun ' - Access Denied !

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


Discuss Job -> xp_cmdshell 'DTSRun ' - Access Denied ! in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Johnny Silvestre
 
Posts: n/a

Default Job -> xp_cmdshell 'DTSRun ' - Access Denied ! - 12-23-2004 , 06:42 AM






Hi Friends,
I have a SQLServer Job that try to execute a command
DTSrun using the proc xp_cmdshell, but I receive "Access
Denied" when the DTSrun are executed

my configuration:
SQL Server 7.00 - 7.00.1063 (Intel X86) - SP4
Windows 2000 - Service Pack 4

Someone can help me ?

thx
Johnny

Reply With Quote
  #2  
Old   
Akshay Mittal
 
Posts: n/a

Default RE: Job -> xp_cmdshell 'DTSRun ' - Access Denied ! - 12-25-2004 , 02:31 AM






Hi,

The security context in which the job is run is determined by the owner of
the job. If the job is owned by a login that is not a member of the Sysadmin
server role, then the package is run under the context of the SQLAgentCmdExec
account and has the rights and permissions of that account.

For SQLAgentCmdExec to be able to run jobs that connect to SQL Server, the
SQLAgentCmdExec account must have proper Windows/NT permissions and be
granted login access to SQL Server with appropriate database permissions. The
SQLAgentCmdExec account generally has no rights outside of the local SQL
Server computer. Therefore, any package that requires a connection to another
computer fails, if it is scheduled as a job owned by a login that is not a
member of the Sysadmin role.

For more information:
http://support.microsoft.com/?id=269074


"Johnny Silvestre" wrote:

Quote:
Hi Friends,
I have a SQLServer Job that try to execute a command
DTSrun using the proc xp_cmdshell, but I receive "Access
Denied" when the DTSrun are executed

my configuration:
SQL Server 7.00 - 7.00.1063 (Intel X86) - SP4
Windows 2000 - Service Pack 4

Someone can help me ?

thx
Johnny


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.