BulkCopyfromsourcetabletodestinationtablewithacolumnwhosetyp
Jun 07, 2016 pm 03:54 PM/*Author: Jiangong SUN*/ Ive encountered a problem when I do a sql bulk copy from a table in staging to the same table in production. Except for a same column has different types. So when i synchronize the data, I have the following error:
/*Author: Jiangong SUN*/
I've encountered a problem when I do a sql bulk copy from a table in staging to the same table in production. Except for a same column has different types.
So when i synchronize the data, I have the following error:
The locale id '0' of the source column 'EntityId' and the locale id '1033' of thedestination column 'EntityId' do not match.
Whereas it's not the source of the error.
After strugling several hours, a solution is to use a CONVERT when I synchronize the data.
SELECT Id, CONVERT(varchar(60), EntityId) as EntityId FROM @TABLENAME WITH (NOLOCK) WHERE ID = @ID
Hope this helps!
Enjoy coding!

热门文章

热门文章

热门文章标签

记事本++7.3.1
好用且免费的代码编辑器

SublimeText3汉化版
中文版,非常好用

禅工作室 13.0.1
功能强大的PHP集成开发环境

Dreamweaver CS6
视觉化网页开发工具

SublimeText3 Mac版
神级代码编辑软件(SublimeText3)

在 Linux 中运行 MySQl(有/没有带有 phpmyadmin 的 podman 容器)

哪些流行的MySQL GUI工具(例如MySQL Workbench,PhpMyAdmin)是什么?
