On my server many users performing complex queries using tempdb. Sometimes a failed specifying boundary values obtained are very large tables.
So I want to know who created this temporary table.
When I do:
select * from tempdb.dbo.sysobjects where xtype = 'U' order by name
I get the names of the tables like this:
# tablename__________000000004EB1
How to determine the SPID user who created this table.