Prevent concurrent execution of SQL Server stored procedure with ado.net in Asp.net
问题 I want to prevent two users from executing the same stored procedure concurrently. If two asp.net requests come in to execute that stored procedure, then those should execute in serial manner one after another. SQL Server database and execution is handled by ado.net. Will any of below methods help to achieve this ? What is the most suitable method ? Is there any other ways to achieve the same ? Execute the stored procedure with ado.net transaction by setting isolation level to Serializable