Home > Archive > MS SQL Server Tools > March 2006 > Auto-refresh the output of the 'Open Table" action









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Auto-refresh the output of the 'Open Table" action
Gaetan

2006-03-15, 8:24 pm

I checked the options in SQL 2005 Management Studio and it does not appear to be an
available functionality.

Is it possible to have the output of the "Open table" action to refresh the output at a
specified interval?

Thanks.
Andrew J. Kelly

2006-03-15, 8:24 pm

Probably not as it was never designed for that. There are few reasons to
use that functionality in the first place. The query editior is far more
flexible and does not run the risk of editing data by mistake just from
viewing the data.

--
Andrew J. Kelly SQL MVP


"Gaetan" <me@somewhere.com> wrote in message
news:ge2h125kt8381rl
s43qv4ie3181j1c981r@
4ax.com...
>I checked the options in SQL 2005 Management Studio and it does not appear
>to be an
> available functionality.
>
> Is it possible to have the output of the "Open table" action to refresh
> the output at a
> specified interval?
>
> Thanks.



Gaetan

2006-03-16, 8:24 pm

I understand the limitations of "Open table". The Query Editor is far more flexible but
unless I missed something, it too does not allow the SQL statements to be auto-rerun at
configurable interval.



On Wed, 15 Mar 2006 19:52:00 -0500, "Andrew J. Kelly" < sqlmvpnooospam@shadh
awk.com> wrote:

>Probably not as it was never designed for that. There are few reasons to
>use that functionality in the first place. The query editior is far more
>flexible and does not run the risk of editing data by mistake just from
>viewing the data.

Andrew J. Kelly

2006-03-16, 8:24 pm

Not as a built in feature but a simple while loop will do it for you. This
will rerun the query every to seconds for 10 loops. Or what ever you need
it to do.

DECLARE @X INT
SET @X = 0

WHILE @x < 10
BEGIN
SELECT *****

WAITFOR DELAY '00:00:10'
END




--
Andrew J. Kelly SQL MVP


"Gaetan" <me@somewhere.com> wrote in message
news:6kej12dd7b63n4c
q7tr61j26iejd9g7pv9@
4ax.com...[color=darkred]
>I understand the limitations of "Open table". The Query Editor is far more
>flexible but
> unless I missed something, it too does not allow the SQL statements to be
> auto-rerun at
> configurable interval.
>
>
>
> On Wed, 15 Mar 2006 19:52:00 -0500, "Andrew J. Kelly"
> < sqlmvpnooospam@shadh
awk.com> wrote:
>


Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com