c# - BulkCopy and Collation from two Databases -


i have two different databases, 1 has sql_latin1_general_cp1_ci_as collation , other modern_spanish_ci_as,

i obtain data de source

select [data1] collate database_default cal_key,        [data2] collate database_default telephone [tablename] 

after create new table in database destination, this

create table tempo_xxx  (cal_key varchar(20) collate database_default not null, telephone varchar(40) collate database_default not null) 

i use columnmapping,

sbc.columnmappings.add("cal_key", "cal_key"); sbc.columnmappings.add("telephone", " telephone "); 

but obtain same message:

the given columnmapping not match column in source or destination

the destination columnmapping case sensitive

change mapping sbc.columnmappings.add("cal_key", "cal_key");

also remove spaces " telephone "


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -