| Author |
Message |
PDinCA
Joined: 25 Jul 2005 Posts: 464 Location: Costa Mesa, CA, USA
|
Posted: Wed May 16, 2012 8:30 pm Post subject: DEFECT: 5.3.2 - Script as ALTER shows as modified |
|
|
When we right-click in Object Explorer and either "Modify" or "Script as ALTER", SSMS gives us the script and there's no "*" to show a modified script exists in the window.
However, hovering over, say, a UDF or SP, then right-click and take the SQL Prompt "Script as ALTER" option, it produces the same script but it leaves a "*" as if I had made a modification, which I haven't.
This is confusing and inconsistent with SSMS behavior.
Please fix (should be a simple thing ) |
|
| Back to top |
|
 |
Paul Stephenson
Joined: 23 Jul 2010 Posts: 108 Location: Cambridge, UK
|
Posted: Thu May 17, 2012 3:16 pm Post subject: |
|
|
Hi PDinCA,
I agree that it's pretty annoying to be asked to save these ALTER scripts on shutting down SSMS, when you have no need to do so (especially if you've been hitting F12 many times during the session). This is an issue we've logged before as SP-3443.
Unfortunately it doesn't seem to be a trivial fix as you might think. Anything SQL Prompt does with query tabs and suchlike involves using SSMS's undocumented API, so it may be tricky to work out how to unset the "modified" flag, if indeed it can be done at all. _________________ Paul Stephenson
Project Manager, Red Gate |
|
| Back to top |
|
 |
PDinCA
Joined: 25 Jul 2005 Posts: 464 Location: Costa Mesa, CA, USA
|
Posted: Thu May 17, 2012 5:34 pm Post subject: |
|
|
Thanks, Paul. Sad that Microsoft encourages VS integration then has only an undocumented API to support script generation. Bit short-sighted methinks.
Hope you can work it out... |
|
| Back to top |
|
 |
|
|
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