Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
The given value of type String from the data source cannot be converted to type nvarchar of the specified target column. while updating the data to the sql db.while creating the table i kept nvarhcar as max
kindly tell how to solve this error
Posted
Updated 1-Feb-19 23:12pm
v2

I think this error comes when your database column length is less as compared to your inputted length.

Check your all columns length.

For more info see this

http://forums.asp.net/p/1228890/2212376.aspx[^]
 
Share this answer
 
v2
I think you'll have to do an explicit column mapping if they are not in exact sequence in both source and destination.


i encounter the same issue and this help me
"
if they are not in exact sequence in both source and destination.
"
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900