I'm trying to learn error handling and i made this stored procedure for updation of data and the Stored Procedure is created successfully but execution takes very long time.
ALTER procedure [dbo].[uspUpdateData]
@CUST_CITY varchar(50)
as
begin
begin try
begin transaction
update [dbo].[employee]
set CUST_CITY=@CUST_CITY
COMMIT TRANSACTION
end try
begin catch
rollback transaction
END CATCH
END
GO
I have looked everywhere but this issue still persist edit:runs indefinitely means its execution loading.
1条答案
按热度按时间e5nqia271#
Rewrited with indentation and ending code with ";" :
There is no reason that this query runs indefinitely...