首页 > 数据库技术 > 详细

SQL server 导出平面文件时出错: The code page on Destination - 3_txt.Inputs[Flat File Destination Input].Columns[UserId] is 936 and is required to be 1252.

时间:2018-03-24 12:26:38      阅读:863      评论:0      收藏:0      [点我收藏+]

我在导出平面文件时:
Error 0xc00470d4: Data Flow Task 1: The code page on Destination - 3_txt.Inputs[Flat File Destination Input].Columns[UserId] is 936 and is required to be 1252.
(SQL Server Import and Export Wizard)
有时可以验证通过,有时不可以,这是啥原因?

我试过使用Unicode编码方式(有时可以),用1251(ANSI-Latin l)不行
技术分享图片

 

解决办法:

技术分享图片

在Code page 改为对应的936 编码就可以通过

 

SQL中查看编码的语句:

SELECT  COLLATIONPROPERTY(‘Chinese_PRC_Stroke_CI_AI_KS_WS‘, ‘CodePage‘) 

SQL server 导出平面文件时出错: The code page on Destination - 3_txt.Inputs[Flat File Destination Input].Columns[UserId] is 936 and is required to be 1252.

原文:https://www.cnblogs.com/feiquan/p/8638343.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!