SQL SERVER Error code: 0x80004005
2013-07-26 09:33
381 查看
insert bulk [schemaName].[TableName] ( [ItemId] int, [MasterId] int, [ItemCategoryId] int, [ItemCategoryValue] varchar(1000) collate Chinese_PRC_CI_AS, [ItemDateTime] datetime, [ItemEndDateTime] datetime, [TravelFrom] varchar(1000) collate Chinese_PRC_CI_AS, [TravelTo] varchar(1000) collate Chinese_PRC_CI_AS, [Comments] varchar(2000) collate Chinese_PRC_CI_AS, [Deleted] bit, [CreatedUserId] varchar(11) collate Chinese_PRC_CI_AS, [CreatedAt] datetime, [LastModifiedUserId] varchar(11) collate Chinese_PRC_CI_AS, [LastModifiedAt] datetime, [PunchedAt] datetime, [ItemStateId] int )with ( TABLOCK,CHECK_CONSTRAINTS )
马来项目,使用SSIS做数据的迁移。
准备先导到本地,所以在本地建了一个新库。测试时报Error code: 0x80004005的错误。
错误的描述为:
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80004005 Description: "OLE DB provider 'STREAM' for linked server '(null)' returned invalid data for column '[!BulkInsert].Comments'.".
使用Profiler跟踪,导数据使用的sql为:
看到Chinese_PRC_CI_AS时,恍然大悟。
检查数据库的设置,选用的collation为SQL_Latin1_General_CP1_CI_AS。
修改本地数据库设置之后运行,没有问题。
相关文章推荐
- MS SQL错误:SQL Server failed with error code 0xc0000000 to spawn a thread to process a new login or connection. Check the SQL Server error log and the Windows event logs for information about possible related problems
- (WSFC) resource control API returned error code 5057 & Microsoft SQL Server, Error: 41009
- Sql Server Error: No error message available, result code: DB_E_ERRORSOCCURRED(0x80040E21).
- sqlserver errorcode
- SQL Server cluster failover fails with Error Code: 0x80071398
- Error while preforming database login with the "sqlserver" driver Unable to create...
- How to run the .net code within the Sql server
- sql server Error 5120错误 解决方法
- 关于连接数据库失败、SQLServer xxxx 已成功与服务器建立连接,但是在登录前的握手期间发生错误。 (provider: SSL Provider, error: 0 - 等待的操作过时。)
- A network-related or instance-specific error occurred while establishing a connection to SQL Server
- DB2 SQL Error: SQLCODE=-204, SQLSTATE=42704,
- Mysql远程连接报错:SQL Error (1130): Host '192.168.61.128' is not allowed to connect to this MySQL server
- 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server
- Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500 解决办法
- DB2 SQL Error: SQLCODE=-668, SQLSTATE=57016错误解决方法
- the module '*' was loaded but the call to DllRegisterServer failed with error 0x80004005
- Lock request time out period exceeded. (Microsoft SQL Server, Error: 1222)
- Restore SQL Server 2005 error : "The tail of the log for the database "TEST1" has not been backed up."
- 解决SQL Server error:40(错误:53)
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server versio