由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - Truncation error import csv file to SQL table (转载)
相关主题
double转换int的问题[bssd]whereismyGCU 是网络安全的?
How to get local hostname under linux?SQL add some columns into a table from another table (转载
一道bit operator面试题SQL fast search in a 10 million records table (转载)
stl的map可以嵌套几层?技术问题探讨:数据处理
how to sscanf this case.error of importing data from txt file to IBM netezza SQL da (转载)
perl sprintf question converting dec to hex我的DBA在生成ORACLE table的时候需要一个一个column看 (转载)
有没有java大牛改过class文件?How to concatenate two .tar.gz files
cassandra query speed求助Path with non-ascii character
相关话题的讨论汇总
话题: sql话题: import话题: error话题: table话题: truncation
进入Programming版参与讨论
1 (共1页)
l******9
发帖数: 579
1
【 以下文字转载自 Database 讨论区 】
发信人: light009 (light009), 信区: Database
标 题: Truncation error import csv file to SQL table
发信站: BBS 未名空间站 (Wed Apr 29 15:28:46 2015, 美东)
I would like to import a .csv file into a SQL Server 2008R2 database table
on Win 7.
It has one column and one row.
File1:
name
runeocnu 430274 sjunosnv djduenvop 934m ljfonm3
I got error:
Error 0xc02020a1: Data Flow Task 1: Data conversion failed. The data
conversion for column "NAME" returned status value 4 and status text "Text
was truncated or one or more characters had no match in the target code page
.".
(SQL Server Import and Export Wizard)
I have created the destination table
CREATE TABLE my_tbl
(
[NAME] [varchar](1024) NULL
) ON [PRIMARY]
The data column width is large enough to hold the string. Why still got the
truncation error ?
But, if I used SQL query "insert into" in SQL Server Management Studio, it
worked well.
Also, in the import wizard, in colum mappings window, the source column is
NAME string [DT_STR] (50)
It should be 1024 ?
Any help would be appreciated.
1 (共1页)
进入Programming版参与讨论
相关主题
Path with non-ascii characterhow to sscanf this case.
大牛 in Perl and SED?perl sprintf question converting dec to hex
python gc question有没有java大牛改过class文件?
[合集] 如何能让这个程序快一点呢?太慢了cassandra query speed求助
double转换int的问题[bssd]whereismyGCU 是网络安全的?
How to get local hostname under linux?SQL add some columns into a table from another table (转载
一道bit operator面试题SQL fast search in a 10 million records table (转载)
stl的map可以嵌套几层?技术问题探讨:数据处理
相关话题的讨论汇总
话题: sql话题: import话题: error话题: table话题: truncation