I receiving over API a json with datetimes formatting like: December 4, 2018 11:10:00 AM (so it is like: mm-dd--year hh-mm-ss am/pm) I added a datetime row to the table in my MS SQL Server 2016 and import the data. I expected that the datetime displayed like 2018-12-04 11:10:00.000 but on Import process the SQL Server kills the time part entries. So only 2018-12-04 00:00:00.000 is stored. I checked Google and stackoverflow but found the reason for that.
Any tips?
Edit
I stored the json Infos in a variable and Import the data via @json/OPENJSON
and merge it via tsql "merge"
into the table.