DATETIME2 has more precision than DATETIME. It is recommended by Microsoft for new projects. There is a great write up here: DATETIME @ Database.guide.
Usage:Â
Can be used with or without a precision qualifier. No qualifier defaults to 7 digits in the millisecond/nanosecond segment.
DATETIME2
DATETIME2(7)