Question: Create a transaction twith transact sql to update the TSQLV4 Production.Products table, incrementing the unitprice column by 5 for productid 100. Use THROW with parameters
Create a transaction twith transact sql to update the TSQLV4 Production.Products table, incrementing the unitprice column by 5 for productid 100. Use THROW with parameters to raise an error if no rows are updated. Add a TRY/CATCH block to the transaction. In the CATCH block, report all the error information back to the client by using the error functions, roll back the transaction, and re-raise the error using THROW
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
