I have stored procedure as following, and I am using a batch file to call this sp. anyone can help me to take a look at this process and see if there is somewhere wrong. There is a sql build in stored procedure which already have a commit in it. but I want to make sure that anytime if I stop the whole store procedure, anything inside of this commit part can be rollback
BEGIN TRY
BEGIN TRAN
sp_sqlstoredprocedure
INSERT data.SomeData(ID, AnotherID) VALUES(-1, -2);
COMMIT;
END TRY
BEGIN CATCH
SELECT ERROR_NUMBER(), ERROR_MESSAGE();
ROLLBACK;
END CATCH
GO