Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SQLServer The definition of object 'name' has changed since it was compiled

I'm getting an error after updating a procedure and executing it.

The definition of object 'PROCEDURE NAME' has changed since it was compiled.

Is there a fix for this error ?

like image 373
TheLegendaryCopyCoder Avatar asked Jan 10 '23 16:01

TheLegendaryCopyCoder


1 Answers

Are you changing the procedure in one window and executing it in another?

Yes, this is the case. I'm updating it in SSMS and executing a separate application which calls the procedure

You need to end the session in which you are editing the procedure. The changes are only visible in the editing session until they are committed.

like image 151
Dave Avatar answered May 26 '23 10:05

Dave