I want to know what is the best practice to insert multiple rows from a source table into a destination table. Both source and destination tables are on a production database meaning delete or update transactions are being performed 24/7 on the tables. Also the destination table has an auto_incremented column which means if a Rollback transaction executes, the Rollback does not decrement the auto incremented column - find details here
BEGIN TRY
BEGIN TRANSACTION
Insert (col1,col2,col3) into destinationTable
select col1,col2,col3 from sourceTable
COMMIT TRANSACTION
PRINT 'TRANSACTION COMMITTED'
END TRY
BEGIN CATCH
ROLLBACK TRANSACTION
PRINT 'TRANSACTION ROLLED BACK'
END CATCH