SyntaxFix
Write A Post
Hire A Developer
Questions
First, you should probably use SYSDATETIME() if you're looking for more precision.
SYSDATETIME()
To format your data with milliseconds, try CONVERT(varchar, SYSDATETIME(), 121).
CONVERT(varchar, SYSDATETIME(), 121)
For other formats, check out the MSDN page on CAST and CONVERT.
CAST
CONVERT