I'm getting the error on the title when trying to execute the t-sql stored procedure
EXEC Add500ToChecking 18568 I tried deleting the return and the go statements but it didn't work
USE [JProCo] GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER PROC [dbo].[Add500ToChecking] @CustID INT AS BEGIN TRAN UPDATE SavAccount SET Balance = Balance - 500 WHERE CustomerID = @CustID IF ( (SELECT Balance FROM SavAccount WHERE CustomerID = @CustID) < 0) ROLLBACK TRAN RETURN UPDATE CkAccount SET Balance = Balance + 500 WHERE CustomerID = @CustID COMMIT TRAN RETURN GO Any idea of what's going on with my code? This is for a class project