Question : Transaction is not rolled back

Hello,

I have the following stored procedure that is supposed to rollback a transaction when an error is encountered.  The errro is being raised via the error message but the transaction isn't being rolled back
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
ALTER PROCEDURE [dbo].[up_AddTechnologySet]
@TechnologySetCode as NVARCHAR(10),
@TechnologySetName as NVARCHAR(255),
@TechnologySetType as NVARCHAR(2),
@IsActive AS Bit,
@Notes AS NVARCHAR(MAX),
@UserID as Nvarchar(255)

AS

DECLARE @TimeStamp as datetime 
set @TimeStamp = CURRENT_TIMESTAMP

BEGIN TRAN
	BEGIN TRY	
		INSERT INTO dbo.LtbTechnologySet 
		(
		 TechnologySetCode ,
		 TechnologySetName ,
		 TechnologySetType ,
		 IsActive ,
		 Notes  ,  
		 TimeStamp  ,
		 UserId 
		 )
		 VALUES
		 (
		  @TechnologySetCode, @TechnologySetName, @TechnologySetType, @IsActive, @Notes, @TimeStamp , @UserID 
		  )
		COMMIT TRAN
	END TRY
			
	BEGIN CATCH
		RAISERROR('Insert Cancelled', 16, 1)
		ROLLBACK TRAN
	END CATCH

Answer : Transaction is not rolled back

ok here is what the guy said he did:

 moved the problem computers from the old Active Directory OU "computers" to the other OU "SBSCOMPUTERS". I modified group policy to allow turning off "Offline Files" on the clients.

I disabled WINS on the server and modified the DHCP scope options to force NETBIOS off and force the DNS suffix to "versalifteast.local". This forces all name resolution to use DNS instead of NETBIOS.

Random Solutions  
 
programming4us programming4us