Rafael Pinto

Apenas para minha documentação (mas pode lhe ser útil)

SQL Server blocked access to procedure ‘sys.xp_cmdshell’

com um comentário

If you get this message:

SQL Server blocked access to procedure ‘sys.xp_cmdshell’ of component ‘xp_cmdshell’ because this component is turned off as part of the security configuration for this server. A system administrator can enable the use of ‘xp_cmdshell’ by using sp_configure. For more information about enabling ‘xp_cmdshell’, see “Surface Area Configuration” in SQL Server Books Online.

That’s because, by default, xp_cmdshell is disabled in SQL Server 2005 for security reasons.

To turn it on, run this script:

EXECUTE SP_CONFIGURE 'show advanced options', 1
RECONFIGURE WITH OVERRIDE
GO

EXECUTE SP_CONFIGURE 'xp_cmdshell', '1'
RECONFIGURE WITH OVERRIDE
GO

EXECUTE SP_CONFIGURE 'show advanced options', 0
RECONFIGURE WITH OVERRIDE
GO

Escrito por Rafael

17/07/2009 às 21:58

Publicado em MS SQL

Etiquetado com

Uma resposta

Assinar os comentários com RSS.

  1. [...] Caso o SQL Server bloqueie o acesso a procedure xp_cmdshell é só habilita-la. [...]


Deixe uma resposta

Preencha os seus dados abaixo ou clique em um ícone para log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Sair / Alterar )

Imagem do Twitter

You are commenting using your Twitter account. Sair / Alterar )

Foto do Facebook

You are commenting using your Facebook account. Sair / Alterar )

Connecting to %s

Seguir

Obtenha todo post novo entregue na sua caixa de entrada.