The following error “Unclosed quotation mark after the character string…” occurs when you miss a quotation mark.
When the single quote is used once, and to close the statement SQL Server is expecting another single quote. For some reason, a user can forget to do it. For example:
BACKUP DATABASE Adventureworks TO DISK = 'diff.bak