Red Gate forums :: View topic - Bug/Request - headers don't show when doing ALTER PROCEDURE
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Prompt 5
SQL Prompt 5 forum

Bug/Request - headers don't show when doing ALTER PROCEDURE

Search in SQL Prompt 5 forum
Post new topic   Reply to topic
Jump to:  
Author Message
mbourgon



Joined: 14 Sep 2006
Posts: 14

PostPosted: Mon Aug 26, 2013 8:22 pm    Post subject: Bug/Request - headers don't show when doing ALTER PROCEDURE Reply with quote

I have a piece of code with a ton of headers, including the initial "if exists drop" and a sample call.

If I type "exec myprocnamehere", the box pops up with the actual script text. I can then click in the box, hit "copy", and paste in a window.

If I type ALTER PROCEDURE myprocnamehere, then hit TAB, the SP scripts otu - but only starting at the actual ALTER PROCEDURE line, it doesn't include the header! So if I execute it, I'd lose my script headers.

Is there a way to change the behavior? Is there an easier way to script out the object (either way is tons easier than SSMS, but I'd moved to AP (tab) code (tab) and use the snippets to quickly script out the code.

Thanks!
Back to top
View user's profile Send private message
Aaron Law



Joined: 28 Jun 2013
Posts: 139
Location: Red Gate Software

PostPosted: Wed Aug 28, 2013 9:28 am    Post subject: Reply with quote

Hi,
Would it be possible for you to post a very basic example of a stored proc and what you’d expect to happen?

Thanks,
Aaron.
Back to top
View user's profile Send private message
JasonFS



Joined: 29 Oct 2013
Posts: 1

PostPosted: Tue Oct 29, 2013 5:39 pm    Post subject: Reply with quote

I am having the same problem. I am currently using v5.3.8.2 (restruction by IT Security for now.)

When typeing EXEC usp_SOMETHING the popup allows me to select the stored proc code which includes the parts above the ALTER statement which in my case contains important stored procedure header detail and modification tracking information.

When using the ALTER PROCEDURE usp_SOMETHING (or AP[TAB] snippet) and pressing tab after the procedure name the content that appears does not include the parts above the ALTER statement.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group