Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   Looking for Ideas - multiple long running stored procedures (http://www.velocityreviews.com/forums/t523641-looking-for-ideas-multiple-long-running-stored-procedures.html)

Elmo Watson 07-20-2007 07:39 PM

Looking for Ideas - multiple long running stored procedures
 
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 07-20-2007 07:56 PM

Re: Looking for Ideas - multiple long running stored procedures
 
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.


"Elmo Watson" <ew@whereveryouare.com> wrote in message
news:uCuLFXwyHHA.312@TK2MSFTNGP04.phx.gbl...
> 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?
>
>
>
>




sloan 07-20-2007 09:08 PM

Re: Looking for Ideas - multiple long running stored procedures
 

You can read this post:
http://groups.google.com/group/micro...381c156f5c5b2f


but getting a progress bar will be tough.

Knowing whether its started/not started/done is not that hard.




"Elmo Watson" <ew@whereveryouare.com> wrote in message
news:uCuLFXwyHHA.312@TK2MSFTNGP04.phx.gbl...
> 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?
>
>
>
>




Elmo Watson 07-21-2007 03:53 AM

Re: Looking for Ideas - multiple long running stored procedures
 
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.



"sloan" <sloan@ipass.net> wrote in message
news:%233h0oIxyHHA.5484@TK2MSFTNGP03.phx.gbl...
>
> You can read this post:
> http://groups.google.com/group/micro...381c156f5c5b2f
>
>
> but getting a progress bar will be tough.
>
> Knowing whether its started/not started/done is not that hard.
>
>
>
>
> "Elmo Watson" <ew@whereveryouare.com> wrote in message
> news:uCuLFXwyHHA.312@TK2MSFTNGP04.phx.gbl...
>> 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?
>>
>>
>>
>>

>
>




Elmo Watson 07-24-2007 07:34 PM

Re: Looking for Ideas - multiple long running stored procedures
 
How can I use that to help update the web page?



"George Ter-Saakov" <gt-nsp@cardone.com> wrote in message
news:OgoVggwyHHA.1212@TK2MSFTNGP05.phx.gbl...
>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.
>
>
> "Elmo Watson" <ew@whereveryouare.com> wrote in message
> news:uCuLFXwyHHA.312@TK2MSFTNGP04.phx.gbl...
>> 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?
>>
>>
>>
>>

>
>





All times are GMT. The time now is 12:07 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.