Return Periodic SP Status to App?

  • My experience with VB/SQL is cursory. Is there a way to return a periodic status indicator from a stored proc to the calling application? I'm on SQL7 & VB6. Thanks for any input!

  • Not really. You could insert a value into some other table and query this periodically.

    Steve Jones

    steve@dkranch.net

  • Thanks-am doing that currently... thought there might be a more sophisticated method. Thanks for response.

    quote:


    Not really. You could insert a value into some other table and query this periodically.

    Steve Jones

    steve@dkranch.net


  • You are welcome. Don't really know of a way to run a stored proc asynchronously. I think it won't return intermediate result sets.

    HAve to test it though?

    Steve Jones

    steve@dkranch.net

  • Maybe via an error?

    Andy

  • ...True - while the procedure is executing, the timer interval doesn't invoke... will keep looking - thanks again

  • saw an article & a posting on doing this, but seemed more effort that i wanted to put in at the moment - but if i get desperate (i.e. the users start throwing things) ...

    thanks for response. Shelley

  • Communication with client apps is via the request/response model. There isn't any real API to get unsolicited input from SQL Server.

  • Are you after async processing.

    Fire a command and check periodically if finished. Done in dblib. While server runs monster sp the app was initializing the controls and then wait for sp to finish.

    Should be able to do the same in ADO. Done asynch ADO IO with ASP with events.

Viewing 9 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic. Login to reply