Is it possible to use MSSQL server datetime2 format in EasyChart DB pens?
Now it seems to try use datetime even error message says that format should be date?
We would like to get millisecond resolution to trend from our data and easiest way is to use datetime2.
I have found this as well. Ignition doesn’t seem to recognise the T-SQL datetime2 format as a datetime. I’m pulling data from a query into a table with datetime2 fields, and trying to format the display of them using the object customiser, but they won’t change format. If I change the field format to datetime, then it works… I would much rather use the newer datetime2 format. Is this a known issue?
First question: Are you using the latest release of Microsoft’s JDBC driver? The version Ignition ships with is older for compatibility reasons, so I would try updating.
Oof, when you say old, you aren’t kidding. I just checked the version and even the latest release has 2.0.1803.100 from 2009. I’ll copy the newer one in there and cross my fingers that it works.
The newest drivers will need a fairly modern java 8. A fairly modern java 8 may not run such an ancient version of Ignition. Make a complete image backup of that gateway (OS level backup) so you can revert when (likely) this blows up in your face.
If you succeed, please report back. So we can marvel at your accomplishment.. /: