将SQL Server数据导出到CSV [英] Exporting SQL Server data to CSV

查看:153
本文介绍了将SQL Server数据导出到CSV的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将SQL Server数据导出到CSV并以 ALL 用双引号引起来的列字段的最快方法是什么?

What’s the quickest way to export SQL Server data to CSV with ALL column fields enclosed in double quotes, including numeric fields?

在Management Studio的结果"窗口中,我可以右键单击并选择将结果保存到CSV",但它不会将字段括在双引号中.

In the Results window of Management Studio, I can right click and choose "Save Results to CSV" but it doesn’t enclose fields in double quotes.

我研究了类似问题,但是提出的解决方案不能满足我的要求.

I have looked into similar questions but the solutions proposed does not do what I want.

推荐答案

使用 bcp实用程序.

示例这里.

这篇关于将SQL Server数据导出到CSV的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆