--打开xp_cmdshell
EXEC sp_configure ‘show advanced options‘, 1GORECONFIGUREGOEXEC sp_configure ‘xp_cmdshell‘, 1GORECONFIGUREGO
use ConfigDBgospb_netuse_ntqa @device=‘V‘
xp_cmdshell ‘dir V:‘
开启xp_cmdshell
原文:http://www.cnblogs.com/justdba/p/5505768.html