Click here to Skip to main content
15,908,264 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have external tools that i execute from SSMS. Each Time i run a tool SSMS prompts for a Save File Dialog. I dont want it to display ...
Posted
Comments
Wendelius 18-May-12 16:18pm    
What is the tool you're using? Probably the problem is with the tool, not with SSMS
Sandeep Mewara 24-May-12 15:33pm    
Comment from OP:
Am using a simple exe .. you can repro it with notepad.exe .. add it as external tool, then open a new query .. type somethin .. then try to open the external tool ..
Wendelius 24-May-12 15:54pm    
Thanks Sandeep :)
Sandeep Mewara 25-May-12 0:52am    
Welcome.

BTW, please have a look at the new tip I wrote last week and share your comments: http://www.codeproject.com/Tips/384425/Server-side-Delimiters-in-ASP-NET

:)

If I add notepad as an external tool, SSMS doesn't ask anything when I launch the notepad via SSMS. So I suspect that the save file dialog is coming from your tool.

SSMS doesn't control the tool and isn't able to prevent the tool from asking if you want to save the changes (unless this can be defined as a startup parameter for the tool). SSMS only launches the executable and the rest is done in the code of the tool you use.

This could also happen if your tool modifies a file which is opened in SSMS. By default SSMS detects these changes. This behavior can be controlled via Options.
 
Share this answer
 
Comments
debdeep Bhattacharyya 28-May-12 1:36am    
Have a query document open and some query written before running the notepad!!!!
Wendelius 1-Jun-12 0:43am    
That's exactly what I did:
- define an external tool (notepad.exe)
- open a new query editor
- write a query
- open the notepad using external tools
And as said, no messages.

Have you defined arguments for the external tool (for exaple for the notepad)?
I have created an Add-In using VS2010 and called my external tool from it :D
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900