SQL Server Management Studio - 网格结果另存为 .CSV - 如何输出文本而不是 UTF-16 (Unicode)

发布于 2024-07-16 09:04:04 字数 268 浏览 5 评论 0原文

在 SQL Server Management Studio 中,是否可以更改网格“另存为”以写出文本编码而不是 UTF-16?

当我右键单击 SQL Server Management Studio 中的结果网格时,它允许另存为 .CSV。 目前,它保存编码为 UTF-16 (Unicode) 的 .CSV 文件,但 Excel 不会自动打开此格式(Excel 提示输入分隔符)。 为了绕过这个提示,我在 SlickEdit 中打开了该文件并保存为“文本”。 当然,这是一个额外的步骤。

In SQL Server Management Studio, can the Grid "Save As" be changed to write out an encoding that is Text instead of UTF-16?

When I right click a Result Grid in In SQL Server Management Studio, it allows for a Save As .CSV. Currently it saves the .CSV file encoded as UTF-16 (Unicode) but Excel does not open this format automatically (Excel prompts for a delimiter). To get around the prompt, I opened the file in SlickEdit and did a Save As "Text". Of course this is an extra step.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

泼猴你往哪里跑 2024-07-23 09:04:04

如果您使用的是 Sql Server Management Studio for SQL 2005/2008,则此答案适用。

在“保存结果”表单上,“保存”按钮的右侧有一个小的下拉按钮。

单击此按钮并选择“使用编码保存”。 选择 ANSI 以获得单字节字符集。

This answer applies if you're using Sql Server Management Studio for SQL 2005/2008.

On the "Save Results" form, the "Save" button has a small drop-down button at its right-hand end.

Click this and select "Save with Encoding". Select ANSI to get a single-byte character set.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文