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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!