Red Gate forums :: View topic - DEFECT: 5.3.2 - Script as ALTER shows as modified
Return to www.red-gate.com RSS Feed Available

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

DEFECT: 5.3.2 - Script as ALTER shows as modified

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



Joined: 25 Jul 2005
Posts: 464
Location: Costa Mesa, CA, USA

PostPosted: Wed May 16, 2012 8:30 pm    Post subject: DEFECT: 5.3.2 - Script as ALTER shows as modified Reply with quote

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 Wink )
Back to top
View user's profile Send private message
Paul Stephenson



Joined: 23 Jul 2010
Posts: 108
Location: Cambridge, UK

PostPosted: Thu May 17, 2012 3:16 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
PDinCA



Joined: 25 Jul 2005
Posts: 464
Location: Costa Mesa, CA, USA

PostPosted: Thu May 17, 2012 5:34 pm    Post subject: Reply with quote

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
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