Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Process ID

Status
Not open for further replies.

VBXL

Programmer
Joined
Jul 10, 2001
Messages
198
Location
GB
Is there anyway to capture a status of a process.

I want to find out if a process has started and finished from VB. Any Ideas


Xplain
 
Not sure if this is what your looking for but the global variable @@spid returns you the current connection id from the server. Run the following query from the query analyser:

select * from master..sysprocesses where spid = @@spid

This will return lots of information from the sysprocesses table from within the master database. There are probably a few columns within this row including the status which may be of use to you from within you VB app.

Rick.
 
Cheers

But i was looking for a command where i could see if a stored procedure had finished
 
Not aware of anything like that.

What we have done at our site on auditing certain SP's is to have a SP_audit_table whithin the database. User id's, start and finish times and other useful data are written to this table whenever ths SP is started and finished.

Has proved to be very helpful in the past.

Rick.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top