Hi,
I am trying to look for a record in NAV through SQL .. primary key consists of 4 fields, one of which is a date. What value should I pass through SQL to be able to search for a record with the date field empty? I have tried empty string, 0D, January 1, 1753, 00:00:00.000 (the earliest permitted DateTime).
Thanks, in advance!
Y_1716
0
Answers
WHERE [Date] = '1753-01-01T00:00:00.000'
With a T between date and time. It means that the format is independent of regional settings.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/