Cannot find the object “XXX” because it does not exist or you do not have permission

前端 未结 13 1078
[愿得一人]
[愿得一人] 2021-01-11 11:23

I\'m getting the following error when calling a stored procedure:

Cannot find the object \"XXX\" because it does not exist or you do not have permission.

I\'

13条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-11 12:12

    Ok, here's what happened. There was a special character before the end of the SP so it was incomplete yet still valid, somehow.

    So I could see the SP and see the permissions on it but I could not run it. So to solve the issue I had to copy the text out of SQL Management Studio and paste it into Notepad, then remove the special character, then copy and paste it back into SQL Management Studio and run the alter script.

    Very strange how the character got there!

提交回复
热议问题