CREATE TABLE #people
(
id INT,
name VARCHAR(32)
) ;
select *
from
sysobjects;
Both the above query was fired altogher, in a single run. I have got this #people______00000120009549451 table created.
But when both the queries was fired one by one, then even the sysobjects of tempdb does not contain entry for #people table.
Very weird.