I have only verified this in SSMS 19. If you have the Execution History tab open and you also create at least one new query tab but haven't saved that tab as a .sql file when you go to copy text from the Execution History tab using ctrl+c after highlighting a history row and selecting the SQL text you get an error. If you right click the selected SQL text and click copy you don't get the error. If you save the query tab to a file then the error does not present. The error is below.
Error Text:
Unsaved documents cannot be cut or copied to the clipboard from the Miscellaneous Files project. You must save the unsaved documents(s) before cutting or copying them.
I have only verified this in SSMS 19. If you have the Execution History tab open and you also create at least one new query tab but haven't saved that tab as a .sql file when you go to copy text from the Execution History tab using ctrl+c after highlighting a history row and selecting the SQL text you get an error. If you right click the selected SQL text and click copy you don't get the error. If you save the query tab to a file then the error does not present. The error is below.
Error Text: Unsaved documents cannot be cut or copied to the clipboard from the Miscellaneous Files project. You must save the unsaved documents(s) before cutting or copying them.