Just recently my SSMS changed and it's driving me crazy. Normally when you right click on a stored procedure and select "Modify", it outputs the stored procedure code as a bunch of SQL statements.
Starting yesterday, mine now outputs a giant sp_executesql
statement (see screenshot). What setting controls this?? Using v 18.12.1
This is happening because of the existence check before the code creation of your procedure setting is enabled.
To control this behavior follow the steps.
Tested on v18.4
Not sure what settings need to be changed. Alternatively, you can click script procedure as -> alter to -> new query window
check this image
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.