登录SSMS
EXEC sp_configure 'show advanced options', 1
GO
RECONFIGURE
GOEXEC sp_configure 'xp_cmdshell', 1
RECONFIGURE
GO
ExEc xp_cmdshell 'mkdir C:\DataDB\'
登录SSMS
EXEC sp_configure 'show advanced options', 1
GO
RECONFIGURE
GOEXEC sp_configure 'xp_cmdshell', 1
RECONFIGURE
GO
ExEc xp_cmdshell 'mkdir C:\DataDB\'