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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Locking Stored Procedures

Status
Not open for further replies.

l310564

Programmer
Jun 18, 2006
50
GB
Hi I was wondering if it is possible to allow only one query to execute a stored procedure at a time. I.e. user 1 and 2 try to run the procedure at the same time but it makes user 2 wait until user 1 has finished running the stored procedure.

Cheers,

Hugh

If knowlege can create problems it is not through ignorance that we will solve them.

Isaac Asimov
 
this is not recommended, but you can put a exclusive lock on the records/tables you're using in your proc...

--------------------
Procrastinate Now!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top