4 results found
So you could highlight a column and surround it with isnull() for example.
Or surround a sql query and surround it with begin and end.11 votes
This is included in SQL Prompt 7 which you can download from http://www.red-gate.com/products/sql-development/sql-prompt/
Currently any comments that appear before the ALTER PROC statement are not scripted by SQL Prompt which results in those comments being silently deleted if the alter statement is executed.
If I hover the mouse over a stored procedure name and click on the procedure name that pops up in order to see the script window I can see these comments but if I type alter proc <procname> and press tab to produce an alter script these comments are missing.
There is a danger here of losing comments without the user being aware of it. I think SQL Prompt should…8 votes
This is included in SQL Prompt 6.4, which you can download from http://www.red-gate.com/products/sql-development/sql-prompt/
We’ve released support for this in SQL Prompt.
You can get the latest version of SQL Prompt from https://www.red-gate.com/products/sql-development/sql-prompt/.
Here’s the updated documentation for the Script as ALTER feature: https://documentation.red-gate.com/sp9/navigating-your-code/scripting-an-object-as-alter
If there is something missing please let us know by opening a new suggestion.
The Prompt Team
Please see forum thread http://www.red-gate.com/MessageBoard/viewtopic.php?t=14749
I ran into what I would consider a serious issue with the Script Object as ALTER feature. A few hours earlier I had changed a stored procedure script and executed the Alter script so the change was now "active".
A few hours later, within the same SSMS application (but different query window) I used the right-click Script Object option as a shortcut so I didn't have to scroll through a very long list in Object Explorer... Unfortunately it scripted the OLD version of the procedure and not the one changed hours earlier.
Now, I know…2 votes
As of SQL Prompt 5.2.8, Script as ALTER will always fetch the script directly from the database.
- Don't see your idea?