SSIS 将数据导出到平面文件将双引号呈现为十六进制字符 [英] SSIS exporting data to flat file renders double quotes as hexadecimal characters

查看:30
本文介绍了SSIS 将数据导出到平面文件将双引号呈现为十六进制字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个简单的 SSIS 作业,可将数据从数据库导出到平面文件.我使用双引号作为文本分隔符.当我在我的开发机器上运行作业时,一切正常.但是,当我将作业移动到运行 Windows 2008 和 SQL Server 2008 R2 的临时服务器时,CSV 文件中的双引号将导出为 X0022(十六进制).

I have a simple SSIS job that exports data from the database to a flat file. I am using double quotes as text delimiters. When I run the job on my development machine everything exports fine. However, when I move the job to my staging server running Windows 2008 with SQL Server 2008 R2 the double quotes in the CSV file get exported as X0022 (hexadecimal).

有人知道为什么会这样以及如何解决吗?

Does anyone know why that is and how to fix it?

推荐答案

这看起来像是我们不久前遇到的问题.Jamie Thomson 在博客文章中对此进行了记录 - SQL Server 2008 SP1 CU 6 包括对 .dtsx 文件.

This looks like something we ran into a while back. Jamie Thomson documented it in a blog post - SQL Server 2008 SP1 CU 6 includes small changes to .dtsx files.

在两种环境中检查 SQL Server 的版本:

Check the version of SQL Server in both environments:

SELECT @@VERSION

这篇关于SSIS 将数据导出到平面文件将双引号呈现为十六进制字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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