I am upgrading a VB6 database application from Access to SQL Server. I am using MSDE2000 as my test engine.
I converted the Access database to mdf and log files and have been successfully completing queries until I included update or insert queries which included dates. I get a runtime error "The conversion of a char data type to a date time data type resulted in an out of range date time value"
I have completed several checks and found the following:
My application displays dates in the format dd//mm/yyyy.
All my dates in MSDE2000 are in the format dd/mm/yyyy.
If I do an insert it fails unless the 'dd' (in the application format)is less than 12. For example 1/06/2006. When I check server side (within MSDE) the date was displayed as mm/dd/yyyy or 6/01/20006.
I suspect all the dates within MSDE should be in the format mm/dd/yyyy.
Has anyone seen this type of problem before and if so how can I correct the date format. MSDE will not allow me to update the fields from my VB application.
I converted the Access database to mdf and log files and have been successfully completing queries until I included update or insert queries which included dates. I get a runtime error "The conversion of a char data type to a date time data type resulted in an out of range date time value"
I have completed several checks and found the following:
My application displays dates in the format dd//mm/yyyy.
All my dates in MSDE2000 are in the format dd/mm/yyyy.
If I do an insert it fails unless the 'dd' (in the application format)is less than 12. For example 1/06/2006. When I check server side (within MSDE) the date was displayed as mm/dd/yyyy or 6/01/20006.
I suspect all the dates within MSDE should be in the format mm/dd/yyyy.
Has anyone seen this type of problem before and if so how can I correct the date format. MSDE will not allow me to update the fields from my VB application.