SSMS如何防止每次运行外部工具时都打开“保存文件"对话框 [英] SSMS How to prevent Save File Dialog from opening each time i run an external tool

查看:128
本文介绍了SSMS如何防止每次运行外部工具时都打开“保存文件"对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有从SSMS执行的外部工具.每次我运行工具时,SSMS都会提示保存文件"对话框.我不希望它显示...

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

推荐答案

如果我将记事本添加为外部工具,那么当我通过SSMS启动记事本时,SSMS不会提出任何要求.因此,我怀疑保存文件对话框来自您的工具.

SSMS无法控制该工具,也无法阻止该工具询问您是否要保存更改(除非可以将其定义为该工具的启动参数). SSMS仅启动可执行文件,其余工作在您使用的工具的代码中完成.

如果您的工具修改了在SSMS中打开的文件,也可能会发生这种情况.默认情况下,SSMS检测到这些更改.可以通过选项控制此行为.
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.


我已经使用VS2010创建了一个加载项,并从中调用了我的外部工具:D
I have created an Add-In using VS2010 and called my external tool from it :D


这篇关于SSMS如何防止每次运行外部工具时都打开“保存文件"对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆