Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sql-server/27.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql server I';m使用sql server 2008使用大容量插入语句_Sql Server_Sql Server 2008 - Fatal编程技术网

Sql server I';m使用sql server 2008使用大容量插入语句

Sql server I';m使用sql server 2008使用大容量插入语句,sql-server,sql-server-2008,Sql Server,Sql Server 2008,我收到这样的错误信息 Msg 4866,16级,状态7,第2行批量加载失败。专栏 对于第1行第15列,数据文件中的太长。验证 正确指定了字段终止符和行终止符。味精7399, 级别16,状态1,第2行链接服务器的OLE DB提供程序“批量” “(null)”报告了一个错误。供应商没有提供任何信息 关于错误。消息7330,级别16,状态2,第2行无法获取 链接服务器(null)的OLE DB提供程序“大容量”中的行 这是我试图用于上传的文件的示例 BULK INSERT kbm_8311.dbo.c

我收到这样的错误信息

Msg 4866,16级,状态7,第2行批量加载失败。专栏 对于第1行第15列,数据文件中的太长。验证 正确指定了字段终止符和行终止符。味精7399, 级别16,状态1,第2行链接服务器的OLE DB提供程序“批量” “(null)”报告了一个错误。供应商没有提供任何信息 关于错误。消息7330,级别16,状态2,第2行无法获取 链接服务器(null)的OLE DB提供程序“大容量”中的行

这是我试图用于上传的文件的示例

BULK INSERT kbm_8311.dbo.cqm_mstr FROM 'D:\sanu\cqm_mstr.txt' WITH (DATAFILETYPE='native')  

桌子的结构被改变了
显式插入行\u时间戳是造成问题的原因。

您知道第15列加载到哪个表字段吗?也许你可以把它放大一些(例如,
VARCHAR(MAX)
),看看这是否有帮助。问题是,我已经从表中创建了BCP文件。如果你把它加载到一个不同的表中,使用更宽容的数据类型,你将能够看到数据,并且可能会清楚问题出在哪里;我该怎么办?直到昨天我才安全地运行它;现在我犯了一个错误
é   MUII CMS2 (NQF0418) Percentage of patients aged 12 years and older screened for clinical depression on the date of the encounter using an age appropriate standardized depression screening tool AND if positive, a follow-up plan is documented on the date of the positive screen.T Preventive Care and Screening:  Screening for Clinical Depression and Follow-Up Plan+ Screening for Depression and Follow-Up Plan Depression Screenõ Document a depression assessment using the Screening tools template. Open health promotion plan, and document the plan of care or referral information. Enter medications via the medication module.  For adolescents, need to screen with the PHQ-9.