Join our upcoming webinar with experts from AWS, CloudBerry Lab, and the Town of Edgartown IT to discuss best practices for simplifying online backup management and cutting costs.
ALTER PROCEDURE [dbo].[SP_Complete_Transaction] @id int AS BEGIN BEGIN TRAN Complete_Transaction SET NOCOUNT ON; If ( (select sum(amount) as amount from subtransaction where transactionsid=@id and status=2) = (select amount from transactions where id=@id and status=2) and (select sum(payoutamount) as payoutamount from subtransaction where transactionsid=@id and status=2) = (select countervalue from transactions where id=@id and status=2) ) update transactions set status = 3 where id =@id update subtransaction set status = 3 where transactionsid =@id ELSE select id from transactions where id=@id IF @@ERROR <> 0 ROLLBACK TRAN Complete_Transaction ELSE COMMIT TRAN Complete_Transaction END
|2 comma seperated list - SQL Server||12||45|
|Two tables - Sum of values - What is the difference||31||55|
|Downgrading MS SQL 2008 R2 Enterprise to MS SQL 2005 Standard?||12||82|
|tempdb log keep growing||7||43|