执行存储过程出现:"不是有效的标识符。"

 exec @str  --这样会出现异常 :"不是有效的标识符。" 

 应改为 exec(@str)  就可以了.
原文地址:https://www.cnblogs.com/wangpei/p/1347617.html