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
Post a Comment