Let\'s say I have a simple stored procedure that looks like this (note: this is just an example, not a practical procedure):
CREATE PROCEDURE incrementCounte
I use this method
CREATE PROCEDURE incrementCounter AS DECLARE @current int UPDATE MyTable SET @current = CounterColumn = CounterColumn + 1 Return @current
this procedure do all two command at one time and it is isolate from other transaction.