Invalid object name SQL Server 2008 R2 - Stored procedure

前端 未结 6 1507
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-24 11:51

I am attempting to alter an existing stored procedure with the command

ALTER \'name_of_stored\"procedure\'

however the name is highlighted in red noting it i

6条回答
  •  执笔经年
    2020-12-24 12:37

    I had the same issue, the problem was that I had a select statement from stored proc who's name was similar to table's name, so instead of

      select * from Table_Test
    

    I was writing this in the stored procedure

      select * from Proc_Test --selecting from Stored proc, yikes!!
    

    maybe this helps

提交回复
热议问题