I understand that a transaction will automatically roll back whenever an error occurs. I read up on this for T-SQL from Microsoft and I found this syntax:
BEGIN TRANSACTION;
STATEMENT1;
STATEMENT2;
STATEMENT3;
ROLLBACK;
Why? If you intend to not do things anyway, why bother?
Specifically I found this here: https://learn.microsoft.com/en-us/sql/t-sql/language-elements/rollback-transaction-transact-sql?view=sql-server-2017#examples
But in other places as well.