This is a discussion on Error executing xp_cmdshell from within a SQL task in a DTS package... within the SQL Server forums, part of the Microsoft SQL Server category; --> Hello I am trying to execute ‘xp_cmdshell' from within a DTS package that was created by another person. When ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hello I am trying to execute ‘xp_cmdshell' from within a DTS package that was created by another person. When I try to execute that ‘SQL Task' selectively from within the package, I get the following error message: Error Title: Package Error Error Details: Error Source: Microsoft OLE DB Provider for SQL Server Error Description: xpsql.cpp: Error 87 from GetProxyAccount on line 604 Why is this error message popping up? When I create a new package (myself) and create an exact same SQL task as above and run it, the SQL task runs fine. Appreciate any help / feedback. Thanks in Advance Jagannathan Santhanam |
| ||||
| When a sysadmin role member executes xp_cmdshell, it runs under the security context of the SQL Server service account. However, when a non-sysadmin user executes the proc, it runs under the SQL Agent proxy account. It looks like there is an issue with your configuration of the proxy account and/or SQL Server service account security. Enterprise Manager automatically assigns the necessary rights to these accounts when these are specified or changed via the GUI. Alternatively, you can manually assign the following Windows rights to the accounts. <Excerpt href="http://support.microsoft.com/default.aspx?scid=kb;en-us;264155"> MSSQLServer and SQLServerAgent Services - Act as part of the Operating System. - Increase Quotas. - Replace a process level token. - Log on as a batch job. SQLAgentCmdExec Account - Log on as a batch job. NOTE: You must restart the entire server, not just the SQL Services, in order for any changes made to user rights permissions to take effect. </Excerpt> -- Hope this helps. Dan Guzman SQL Server MVP ----------------------- SQL FAQ links (courtesy Neil Pike): http://www.ntfaq.com/Articles/Index....partmentID=800 http://www.sqlserverfaq.com http://www.mssqlserver.com/faq ----------------------- "Jagannathan Santhanam" <jags_32@yahoo.com> wrote in message news:605df08e.0311170307.39d9b1f1@posting.google.c om... > Hello > > I am trying to execute 'xp_cmdshell' from within a DTS package that > was created by another person. When I try to execute that 'SQL Task' > selectively from within the package, I get the following error > message: > > Error Title: Package Error > Error Details: > Error Source: Microsoft OLE DB Provider for SQL Server > Error Description: xpsql.cpp: Error 87 from GetProxyAccount on line > 604 > > > Why is this error message popping up? When I create a new package > (myself) and create an exact same SQL task as above and run it, the > SQL task runs fine. > > Appreciate any help / feedback. > > Thanks in Advance > Jagannathan Santhanam |
| Thread Tools | |
| Display Modes | |
|
|