Msg 4864,Level 16,State 1,Line 19
我收到以下错误消息。Msg 4864,Level 16,State 1,Line 19
消息4864,级别16,状态1,行19批量负载数据转换错误 (类型不匹配或无效字符为指定的代码页)为 行1,列4(G)。消息4864,级别16,状态1,行19批量加载 行2,列4(G)的数据转换错误(类型不匹配或 指定代码页的字符无效)。
输入文件:NYM,' 2016,' Ruggiano', CF', 8', 20', 4', 7', 0', 0', 2', 6', 2', 9', 0', 1', 0.35', 0.409', 0.65', 1.059', 0', 0', 0', 0', 2016',
Team (PK, varchar 28, Not Null)
Player (Varchar (30) Not Null)
POS (Varchar (30) Not Null)
G (int, Not Null)
Bulk
Insert Player_Stats
From 'C:\Users\Robert\Documents\test_Input.txt'
With
(
Fieldterminator = ',',
Rowterminator = '0x0A'
)
你想插入不匹配列类型的数据类型。这真的很简单。
在这种情况下,我插入数字'4'。 INT类型不正确?最大的数字是3位数字。我应该使用哪种列类型? –
@RobertTritt看起来像你插入'4''。你没有看到文件中的其他字符? –
这是输入文件:文件中还有其他字符。假名, '\t 2016,' \t Ruggiano '\t CF',\t 8' ,\t 20' ,\t 4' ,\t 7' ,\t 0' ,\t 0' ,\t 2' , –
您的“输入文件”信息在此问题中是否正确显示?因为它似乎有很多单引号字符,使得它们看起来像分隔符,但它们似乎没有匹配。 –