EXEC xp_cmdshell 
'BCP "SELECT * FROM test.dbo.xxx" queryout d:\aa.csv -c -t, -Usa -Psa'

 

相关文章: