I'm importing the following data into a sql server database:
For the dates I'm using this type:
(I've also tried DBTIMESTAMP). The same information can be seen in the data conversion properties:
When the data is actually imported, in the database it cuts the time component off:
How do I retain the time component?
What type should I be storing in the database? datetimeoffset or datetime?
When using it:
DECLARE @MyDatetimeoffset datetimeoffset(7)
What is the purpose of explicitly defining the length (7) ?