Imcurrently working on a project to integrate a mobile solution to Navision. We have decided on a stagin table route directly into the underlying SQL database.
I an currently having an issue with the Nav Time field, which is seen as datetime on the sql server table. This issue i have is using sql insert commands to just insert a time leads the date to be 31-12-1859, which is not recognised from within the Nav system. As I beieve if data is entered into this table then the date is 1754.
Now if this is the case then I will need to hardcode (not an ideal solution) a date into the mobile end so that the data for the time can be accepted by navision and the import process which has been written.
Can anyone advise me as to what the date should be so that Nav recognises the time, or how to calculate the date or is this an individual setting for SQL server?
Thanks for the prompt response. The issue I was having is not with how to enter the datetime or even casting it. I think you may have answered the question.
I am more concerned with why the date is 1754-01-01, and where this comes from.