sql-server – SQL Server导入和导出向导错误

我正在尝试从访问数据库导入82k行表到SQL Server 2008.

使用SQL Server导入和导出向导,我输入大约78,000条记录时出错.

这是错误:

Error 0xc0208265: Data Flow Task 1:
Failed to retrieve long data for column "members_notes".

Error 0xc020901c: Data Flow Task 1: 
There was an error with output column "members_notes" (41) on output "OLE DB Source Output" (11).
The column status returned was: "DBSTATUS_UNAVAILABLE".

Error 0xc0209029: Data Flow Task 1: 
SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.
The "output column "members_notes" (41)" failed because error code 0xC0209071 occurred, and the error row disposition on "output column "members_notes" (41)" specifies failure on error.

Error 0xc0047038: Data Flow Task 1:
SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.
The PrimeOutput method on component "Source - Query" (1) returned error code 0xC0209029. 
The component returned a failure code when the pipeline engine called PrimeOutput().
The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.
There may be error messages posted before this with more information about the failure.

访问数据库中的members_notes列是备注字段.在传输此数据的SQL Server表中,我将该字段定义为nvarchar(MAX).

我搜索了这个错误消息,发现文章建议缩小我的SQL数据库并清除我的临时文件在执行导出/导入的计算机上,没有一个工作.

还有其他人遇到过这个问题吗?

最佳答案
我开始搜索Access数据库中的备注字段.最后一行包含备注字段中的“#Error”.当我点击该字段时,我收到以下消息:

“The Microsoft Jet database engine
stopped the process because you and
another user are attempting to change
the same data at the same time”

我在Access数据库上运行Compact和Repair.这在特定记录的备注字段中放置了一堆#字符.

然后我再次尝试SQL Server导入和导出向导.它完美的时间!

转载注明原文:sql-server – SQL Server导入和导出向导错误 - 代码日志