Is there a way to automatically refresh the result of a query in the SQL Server Management Studio (SQL Server 2008 R2)?
Currently I'm debugging an application which automatically inserts and updates data in a database and I'd like to track the progress without having to deposit a heavy object on the F5 key.
2条答案
按热度按时间3pmvbmvn1#
Try this:
It will run the query 5 times, pausing for 10 seconds between each run
Output:
t3irkdon2#
The only thing I can think of that would do that enitrely from SSMS would be a loop with a WAITFOR option. The problem is your output query window will simply have multiple result sets, each one later in your process than the one before it.
In this situation I usually suggest building a simple web page that runs from locally on your machine. Build it to take a query, and set it to auto-refresh every interval (30-60-90 seconds).
But that would be outside SSMS.