Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8459

Re: Error: Enter a valid date while Converting date of type Char in a database table to date of type DATS.

$
0
0

This character format of data doesn't even allow a correct sorting, so forget to use a IN RANGE option in your SELECT statement. I'm afraidthat you will be required tofilterthe data read by aSELECT without date criteria.


Some (bad) solutions :

  • Append a true DATS field to the table, so your upload will give a null/initial value and a small report may be required to update record with this value. Most current reports will just ignore the new field.
  • Create a calendar table with every couple of value DATS/DD.MM.YYYY and use in a JOIN

Another (good) solution

  • Rewrite the upload and dispatch program to use a correct datbase table format...


Regards,

Raymond




Viewing all articles
Browse latest Browse all 8459


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>