SQL Server stored procedure in multi threaded environments

Posted by Shamika on Stack Overflow See other posts from Stack Overflow or by Shamika
Published on 2010-03-19T03:05:15Z Indexed on 2010/03/19 3:11 UTC
Read the original article Hit count: 160

Hi,

I need to execute some Sql server stored procs in a thread safe manner. At the moment I'm using software locks (C# locks) to achieve this but wonder what kind of features provided by the Sql server itself to achieve thread safety. It seems to be there are some table and row locking features built in to Sql server.

Also from a performance perspective what is best approach? Software locks? Or Sql Server built in locks?

Thanks, Shamika

© Stack Overflow or respective owner

Related posts about c#

Related posts about sql-server