如何从 SQL Server 中的存储过程生成 csv 输出文件 [英] How to produce an csv output file from stored procedure in SQL Server
本文介绍了如何从 SQL Server 中的存储过程生成 csv 输出文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以从 SQL Server 中的存储过程生成 csv 文件?我创建了我的存储过程,我想将一些结果存储为 csv,有人知道如何实现吗?
Is it possible to generate a csv file from a stored procedure in SQL Server? I created my stored procedure and I want to stored some result as csv, does someone know how to achieve this?
推荐答案
我认为可以使用 bcp 命令.我也是这个命令的新手,但我遵循了 此链接 对我有用.
I think it is possible to use bcp command. I am also new to this command but I followed this link and it worked for me.
这篇关于如何从 SQL Server 中的存储过程生成 csv 输出文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文