由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - 求解,把一table 倒入SQL Server 出错
相关主题
SQL 2008 Group By Question用SSIS传table从oracle到mssql,遇到一个奇怪的问题
Memo Field一问random error for CAST( MONEY AS VARCHAR)
error file或者exception filepass parameter from stored procedure to SSIS
SQL Server 2008 Exp 怎么export DBF file?something about SQL
Import 50GB data from multiple .txt file into MS SQL databaseQuestions on SQL
有人抽取过AS/400(iSeries)的数据么?help need
SQL Server 如何把日期自动加入文件名中?Question about T-SQL
请问sql server里面怎么输出变量到文本文件?SQL help.
相关话题的讨论汇总
话题: bulk话题: sql话题: server话题: error
进入Database版参与讨论
1 (共1页)
G********7
发帖数: 234
1
field: fips_cnty
sample value: 13, 111,584,958
length: 3
create table的时候设这个field为[fips_cnty] char(3), 然后blulk insert 出错
Bulk load data conversion error (type mismatch..."
13正确的格式我想是“013"
g***l
发帖数: 18555
2
默认了是INT了
i****a
发帖数: 36252
3
Have you tried creating the table as varchar?

[发表自未名空间手机版 - m.mitbbs.com]

【在 G********7 的大作中提到】
: field: fips_cnty
: sample value: 13, 111,584,958
: length: 3
: create table的时候设这个field为[fips_cnty] char(3), 然后blulk insert 出错
: Bulk load data conversion error (type mismatch..."
: 13正确的格式我想是“013"

G********7
发帖数: 234
4
改成varchar后,原来的error message没了,可是有来了如下error:
Bulk load: DataFileType was incorrectly specified as char. DataFileType will
be assumed to be widechar because the data file has a Unicode signature.
Bulk load: DataFileType was incorrectly specified as char. DataFileType will
be assumed to be widechar because the data file has a Unicode signature.
Msg 4832, Level 16, State 1, Line 1
Bulk load: An unexpected end of file was encountered in the data file.
Msg 7399, Level 16, State 1, Line 1
The OLE DB provider "BULK" for linked server "(null)" reported an error. The
provider did not give any information about the error.
Msg 7330, Level 16, State 2, Line 1
Cannot fetch a row from OLE DB provider "BULK" for linked server "(null)".
我是刚开始学sql的小菜鸟...

【在 i****a 的大作中提到】
: Have you tried creating the table as varchar?
:
: [发表自未名空间手机版 - m.mitbbs.com]

i****a
发帖数: 36252
5
are you using bulk insert SQL command? try using a format file.
or use import/export wizard (or SSIS)

will
will
The

【在 G********7 的大作中提到】
: 改成varchar后,原来的error message没了,可是有来了如下error:
: Bulk load: DataFileType was incorrectly specified as char. DataFileType will
: be assumed to be widechar because the data file has a Unicode signature.
: Bulk load: DataFileType was incorrectly specified as char. DataFileType will
: be assumed to be widechar because the data file has a Unicode signature.
: Msg 4832, Level 16, State 1, Line 1
: Bulk load: An unexpected end of file was encountered in the data file.
: Msg 7399, Level 16, State 1, Line 1
: The OLE DB provider "BULK" for linked server "(null)" reported an error. The
: provider did not give any information about the error.

1 (共1页)
进入Database版参与讨论
相关主题
SQL help.Import 50GB data from multiple .txt file into MS SQL database
#在SQL里啥子意思有人抽取过AS/400(iSeries)的数据么?
anyone can help on this query, thanks!SQL Server 如何把日期自动加入文件名中?
誰來幫我開來開悄? Interesting SQL query请问sql server里面怎么输出变量到文本文件?
SQL 2008 Group By Question用SSIS传table从oracle到mssql,遇到一个奇怪的问题
Memo Field一问random error for CAST( MONEY AS VARCHAR)
error file或者exception filepass parameter from stored procedure to SSIS
SQL Server 2008 Exp 怎么export DBF file?something about SQL
相关话题的讨论汇总
话题: bulk话题: sql话题: server话题: error