Click here to Skip to main content
15,879,474 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi all,

I am inserting data through Stored Procedure into database by sending xml. I got this exception. is there any solution for this.

Thank you All.
Posted
Comments
[no name] 13-Sep-13 5:14am    
Share your code..else it's not possible to tell the solution..
lukeer 13-Sep-13 5:23am    
What does the relevant portion of the string look like?
What date/time is it representing?
[no name] 13-Sep-13 7:30am    
Does not matter what your code is. The error message is perfectly clear. The solution is to supply a datetime in the format that you are expecting.

1 solution

The solution is to make sure your data is correct. The error is saying that you are trying to put something into a date field that is not a date. For example, perhaps you are trying to put a blank into a date field. You can't do that. You'll need to insert NULL instead.
 
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