Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Updating a stored procedure
Message
From
25/05/2005 14:50:52
 
 
To
25/05/2005 12:57:58
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Miscellaneous
Thread ID:
01017486
Message ID:
01017621
Views:
22
>>I need to modify a stored procedure in a production environment. I first drop the existing procedure and add the modified one back in with the same name. I then make a call to sp_recompile with the new procedure name.
>>
>>If I look in Enterprise Manager, the new code is in place, but when I execute it from my app, the original code runs unless I add "with recompile" to my call.
>>
>>I assume I'm missing something simple to get the server to use the new stored procedure. I really can't ask our users to stop and restart the SQL server every time we need to modify a stored procedure. Anyone know what I'm doing wrong?
>>
>>Thanks,
>>
>>Rick
>
>it is best if you uses ALTER PROCEDURE.

Thank you Fabio. That is a better approach as it won't destroy the permissions granted for the procedure. I appreciate the help.
Previous
Reply
Map
View

Click here to load this message in the networking platform