Sql-server – Get SSMS to show the time a query completed at

sql serverssms

I'm using Sql Server Management Studio 2012, and I'm wondering if there is a way to have a query show me at what time it was run and/or completed at. Basically just some kind of timestamp so that I know if I actually ran the query recently or not.

Thanks

Best Answer

Hitting F4 also enables properties view, which shows the start time, finish time, and run time.

SSMS 2012 Properties View

Also, if you Include Client Statistics (under Query menu), you can get a history of when you ran the query, along with various statistics such as run time and number of rows.

SSMS 2012 Client Statistics Pane

Update, 2019-10-14: SSMS 18 now includes the completion time in the Messages pane of the results tab.

Messages pane showing 1 row affected and Completion time