Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
Lupison
Starting Member
5 Posts |
Posted - 2008-09-25 : 13:58:57
|
| I have a multi threaded application, I want a stored proc to lock out other threads from using it while it's being executed by one thread.Basically I'm looking for a way to lock out a stored proc while it's being executed so nothing else can call it. |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-09-25 : 14:02:31
|
| Have a look at sp_getapplock system stored procedure in books onlinehttp://msdn.microsoft.com/en-us/library/ms189823.aspx |
 |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
Lupison
Starting Member
5 Posts |
Posted - 2008-09-25 : 14:08:45
|
| One of my team was experimenting with that and he could never get it to just lock the SP, it would either lock the table or the page. |
 |
|
|
|
|
|