It will be uncreated.
If you create the temp table before you start the transaction, it will still be there, but data changes inside the transaction will be rolled back.Declared tables are not affected by transactions.The code below illustrates all of this:create table #t1 ( t1 int )begin transactioncreate table #t2 ( t1 int )declare @t table ( [@t] int )insert into #t1 select 1insert into #t2 select 1insert into @t select 1rollbackselect * from @tgoselect * from #t1goselect * from #t2godrop table #t1Results:(1 row(s) affected)(1 row(s) affected)(1 row(s) affected)@t ----------- 1(1 row(s) affected)t1 ----------- (0 row(s) affected)Server: Msg 208, Level 16, State 1, Line 1Invalid object name '#t2'.
CODO ERGO SUM