title: Shows Invalid Object Name in Stored Procedure
body: <p>I am to very new to SQL Server and to the Stored Procedure. I tried to create a Stored Procedure for updating the table. I used the below statement in the stored procedure and executed it, worked fine </p>
  
  <pre><code>CREATE PROCEDURE [dbo].[usp_UpdateDB] 
  </code></pre>
  
  <p>When I changed it to below code </p>
  
  <pre><code>ALTER PROCEDURE [dbo].[usp_UpdateDB] 
  </code></pre>
  
  <p>It shows in the work area like this,</p>
  
  <p><img src="https://i.stack.imgur.com/rAsk8.png" alt="enter image description here"></p>
  
  <p>But when I execute the stored procedure, it shows
  <img src="https://i.stack.imgur.com/dG4HR.png" alt="enter image description here"></p>
  
  <p>I even checked, the created usp_UpadteDB Stored Procedure exists under the Stored Procedures folder and did refreshes too. What could this be? </p>