---创建文件夹 declare @shellCommand nvarchar(1024) Set @shellCommand='"mkdir C:\sqlcreatefold"' exec xp_cmdshell @shellCommand