作者:斯高一耐 | 来源:互联网 | 2023-06-01 15:24
Imwritingafairlylongrunningscript,whichprintsprogressmessagesasitgoes.我正在编写一个相当长的运行脚
I'm writing a fairly long running script, which prints progress messages as it goes.
我正在编写一个相当长的运行脚本,它在运行时打印进度消息。
However, SQL Server Management Studio by default shows the resultset tab, not the messages tab, so the user will have to click the messages tab after starting the script to see the progress as it happens.
但是,SQL Server Management Studio默认显示的是resultset选项卡,而不是messages选项卡,因此用户必须在启动脚本后单击messages选项卡,以查看进展情况。
Is there a way for my script to tell SSMS to show the messages tab automatically?
我的脚本是否有办法让SSMS自动显示message选项卡?
I know SSMS will remove the resultset tab once the script is complete, since it doesn't generate any resultsets, but I want the messages tab shown immediately, not at the end.
我知道一旦脚本完成,SSMS将删除resultset选项卡,因为它不会生成任何结果集,但我希望消息选项卡立即显示,而不是在末尾。
I'm not looking for a setting within SSMS, since this script will not be run on my machine once released.
我并不是在寻找SSMS中的设置,因为这个脚本在发布后不会在我的机器上运行。
2 个解决方案