| Author |
Message |
fatherjack
Joined: 13 Mar 2007 Posts: 224 Location: Cornwall
|
Posted: Tue Jan 27, 2009 2:40 pm Post subject: feature suggestion |
|
|
Hi,
I don't know how many other developers work but the way I produce scripts involves adding Raiserror lines in my TSQL that report progress to me while I am developing/debugging. Once I am happy with the script these lines get commented out so that they are still there for future development/debugging etc.
It would be awesome if there was a command that we could use to comment/uncomment lines through the whole script that end with a given suffix.
eg
I might have a line like this whilst developing:
RAISERROR ('Just updated xyz table',0,0,1) WITH NOWAIT;
once this script is working i would alter the above line to be:
--DEBUG LINE: RAISERROR ('Just updated xyz table',0,0,1) WITH NOWAIT;
I cant use find/replace to switch between the two.
If i could write this:
RAISERROR ('Just updated xyz table',0,0,1) WITH NOWAIT; --/*#*/
and SQL Prompt would add and remove the "--DEBUG LINE: " for lines where it finds --/*#*/ then it would allow me to turn them all on and off at will.
This may or may not be useful to other developers - I may just be a freak!
cheers
Jonathan _________________ -----------------------------------------
Senior DBA
Careers South West Ltd |
|
| Back to top |
|
 |
Ben Pinchen
Joined: 28 Dec 2006 Posts: 157 Location: Red Gate
|
Posted: Fri Jan 30, 2009 10:30 am Post subject: |
|
|
Thanks for your feedback. I've raised this as a feature request in our issue tracking software. The product manager and developers will decide how important this feature is and whether it will be implemented in the future. This will depend on a number of considerations including how many users it would benefit.
For your reference the feature tracking code is: SP-1592 |
|
| Back to top |
|
 |
|
|
All times are GMT
|
| 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