I'm part of a team that has been given a project that I'm a little lost on,
so I'm looking for input on how this could be accomplished. We don't have
much time to fully develop this, so it has to be as simple as possible
Let's say we have 5 - 10 existing stored procedures (that can't be changed)
that are run manually, once a month
We are tasked to build a web interface, which will list each item (sproc),
and include a label showing the progress (running, error, finished) --
All except the current item will be disabled (this I know how to do easily
enough, so don't worry about that)
The problem is - if I click on a button and the code kicks off to run the
item's stored procedure, what are the possibilities available to 'poll' the
method that was run, to see if it received an error or if it's still
running, or if it's finished?
Ideas?
George Ter-Saakov - 20 Jul 2007 20:56 GMT
I would create an SQL jobs out of them and then use SQL to start job or
check status
See sp_help_jobhistory, sp_start_job
George.
> I'm part of a team that has been given a project that I'm a little lost
> on, so I'm looking for input on how this could be accomplished. We don't
[quoted text clipped - 16 lines]
>
> Ideas?
Elmo Watson - 24 Jul 2007 20:34 GMT
How can I use that to help update the web page?
>I would create an SQL jobs out of them and then use SQL to start job or
>check status
[quoted text clipped - 23 lines]
>>
>> Ideas?
sloan - 20 Jul 2007 22:08 GMT
You can read this post:
http://groups.google.com/group/microsoft.public.sqlserver.programming/browse_thr
ead/thread/a4f0eab6798b3bec/17381c156f5c5b2f?lnk=st&q=uspJobScheduleUpdate+sloan
&rnum=1#17381c156f5c5b2f
but getting a progress bar will be tough.
Knowing whether its started/not started/done is not that hard.
> I'm part of a team that has been given a project that I'm a little lost
> on, so I'm looking for input on how this could be accomplished. We don't
[quoted text clipped - 16 lines]
>
> Ideas?
Elmo Watson - 21 Jul 2007 04:53 GMT
I don't need or want a progress bar - for all I care, it could be an
asynchronous call
I just need to page to be able to know when the stored procedure is
finished, by making the labels change accordingly, when it's finished.
> You can read this post:
> http://groups.google.com/group/microsoft.public.sqlserver.programming/browse_thr
ead/thread/a4f0eab6798b3bec/17381c156f5c5b2f?lnk=st&q=uspJobScheduleUpdate+sloan
&rnum=1#17381c156f5c5b2f
[quoted text clipped - 23 lines]
>>
>> Ideas?