如何导出Tsql选择到.Csv文件 [英] How Do I Export The Tsql Select To A .Csv File
本文介绍了如何导出Tsql选择到.Csv文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好
有没有办法在使用Tsql时将Sp结果集导出到.csv文件。
我是什么寻找一个是通过执行一个sp我想要从select语句中保存一个.csv文件。
EG。
选择*来自客户
进入d:\customer.csv
感谢有人能给我看一个例子
Hello
Is there a way I can export Sp result set to a .csv file in using Tsql.
What I am looking for a is by executing a sp I wanted the out of the select statement to save in a .csv file.
EG.
Select * from customer
Into d:\customer.csv
Appreciate if someone could show me an example
推荐答案
你在http://social.technet.microsoft.com/Forums/windows/en-US/86ba87ce-3d3f-43ae-b800-4804ab32af25/export-to-csv?forum= transactsql [ ^ ]。
这篇关于如何导出Tsql选择到.Csv文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文