EXEC master..xp_cmdshell 'bcp " SELECT * FROM vpod_test.dbo.DT_Media_List " queryout "D:\DT.txt " -c -t ; -S"XIAOQJ-PC\SQLEXPRESS" -U"sa" -P"sa" '
相关配置命令
EXEC sp_configure 'show advanced options', 1;RECONFIGURE;EXEC sp_configure 'xp_cmdshell', 1
RECONFIGURE