Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / July 2007

Tip: Looking for answers? Try searching our database.

Looking for Ideas - multiple long running stored procedures

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Elmo Watson - 20 Jul 2007 20:39 GMT
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?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.