Quantcast
Channel: SQL Service Broker forum
Viewing all articles
Browse latest Browse all 461

Differences in XP_CmdShell executions through Service Broker between 2005 and R2

$
0
0
We are upgrading our system from SQL Server 2005 to R2.

We have small module which executes XP_CmdShell through Service Broker (using the Procedure_Name option in the Queue deffinition).

In 2005 it works fine, but in R2 it fails if I don't define a Credential for the XP_CmdShell Proxy (##xp_cmdshell_proxy_account##' credential).

I tried to override it using 'Execute As' with different Logins (me and other sysadmins) but it fails, though the XP_Cmdshell work fine through the SSMS with or without 'Execute As'.

A solution exists: I should use sp_xp_cmdshell_proxy_account system procedure to create a proxy, but I still don't understand why the XP_CmdShell doesn't behave inside the Service Broker in the same way as it behave outside (in the SSMS);
and why this problem doesn't occur in 2005.

Any suggestions?
(this is a revised version of a previous question in the Security Forum)

Geri Reshef http://gerireshef.wordpress.com


Viewing all articles
Browse latest Browse all 461

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>