I have stored procedure that inserts data into table. One column in the table is datetime and is used for storing the time stamp of row insert:
INSERT INTO myTable (Field1, Field2, Field3) VALUES (1, 2, GETUTCDATE());
Field3
is datetime column. When I select data from that table with simple SELECT * FROM myTable
query, all datetime values are shown with .000
value for milliseconds.
If I execute SELECT GETUTCDATE()
, the milliseconds are displayed: 2013-10-16 18:02:55.793
Why milliseconds are not stored/displayed in the date time column on SELECT?