sp_configure xp_cmdshell 옵션

 | SQL
2009. 8. 12. 06:14

SQL Server 2005 에 새로 추가된 xp_cmdshell 옵션은 시스템 관리자가 시스템에서 xp_cmdshell 확장 저장 프로시저를 실행할 수 있는지 여부를 제어할 수 있도록 하는 서버 구성 옵션입니다. 기본적으로 xp_cmdshell 옵션은 새 설치에서는 사용할 수 없도록 되어 있지만 다음 코드 예제에서 볼 수 있듯이 노출 영역 구성 도구를 사용하거나 sp_configure 시스템 저장 프로시저를 실행하여 사용 가능하도록 할 수 있습니다.

-- To allow advanced options to be changed.
EXEC sp_configure 'show advanced options', 1
GO
-- To update the currently configured value for advanced options.
RECONFIGURE
GO
-- To enable the feature.
EXEC sp_configure 'xp_cmdshell', 1
GO
-- To update the currently configured value for this feature.
RECONFIGURE
GO
Posted by ProjectGhost
BLOG main image
by ProjectGhost

공지사항

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백

Total :
Today : Yesterday :