Click here to Skip to main content
15,888,984 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
while inserting a value HMP001 in to DB am facing challenge like conversion error.

Can you please help to come out from this error

What I have tried:

while inserting a value HMP001 in to DB am facing challenge like conversion error.

Can you please help to come out from this error 
Posted
Updated 16-May-20 11:09am

1 solution

"HMP001" is a string, and it is not a valid integer representation.
You are trying to insert a string value into an integer column. Either you are not writing to the proper column, or you defined this column as integer when you should have defined it as nvarchar instead.
See your actual code would help being more specific.
 
Share this answer
 
v2

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