I encountered the problem while learning dynamic sql and the sp_sqlexecute command.
sp_sqlexecute
declare @stmt nvarcha