Click here to Skip to main content
15,886,067 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Guys. i have a question.

what happend if i try to ALTER a Store Procedure while this is Running

it is possible?
thanks in advance




EDIT:
Thanks guys
I gave you 5
Regards from Mexico
Posted
Updated 6-Dec-11 6:03am
v2

Well basically nothing until the procedure is not in use anymore. After that the ALTER command is actually carried out and the procedure is changed.

Yes, you can issue the ALTER statement even if the procedure is in use at the moment.
 
Share this answer
 
Comments
Mehdi Gholam 6-Dec-11 11:52am    
5'ed
Wendelius 6-Dec-11 11:54am    
Thanks :)
Yes, new calls will go to the changed procedure and the current executing procedure will continue as the older version.
 
Share this answer
 
Comments
Wendelius 6-Dec-11 11:55am    
Exactly, my 5 :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900