SQLSERVER存储过程运行报错 15517
报错内容:Cannot execute as the database principal because the principal “dbo” does not exist, this type of principal cannot be impersonated, or you do not have permission. (15517);
原因为:存储过程中调用了包含WITH EXECUTE AS的函数,将函数中的WITH EXECUTE AS删除掉就好了。