Hi All,
I am trying to insert Start Time and End Time which has Data Type as Time from Navision and when i open SQl Server 2005 Management Studio and try to view the records, it is stored as 1/01/1754 9:00:00 AM and 1/01/1754 12:00:00 AM respectively. If i try to change the year in SQL and open the form in Navision, the system throws a error message as below -
Microsoft Business Solutions-Navision
The Pay Time Sheet Journal Line table contains a Time field that uses invalid data for the date component of the DATETIME value:
Field: End Time
Value: 1854-01-01 00:00:00.000
OK
I see in SQL that there is no Time Datatype. SQL uses DateTime Datatype.
SQL Version
============
[Start Time] datetime Unchecked
[End Time] datetime Unchecked
Navision Version
=================================
Enabled Field No. Field Name Data Type
Yes 89 Start Time Time
Yes 90 End Time Time
==================================
Do we need to Hard code the date 1/01/1754 before the time, when inserting into SQL database through external interface and not from Navision.As if i use the Current date to insert along with the time, Navision form throws an error and does not open
Any advice would be highly appreciated.
Thanks
Regards,
Vijay
0
Comments
So it is NECESSARY to put "1/01/1754" + time in the SQL datetime field.
Another possibility is that in Navision you have a datetime-field instead of a date and a time field. In this case there shouldn't be a problem.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
From Help: